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:

--
--
configure:4335: checking for C compiler default output file name
configure:4357: i686-lfs-linux-gnu-gcc -B/tools/lib/conftest.c  5
configure:4361: $? = 0
configure:4398: result: a.out
configure:4414: checking whether the C compiler works
configure:4423: ./a.out
FATAL: kernel too old

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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 config.log file, there was:
 
 --
 --
 configure:4335: checking for C compiler default output file name
 configure:4357: i686-lfs-linux-gnu-gcc -B/tools/lib/conftest.c  5
 configure:4361: $? = 0
 configure:4398: result: a.out
 configure:4414: checking whether the C compiler works
 configure:4423: ./a.out
 FATAL: kernel too old

 Merry Christmas if you observe it .

 Did you meet the Host System Requirements in the preface ?
 
 Linux Kernel-2.6.22.5 (having been compiled with GCC-4.1.2 or 
  greater)

--- Mike H.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc
-B/mnt/lfs/sources/gcc-bui ld/./gcc/ -B/tools/i686-pc-linux-gnu/bin/
-B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linu x-gnu/include
-isystem /tools/i686-pc-linux-gnu/sys-include
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 programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2*

Anyone can help? Thanks!!
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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 programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details.
 make[1]: *** [configure-target-libstdc++-v3] Error 1
 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
 make: *** [all] Error 2*
 
 Anyone can help? Thanks!!

Are there any clues in /mnt/lfs/sources/gcc-build/config.log?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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 `config.log' for more details.
 make[1]: *** [configure-target-libstdc++-v3] Error 1
 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
 make: *** [all] Error 2
I think you messed up when entering the adjusting the toolchain
commands. But we can't say for sure, unless we have more info.

Attach the configure log for both gcc and libstdc++ and try these commands out:

echo 'main(){}'  dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'

If this returns:

[Requesting program interpreter: /tools/lib/ld-linux.so.2]

or something like that, then you adjusted the toolchain right.

-- 
William Immendorf
The ultimate in free computing.
Messages in plain text, please, no HTML.
GPG key ID: 1697BE98
If it's not signed, it's not from me.

--

Every nonfree program has a lord, a master --
and if you use the program, he is your master.  Richard Stallman
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page