gcc pass2 won't compile on amd64
kladim at metalhorde.de
Tue Jan 11 11:25:54 PST 2005
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 C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C
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:
searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: warning: i386:x86-64 architecture of
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
More information about the lfs-support