LFS-6.7 Chapter 5.10 GCC make failure

2010-12-25 Thread Aaron Tsai
I tried belowing and got what's expected echo 'main(){}' dummy.c $LFS_TGT-gcc -B/tools/lib dummy.c readelf -l a.out | grep ': /tools' [Requesting program interpreter: /tools/lib/ld-linux.so.2] But digging into the config.log file, there was: --

Re: LFS-6.7 Chapter 5.10 GCC make failure

2010-12-25 Thread Mike Hollis
On Sat, Dec 25, 2010 at 11:27:10PM +0800, Aaron Tsai wrote: I tried belowing and got what's expected echo 'main(){}' dummy.c $LFS_TGT-gcc -B/tools/lib dummy.c readelf -l a.out | grep ': /tools' [Requesting program interpreter: /tools/lib/ld-linux.so.2] But digging into the

LFS-6.7 Chapter 5.10 GCC make failure

2010-12-21 Thread aaron cai
I'm going through the book on my SLES 10 SP2 (32-bit) w/ GCC 4.1.2 on host. Now failed to complete GCC build pass 2 w/ following message: *Checking multilib configuration for libstdc++-v3... mkdir -p -- i686-pc-linux-gnu/libstdc++-v3 Configuring in i686-pc-linux-gnu/libstdc++-v3 configure:

Re: LFS-6.7 Chapter 5.10 GCC make failure

2010-12-21 Thread Andrew Benton
On Tue, 21 Dec 2010 22:31:53 +0800 aaron cai osr...@gmail.com wrote: checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: in `/mnt/lfs/sources/gcc-build/i686-pc-linu x-gnu/libstdc++-v3': configure: error: cannot run C compiled

Re: LFS-6.7 Chapter 5.10 GCC make failure

2010-12-21 Thread William Immendorf
On Tue, Dec 21, 2010 at 8:31 AM, aaron cai osr...@gmail.com wrote: checking whether the C compiler works... configure: error: in `/mnt/lfs/sources/gcc-build/i686-pc-linu x-gnu/libstdc++-v3': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See