Greetings all, I am running into some issues regarding section 5.10.1 of the current stable version of the book. When attempting to build gcc, I receive the following error:
Checking multilib configuration for libgomp... Configuring in i686-pc-linux-gnu/libgomp configure: loading cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for --enable-generated-files-in-srcdir... no 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... /bin/install -c checking whether build environment is sane... yes 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-build/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-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-linux-gnu/libgomp': 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-libgomp] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 In the config.log for libgomp I see the following messages: configure:2569: checking for C compiler default output file name configure:2572: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/li b/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include -g -O2 conftest.c >&5 configure:2575: $? = 0 configure:2623: result: a.out configure:2628: checking whether the C compiler works configure:2634: ./a.out /mnt/lfs/sources/gcc-4.4.3/libgomp/configure: line 2635: ./a.out: No such file or directory configure:2637: $? = 127 configure:2644: error: in `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libgomp': configure:2648: error: cannot run C compiled programs. I did some digging, and most people indicated the problem is related to the linker, yet, when I run the dummy.c test, I get the following message: echo 'int 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] Which according to the book is correct. What did I do wrong? The host machine is Archlinux running in virtual box. Thanks! http://www.acm.org/ John 3:16,Galatians 5:22-23,Song of Songs 8:6-7, Colossians 3:2 "Live a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones." — Marcus Aurelius
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page