I am a new bie so forgive me .. The linux-3.13.3 directory locates in $LFS/sources, it was extracted from the linux-3.13.3.tar.xz ------ just as we did in chapter 5.6 We do the chapter 5.6 in this directory. As the books says in early chapters, we should remove all the extra directorys after we finish the chapter. But this princple does NOT apply for this chapter. If I missed something, welcome contact me again.
Thanks. 2014-07-02 18:16 GMT+08:00 akhiezer <[email protected]>: >> From [email protected] Wed Jul 2 10:46:20 2014 >> Date: Wed, 2 Jul 2014 17:47:10 +0800 >> From: ???????????? <[email protected]> >> To: LFS Support List <[email protected]> >> Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o` >> >> I am sorry. My solution is very simple: do chapter 5.6 again and do >> not remove the linux-3.13.3 directory. >> Actually I don't know whether the linux-3.13.3 directory should be >> removed or not. Anyone who run into this issue can try this method. >> Thanks. >> > > > Hmmm. When you say, "remove the linux-3.13.3 directory", what directory > path are you referring to - e.g. the local one that you did the build in, > or (eek) something under /tools/include that the install (cp -rv) step uses, > or what? > > >> 2014-07-02 17:39 GMT+08:00 akhiezer <[email protected]>: >> >> Date: Wed, 2 Jul 2014 17:05:13 +0800 >> >> From: ???????????? <[email protected]> >> >> To: [email protected] >> >> Subject: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o` >> >> >> >> Hi, >> >> >> >> Me again. >> >> The problem I encountered >> >> (http://lists.linuxfromscratch.org/pipermail/lfs-support/2014-July/047206.html) >> >> has been conquered. And I meet with a new problem. >> >> >> > >> > >> > It's useful if you post a follow-up to that post (thus keeping the >> > threading >> > & connection of posts right), saying what the solution was: can be of help >> > to folks hitting the same or similar issue; and never worry at all if it's >> > an "embarassing" or 'silly' mistake - that's not the focus or point of >> > the exercise. >> > >> > >> >> When I follow the instructions >> >> (http://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html) >> >> , I tried the $LFS-TGT-gcc -v dummy.c and I got the error message as >> >> following: >> >> >> >> Using built-in specs. >> >> COLLECT_GCC=i686-lfs-linux-gnu-gcc >> >> COLLECT_LTO_WRAPPER=/mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.8.2/lto-wrapper >> >> Target: i686-lfs-linux-gnu >> >> Configured with: ../gcc-4.8.2/configure --target=i686-lfs-linux-gnu >> >> --prefix=/tools --with-sysroot=/mnt/lfs --with-newlib >> >> --without-headers --with-local-prefix=/tools >> >> --with-native-system-header-dir=/tools/include --disable-nls >> >> --disable-shared --disable-multilib --disable-decimal-float >> >> --disable-threads --disable-libatomic --disable-libgomp >> >> --disable-libitm --disable-libmudflap --disable-libquadmath >> >> --disable-libsanitizer --disable-libssp --disable-libstdc++-v3 >> >> --enable-languages=c,c++ >> >> --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.8.2/mpfr/src >> >> --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs >> >> Thread model: single >> >> gcc version 4.8.2 (GCC) >> >> COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro' >> >> /mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.8.2/cc1 -quiet >> >> -v -iprefix /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/ >> >> dummy.c -quiet -dumpbase dummy.c -mtune=generic -march=pentiumpro >> >> -auxbase dummy -version -o /tmp/ccQoQBlN.s >> >> GNU C (GCC) version 4.8.2 (i686-lfs-linux-gnu) >> >> compiled by GNU C version 4.8.2, GMP version 5.1.3, MPFR version >> >> 3.1.2, MPC version 1.0.2 >> >> GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128188 >> >> ignoring nonexistent directory >> >> "/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/include" >> >> ignoring duplicate directory >> >> "/mnt/lfs/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.8.2/include" >> >> ignoring duplicate directory >> >> "/mnt/lfs/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.8.2/include-fixed" >> >> ignoring nonexistent directory >> >> "/mnt/lfs/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/include" >> >> ignoring duplicate directory "/mnt/lfs/tools/include" >> >> #include "..." search starts here: >> >> #include <...> search starts here: >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/include >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/include-fixed >> >> /mnt/lfs/tools/include >> >> End of search list. >> >> GNU C (GCC) version 4.8.2 (i686-lfs-linux-gnu) >> >> compiled by GNU C version 4.8.2, GMP version 5.1.3, MPFR version >> >> 3.1.2, MPC version 1.0.2 >> >> GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128188 >> >> Compiler executable checksum: c4c75984ee2351833ffc20334746d797 >> >> COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro' >> >> >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/as >> >> -v --32 -o /tmp/ccF0xClp.o /tmp/ccQoQBlN.s >> >> GNU assembler version 2.24 (i686-lfs-linux-gnu) using BFD version (GNU >> >> Binutils) 2.24 >> >> COMPILER_PATH=/mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.8.2/:/mnt/lfs/tools/bin/../libexec/gcc/:/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ >> >> LIBRARY_PATH=/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/:/mnt/lfs/tools/bin/../lib/gcc/:/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/lib/:/mnt/lfs/tools/lib/ >> >> COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro' >> >> /mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.8.2/collect2 >> >> --sysroot=/mnt/lfs --eh-frame-hdr -m elf_i386 -dynamic-linker >> >> /tools/lib/ld-linux.so.2 crt1.o crti.o >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/crtbegin.o >> >> -L/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2 >> >> -L/mnt/lfs/tools/bin/../lib/gcc >> >> -L/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/lib >> >> -L/mnt/lfs/tools/lib /tmp/ccF0xClp.o -lgcc -lc -lgcc >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/crtend.o crtn.o >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld: >> >> cannot find crt1.o: No such file or directory >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld: >> >> cannot find crti.o: No such file or directory >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld: >> >> cannot find -lc >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.8.2/../../../../i686-lfs-linux-gnu/bin/ld: >> >> cannot find crtn.o: No such file or directory >> >> collect2: error: ld returned 1 exit status >> >> >> >> Seems the lib directory does not include those .o file. It means I did >> >> something wrong in former chapters? >> >> >> >> Thanks a lot! >> >> >> > >> > >> > Just a quick skim: >> > -- >> > * do those include dirs actually exist. >> > * there have been crt... issues hit by folks over past few months - should >> > be on lists. >> > * are you running the commands using sudo ? >> > -- >> > >> > >> > rgds, >> > akh >> > >> > >> > > > > -- > -- > http://lists.linuxfromscratch.org/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
