Mike Murfin wrote:
Hi.
When I run the configure script, it fails with the message: "error: cannot compute
suffix of object files"
In config.log, I have:
configure:2361: checking for gcc
configure:2377: found /tools/bin/gcc
configure:2387: result: gcc
configure:2631: checking for C compiler version
configure:2634: gcc --version </dev/null/>&5
../glibc-2.3.6/configure: line 2635: /tools/bin/gcc: No such file or directory
I have been back to Chapter 5 step '5.11 gcc-4.0.3 - Pass 2' and double checked
everything, and even rebuilt the temporary system from scratch. At this stage
I applied the specs patch. The results of the dummy compile in the 'caution'
section tell me that my program interpreter is /tools/lib/ld-linux.so.2, so it
would appear that the build of gcc has worked.
What do you mean you applied the specs patch? At what point exactly?
Also, have you been removing the source and build dirs after each
installation?
Before running the configure in step 6.9, I extracted glibc-libidn into the
glibc source directory and applied the patches for linux-types and inotify as
per the book.
That doesn't have anything to do with it.>
I have checked the result of the sed command in step '5.7 Adjusting the
Toolchain'. In the specs file,
($LFS/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs) there is only one entry for
ld-linux.so.2, as follows:
*dynamic linker:
/tools/lib/ld-linux.so.2
So, /tools/bin/gcc exists, but the configure script for glibc doesn't seem to be able to use it.
What is the output of "ldd /tools/bin/gcc"?
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page