gcc pass2 won't compile on amd64

Klaus Dimde kladim at metalhorde.de
Tue Jan 11 11:25:54 PST 2005


Hello there,

after a successful installtion of lfs+blfs a year ago on my old 32bit system I 
tried to do the same (using lfs version 6.0) on a new AMD 64 Bit System 
(Host-OS is Fedora Core 3). I followed every step as told in the book except 
that $LFS points to /home/lfs wich shouldn't make a difference...

Everything went fine till the second pass of compiling gcc. The make failed 
with following error message (after an uncomplicated ./configure):

[...]
checking for 
x86_64-unknown-linux-gnu-gcc...  /home/lfs/sources/gcc-build/gcc/xgcc 
-B/home/lfs/sources/gcc-build/gcc/ -B/tools/x86_64-unknown-linux-gnu/bin/ 
-B/tools/x86_64-unknown-linux-gnu/lib/ 
-isystem /tools/x86_64-unknown-linux-gnu/include 
-isystem /tools/x86_64-unknown-linux-gnu/sys-include
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1

the sample 'dummy.c' elf file reads:       
[Requesting program interpreter: /tools/lib/ld-linux-x86-64.so.2] (as it's 
said in the book)

many lines before the error there are some warnings like:
[...]
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping 
incompatible /tools/lib/gcc/x86_64-unknown-linux-gnu/3.4.1/../../../libc.awhen 
searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: warning: i386:x86-64 architecture of 
input file 
`/tools/lib/gcc/x86_64-unknown-linux-gnu/3.4.1/../../../../lib/crti.o' is 
incompatible with i386 output
[...]

 Googeling and searching the lfs site didn't help me very much. Any ideas? 
Should there be any -march flags? 

Thanks in advance 
Klaus



More information about the lfs-support mailing list