关于交叉编译的一个错误

dengnice 2010-11-11 11:41:34
坛子里的GG们,在交叉编译的时候出现了这个问题,在建立C库的时候进行不下去了,帮忙看下额,是在不想放弃,因为马上要做完了。

各种版本binutils-2.19.1 ,gcc-4.3.3.tar,glibc-2.11,kernel : linux-2.6.30.1能打的补丁都打了。系统ubuntu 10.04


checking whether ln -s works... yes
checking whether /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/as is GNU as... yes
checking whether /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/ld is GNU ld... yes
checking for /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/as... /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/as
checking version of /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/as... 2.19.1, ok
checking for /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/ld... /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/ld
checking version of /home/dengnice/embedded/tools/lib/gcc/arm-linux/4.3.3/../../../../arm-linux/bin/ld... 2.19.1, ok
checking for pwd... /bin/pwd
checking for arm-linux-gcc... (cached) arm-linux-gcc
checking version of arm-linux-gcc... 4.3.3, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... no
checking for makeinfo... makeinfo
checking version of makeinfo... 4.13, ok
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... no
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/sbin/install-info
checking for bison... no
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for assembler .type directive prefix... %
checking for assembler gnu_unique_object symbol type... no
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... no

configure: error: compiler support for visibility attribute is required(出现这个错误,纠结了两天了,没找到能解决问题的办法)
网上有的说卸载掉mawk,安装gawk,也已照办,还是不给力。

奥,对了,前面还出现一个问题是编译binutils,最后只有arm-linux-gasp没有出来,所以我就忽略了,不知道是不是这个的影响,但是我编译了三次,包括重新下载源代码都不能出现arm-linux-gasp,还望GG们指导下。
...全文
298 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
dengnice 2010-11-16
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 yiyaaixuexi 的回复:]

你说自己 能打的补丁都打了 。这是很容易出现各种error的操作。尤其是交差编译这块,对工具版本的限制是很明确的。
[/Quote]
嗯,你也说的很对,版本要求是很严格,而且最新的不一定好,呵呵,谢谢~!
dengnice 2010-11-16
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 benjaminweber 的回复:]

总是觉得拿gcc4.4来编是不是太新了,几年前我们都是用gcc 2.95的,虽然当时也有gcc4.0,但是都会把gcc降下来再编译
[/Quote]
可能是太新了,现在是小菜鸟一只,什么都不知道额,呵呵,这几天重新弄了一下,binutils换成了2.18,GCC也换成4.1,各种版本都降下来了,可以了,呵呵,谢谢哈~!
念茜 2010-11-15
  • 打赏
  • 举报
回复
你说自己 能打的补丁都打了 。这是很容易出现各种error的操作。尤其是交差编译这块,对工具版本的限制是很明确的。
念茜 2010-11-15
  • 打赏
  • 举报
回复
arm-linux-gasp是汇编器预编译器。 必须的。
你的error就处在无法处理汇编 __XXX___ ...

建议使用 binutils-2.18
dengnice 2010-11-15
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 linwhwylb 的回复:]

没见过此类错误。
交叉编译环境用这种方法建立的话,重来没有成功过。
[/Quote]
额,楼上能不能说下用哪种方法建立?
benjaminweber 2010-11-15
  • 打赏
  • 举报
回复
总是觉得拿gcc4.4来编是不是太新了,几年前我们都是用gcc 2.95的,虽然当时也有gcc4.0,但是都会把gcc降下来再编译
Linux-Torvalds 2010-11-14
  • 打赏
  • 举报
回复
没见过此类错误。
交叉编译环境用这种方法建立的话,重来没有成功过。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧