Update: After attempting to debug the problem, and finding that I had no symbols (because the executables are stripped), I went back and redid everything from scratch for a fourth time (I'm getting good at this), but this time skipped the strip step (5.34), in order to see if I had a _start symbol in my crt1.o.
Evidently, something must have gone wrong during the strip step on previous builds, because this time, things seem to be working. So far, fingers crossed. -don On Wed, Oct 19, 2011 at 9:10 AM, Don Burns <[email protected]> wrote: > Thanks for your reply, Andrew. ld seems to be fine: > > root:/# ldd /tools/i686-pc-linux-gnu/bin/ld > linux-gate.so.1 => (0x00dcc000) > libdl.so.2 => /tools/lib/libdl.so.2 (0x00ca4000) > libc.so.6 => /tools/lib/libc.so.6 (0x0067e000) > /tools/lib/ld-linux.so.2 (0x00e09000) > > ld, in fact seems to run: > > root:/# > /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld > /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld: > no input files > > Investigating further, I ran the verbose mode of the kernel build: > > root:/sources/linux-3.0.4# KBUILD_VERBOSE=1 make headers_check > set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo > \#define LINUX_VERSION_CODE 196612; echo '#define KERNEL_VERSION(a,b,c) > (((a) << 16) + ((b) << 8) + (c))';) < /sources/linux-3.0.4/Makefile > > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s > include/linux/version.h include/linux/version.h.tmp; then rm -f > include/linux/version.h.tmp; else : ' UPD include/linux/version.h'; mv > -f include/linux/version.h.tmp include/linux/version.h; fi > make -f scripts/Makefile.build obj=scripts/basic > gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes > -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep > scripts/basic/fixdep.c > /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld: > warning: cannot find entry symbol _start; defaulting to 080486e0 > Usage: fixdep <depfile> <target> <cmdline> > make[1]: *** [scripts/basic/fixdep] Error 1 > make: *** [scripts_basic] Error 2 > root:/sources/linux-3.0.4# scripts/ > > So, the build is calling gcc, which is then calling ld, which is producing > the error message. What's curious is that fixdep is actually built and is > runnable, evidenced by the usage message. I even tried it by hand. Its > almost as if the gcc run time is not right. > > Any other ideas? > > Thanks, > > -don > > On Wed, Oct 19, 2011 at 7:27 AM, Andrew Benton <[email protected]> wrote: > >> On Tue, 18 Oct 2011 19:50:05 -0700 >> Don Burns <[email protected]> wrote: >> >> > Hello lfs'ers, >> > >> > I've just joined the list and, though I've seen this question asked in >> the >> > archives, I did not find an answer that I could turn into a fix. I'm >> > building with Version 7.0-rc2, I've gotten to step 6.7, and followed, >> > carefully, all steps, verbatim, leading to this (three times - just in >> > case). >> > >> > root:/sources/linux-3.0.4# make headers_check >> > CHK include/linux/version.h >> > HOSTCC scripts/basic/fixdep >> > >> /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld: >> > warning: cannot find entry symbol _start; defaulting to 080486e0 >> > Usage: fixdep <depfile> <target> <cmdline> >> > make[1]: *** [scripts/basic/fixdep] Error 1 >> > make: *** [scripts_basic] Error 2 >> > >> > >> > Insights would be very much appreciated. >> > >> >> Installing the kernel headers is the first thing that you do in chroot >> that uses the programs installed in chapter 5. If something has gone >> wrong it is the first time it might show up. From your error above it >> looks like /tools/lib/i686-pc-linux-gnu/bin/ld is broken. >> What does ldd /tools/lib/i686-pc-linux-gnu/bin/ld say? If it lists >> libraries from /usr then it was compiled linked to libraries on your >> host system that are not available in chroot and it will need to be >> reinstalled along with anything else linked to your host system. >> >> Andy >> -- >> http://linuxfromscratch.org/mailman/listinfo/lfs-support >> FAQ: http://www.linuxfromscratch.org/lfs/faq.html >> Unsubscribe: See the above information page >> > >
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
