当前位置: 技术问答>linux和unix
关于交叉编译的一个错误
来源: 互联网 发布时间:2016-10-17
本文导语: 本帖最后由 deng529828 于 2010-11-11 11:43:00 编辑 坛子里的GG们,在交叉编译的时候出现了这个问题,在建立C库的时候进行不下去了,帮忙看下额,是在不想放弃,因为马上要做完了。 ( 各种版本binutils-2.19.1 ,gcc-4.3.3.tar...
(
各种版本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们指导下。
|
arm-linux-gasp是汇编器预编译器。 必须的。
你的error就处在无法处理汇编 __XXX___ ...
建议使用 binutils-2.18
你的error就处在无法处理汇编 __XXX___ ...
建议使用 binutils-2.18
|
总是觉得拿gcc4.4来编是不是太新了,几年前我们都是用gcc 2.95的,虽然当时也有gcc4.0,但是都会把gcc降下来再编译