This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Error when building 2.6.35-rc3 kernel using latest gold
- From: Wenji Huang <wenji dot huang at oracle dot com>
- To: binutils at sourceware dot org
- Cc: Elena Zannoni <elena dot zannoni at oracle dot com>, "VAN HEES,KRIS" <kris dot van dot hees at oracle dot com>
- Date: Sun, 13 Jun 2010 13:28:19 +0800
- Subject: Error when building 2.6.35-rc3 kernel using latest gold
- Reply-to: wenji dot huang at oracle dot com
Hi,
I got the following error when building linux 2.6.35-rc3 kernel using
latest gold.
[linux-2.6.35-rc3]$ make menuconfig
HOSTCC scripts/basic/fixdep
/bin/sh: scripts/basic/fixdep: cannot execute binary file
make[1]: *** [scripts/basic/fixdep] Error 126
make: *** [scripts_basic] Error 2
[linux-2.6.35-rc3]$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
[linux-2.6.35-rc3]$ ld -v
GNU gold (GNU Binutils 2.20.51.20100613) 1.9
It seems the generated binary fixdep is corrupt. But it works fine when
using Gnu ld.
Regards,
Wenji