URN Logo
UNIX Resources » Linux » China Linux Forum » CPU 与 编译器 » 2 » 交叉编译链制作时错误
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
交叉编译链制作时错误
交叉编译链制作时错误 - littletiger [2007-01-08 10:09 | 6,202 byte(s)]
 
Re: 交叉编译链制作时错误 - cxq1846 [2007-03-12 01:26 | 93 byte(s)]
 
Re: 交叉编译链制作时错误 - shenghuo456 [2007-01-11 15:06 | 262 byte(s)]
 
Re: 交叉编译链制作时错误 - littletiger [2007-03-14 17:07 | 41 byte(s)]
 
Subject: 交叉编译链制作时错误
Author: littletiger    Posted: 2007-01-08 10:09    Length: 6,202 byte(s)
[Original] [Print] [Top]
第一次编译gcc的时候出错
../../src/gcc-4.1.1/configure --target=arm-linux --prefix=/home/tgr/newphone/toolchain/install --enable-languages=c --disable-threads --disable-multilib --with-float=soft --with-cpu=arm9tdmi --without-headers --disable-shared

make

出错信息:
ototypes -Wold-style-definition -isystem ./include -fomit-frame-pointer -fPIC -Dinhibit-libc -D__gthr_posix_h -g0 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../src/gcc-4.1.1/gcc -I../../../src/gcc-4.1.1/gcc/. -I../../../src/gcc-4.1.1/gcc/../include -I../../../src/gcc-4.1.1/gcc/../libcpp/include -DL_gcov_one_value_profiler -c ../../../src/gcc-4.1.1/gcc/libgcov.c -o libgcc/./_gcov_one_value_profiler.o
<command line>:1:8: warning: missing whitespace after the macro name
rm -f ./libgcov.a
arm-linux-ar rc ./libgcov.a libgcc/./_gcov.o libgcc/./_gcov_merge_add.o libgcc/./_gcov_merge_single.o libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o libgcc/./_gcov_execl.o libgcc/./_gcov_execlp.o libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o libgcc/./_gcov_interval_profiler.o libgcc/./_gcov_pow2_profiler.o libgcc/./_gcov_one_value_profiler.o
arm-linux-ranlib ./libgcov.a
make[3]: Leaving directory `/home/tgr/newphone/toolchain/build/gcc/gcc'
make[2]: Leaving directory `/home/tgr/newphone/toolchain/build/gcc/gcc'
Checking multilib configuration...
/bin/sh ../../src/gcc-4.1.1/mkinstalldirs arm-linux/libmudflap ;
rm -f arm-linux/libmudflap/Makefile || : ;
cp multilib.out arm-linux/libmudflap/multilib.out
mkdir -p -- arm-linux/libmudflap
Configuring in arm-linux/libmudflap
configure: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-linux-gcc... /home/tgr/newphone/toolchain/build/gcc/./gcc/xgcc -B/home/tgr/newphone/toolchain/build/gcc/./gcc/ -B/home/tgr/newphone/toolchain/install/arm-linux/bin/ -B/home/tgr/newphone/toolchain/install/arm-linux/lib/ -isystem /home/tgr/newphone/toolchain/install/arm-linux/include -isystem /home/tgr/newphone/toolchain/install/arm-linux/sys-include
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libmudflap] Error 1
make[1]: Leaving directory `/home/tgr/newphone/toolchain/build/gcc'
make: *** [all] Error 2



config.log:
configure:4027: checking for i686-pc-linux-gnu-nm
configure:4058: checking for nm
configure:4102: checking for i686-pc-linux-gnu-ranlib
configure:4133: checking for ranlib
configure:4172: checking for i686-pc-linux-gnu-strip
configure:4203: checking for strip
configure:4242: checking for i686-pc-linux-gnu-windres
configure:4273: checking for windres
configure:4317: checking for i686-pc-linux-gnu-objcopy
configure:4348: checking for objcopy
configure:4392: checking for i686-pc-linux-gnu-objdump
configure:4423: checking for objdump
configure:4474: checking for arm-linux-ar
configure:4549: checking for arm-linux-as
configure:4624: checking for arm-linux-cc
configure:4624: checking for arm-linux-gcc
configure:4699: checking for arm-linux-c++
configure:4699: checking for arm-linux-g++
configure:4699: checking for arm-linux-cxx
configure:4699: checking for arm-linux-gxx
configure:4774: checking for arm-linux-dlltool
configure:4849: checking for arm-linux-gcc
configure:4919: checking for arm-linux-gcj
configure:4994: checking for arm-linux-gfortran
configure:5069: checking for arm-linux-ld
configure:5144: checking for arm-linux-lipo
configure:5219: checking for arm-linux-nm
configure:5294: checking for arm-linux-objdump
configure:5369: checking for arm-linux-ranlib
configure:5439: checking for arm-linux-strip
configure:5514: checking for arm-linux-windres
configure:5588: checking where to find the target ar
configure:5613: checking where to find the target as
configure:5638: checking where to find the target cc
configure:5663: checking where to find the target c++
configure:5691: checking where to find the target c++ for libstdc++
configure:5719: checking where to find the target dlltool
configure:5744: checking where to find the target gcc
configure:5769: checking where to find the target gcj
configure:5797: checking where to find the target gfortran
configure:5825: checking where to find the target ld
configure:5850: checking where to find the target lipo
configure:5865: checking where to find the target nm
configure:5890: checking where to find the target objdump
configure:5915: checking where to find the target ranlib
configure:5940: checking where to find the target strip
configure:5965: checking where to find the target windres
configure:6018: checking whether to enable maintainer-specific portions of Makefiles
configure:6065: checking if symbolic links between directories work

----
linux driver ....
[Original] [Print] [Top]
Subject: Re: 交叉编译链制作时错误
Author: shenghuo456    Posted: 2007-01-11 15:06    Length: 262 byte(s)
[Original] [Print] [Top]
hi,你这个不是什么大问题,只是在检测一下你刚刚编译的gcc怎样而已,你完全可以mark掉,不需要检测而已,我如果编译器按顺序制作的话不会碰到这个错误,但是我要是修改某些bug后,单独编译某步,有时候会碰到你这样的错误,mark掉,一点也不影响,编译器依旧好用。至少我的是这样!
----
www.embedlinux.cn
我的嵌入式eCos&linux论坛

[Original] [Print] [Top]
Subject: Re: 交叉编译链制作时错误
Author: cxq1846    Posted: 2007-03-12 01:26    Length: 93 byte(s)
[Original] [Print] [Top]
我在编译binutils时就遇到错误了不知道是什么原因,在编译dummy文件时出错,不知道是什么原因阿!!
[Original] [Print] [Top]
Subject: Re: 交叉编译链制作时错误
Author: littletiger    Posted: 2007-03-14 17:07    Length: 41 byte(s)
[Original] [Print] [Top]
但是我这是第一次编译gcc啊,不用库得那种。
----
linux driver ....
[Original] [Print] [Top]
« Previous thread
关于GCC后端移植
CPU 与 编译器
2
Next thread »
编译问题
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 03:47:10, cost 0.068936109542847 ms.