Discussion:
[lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
樱木洋葱
2014-07-02 09:05:13 UTC
Permalink
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.

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!
akhiezer
2014-07-02 09:39:00 UTC
Permalink
Date: Wed, 2 Jul 2014 17:05:13 +0800
From: ???????????? <whilgeek at gmail.com>
To: lfs-support at lists.linuxfromscratch.org
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
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"
/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
cannot find crt1.o: No such file or directory
cannot find crti.o: No such file or directory
cannot find -lc
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





--
樱木洋葱
2014-07-02 09:47:10 UTC
Permalink
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.
Post by akhiezer
Date: Wed, 2 Jul 2014 17:05:13 +0800
From: ???????????? <whilgeek at gmail.com>
To: lfs-support at lists.linuxfromscratch.org
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
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"
/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
cannot find crt1.o: No such file or directory
cannot find crti.o: No such file or directory
cannot find -lc
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!
--
* 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
akhiezer
2014-07-02 10:16:02 UTC
Permalink
From lfs-support-bounces at lists.linuxfromscratch.org Wed Jul 2 10:46:20 2014
Date: Wed, 2 Jul 2014 17:47:10 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
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?
Post by akhiezer
Date: Wed, 2 Jul 2014 17:05:13 +0800
From: ???????????? <whilgeek at gmail.com>
To: lfs-support at lists.linuxfromscratch.org
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
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"
/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
cannot find crt1.o: No such file or directory
cannot find crti.o: No such file or directory
cannot find -lc
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!
--
* 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
--
樱木洋葱
2014-07-02 10:44:26 UTC
Permalink
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.
Post by akhiezer
From lfs-support-bounces at lists.linuxfromscratch.org Wed Jul 2 10:46:20 2014
Date: Wed, 2 Jul 2014 17:47:10 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
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?
Post by akhiezer
Date: Wed, 2 Jul 2014 17:05:13 +0800
From: ???????????? <whilgeek at gmail.com>
To: lfs-support at lists.linuxfromscratch.org
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
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"
/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
cannot find crt1.o: No such file or directory
cannot find crti.o: No such file or directory
cannot find -lc
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!
--
* 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
akhiezer
2014-07-02 10:57:59 UTC
Permalink
Date: Wed, 2 Jul 2014 18:44:26 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
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.
What does /tools point to? And what is your $LFS value?
.
.
Post by akhiezer
--
* do those include dirs actually exist.
(Also the library and other dirpaths, per earlier note).
Post by akhiezer
* 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





--
樱木洋葱
2014-07-02 11:48:32 UTC
Permalink
The 'tools' directory means $LFS/tools and the $LFS=/mnt/lfs
I thought everyone following this book knows that so I did not metion it.

Thanks.
Post by akhiezer
Date: Wed, 2 Jul 2014 18:44:26 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
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.
What does /tools point to? And what is your $LFS value?
.
.
Post by akhiezer
--
* do those include dirs actually exist.
(Also the library and other dirpaths, per earlier note).
Post by akhiezer
* 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
akhiezer
2014-07-02 12:39:00 UTC
Permalink
Date: Wed, 2 Jul 2014 19:48:32 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
The 'tools' directory means $LFS/tools and the $LFS=/mnt/lfs
I thought everyone following this book knows that so I did not metion it.
Thanks.
Post by akhiezer
Date: Wed, 2 Jul 2014 18:44:26 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
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.
What does /tools point to? And what is your $LFS value?
Yes, I know what they should be in theory: but am asking what in practice
do you get from the output of the commands:

$ ls -laF /tools

$ echo $LFS

I.e. am not asking what they _should_ be, but instead what the output is
in practice.


Also, am asking the following questions re sudo and directories existing,
just as basic sanity checks; e.g. there have been recent-ish problems with
sudo interfering with paths/environment-vars.
Post by akhiezer
.
.
Post by akhiezer
--
* do those include dirs actually exist.
(Also the library and other dirpaths, per earlier note).
Post by akhiezer
* 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





--
樱木洋葱
2014-07-03 02:23:22 UTC
Permalink
The result of "$ ls -laF /tools" is "lrwxrwxrwx 1 root root 14 Jun 30
22:13 /tools -> /mnt/lfs/tools/"
The result of "echo $LFS" is "/mnt/lfs" as it should be.

Seems I should change the group and owner of the /tools?

And because of my poor English, I can not understand the following question:

"Also, am asking the following questions re sudo and directories existing,
just as basic sanity checks; e.g. there have been recent-ish problems with
sudo interfering with paths/environment-vars."

I guess that I do something wrong with "sudo" command?
Can you make these questions more flat to understand? Thanks a lot!
Post by akhiezer
Date: Wed, 2 Jul 2014 19:48:32 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
The 'tools' directory means $LFS/tools and the $LFS=/mnt/lfs
I thought everyone following this book knows that so I did not metion it.
Thanks.
Post by akhiezer
Date: Wed, 2 Jul 2014 18:44:26 +0800
From: ???????????? <whilgeek at gmail.com>
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
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.
What does /tools point to? And what is your $LFS value?
Yes, I know what they should be in theory: but am asking what in practice
$ ls -laF /tools
$ echo $LFS
I.e. am not asking what they _should_ be, but instead what the output is
in practice.
Also, am asking the following questions re sudo and directories existing,
just as basic sanity checks; e.g. there have been recent-ish problems with
sudo interfering with paths/environment-vars.
Post by akhiezer
.
.
Post by akhiezer
--
* do those include dirs actually exist.
(Also the library and other dirpaths, per earlier note).
Post by akhiezer
* 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
akhiezer
2014-07-02 09:48:02 UTC
Permalink
Date: Wed, 02 Jul 2014 10:39:00 +0100
From: lfs65 at cruziero.com (akhiezer)
To: LFS Support List <lfs-support at lists.linuxfromscratch.org>
Subject: Re: [lfs-support] cant not find `crt1.o` `crti.o` and `crtn.o`
.
.
* do those include dirs actually exist.
- not just literally the include dirs, but also the other paths it's
talking about, e.g. those for ld later on in the seq.


akh





--
Armin K.
2014-07-02 12:11:43 UTC
Permalink
Post by 樱木洋葱
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.
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
The cross compiler is useless before you build chapter 5 glibc. If you
ran the command before installing glibc in chapter 5, then it's expected
that you get such errors.
--
Note: My last name is not Krejzi.
樱木洋葱
2014-07-03 02:30:22 UTC
Permalink
Oh, I tried this command just after I installed the glibc in chapter 5.7.
I found these .o files in the host system and should I copy them into
my LFS project?
Post by Armin K.
Post by 樱木洋葱
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.
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
The cross compiler is useless before you build chapter 5 glibc. If you
ran the command before installing glibc in chapter 5, then it's expected
that you get such errors.
--
Note: My last name is not Krejzi.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
樱木洋葱
2014-07-03 02:57:01 UTC
Permalink
New progess: I find these three files using locate:
/mnt/lfs/sources/glibc-build/csu/crt1.o
/mnt/lfs/sources/glibc-build/csu/crti.o
/mnt/lfs/sources/glibc-build/csu/crti.o.d
/mnt/lfs/sources/glibc-build/csu/crtn.o
/mnt/lfs/sources/glibc-build/csu/crtn.o.d
/mnt/lfs/sources/glibc-build/csu/gcrt1.o
/mnt/lfs/sources/glibc-build/nptl/crti.o
/mnt/lfs/sources/glibc-build/nptl/crtn.o
/mnt/lfs/sources/glibc-build/nptl/crtn.o.d
/mnt/lfs/sources/glibc-build/nptl/pt-crti.o
/mnt/lfs/sources/glibc-build/nptl/pt-crti.o.d

But from the gcc log I can see them aren't in lib path. Should I add
them to lib path?
Post by 樱木洋葱
Oh, I tried this command just after I installed the glibc in chapter 5.7.
I found these .o files in the host system and should I copy them into
my LFS project?
Post by Armin K.
Post by 樱木洋葱
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.
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
The cross compiler is useless before you build chapter 5 glibc. If you
ran the command before installing glibc in chapter 5, then it's expected
that you get such errors.
--
Note: My last name is not Krejzi.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
樱木洋葱
2014-07-03 03:08:08 UTC
Permalink
Finally SOLVED this problem!
I just change directory to /mnt/lfs/sources/glibc-build and run `make
clean && make && make install` and all things OK!
Although a little WEIRD ...
Post by 樱木洋葱
/mnt/lfs/sources/glibc-build/csu/crt1.o
/mnt/lfs/sources/glibc-build/csu/crti.o
/mnt/lfs/sources/glibc-build/csu/crti.o.d
/mnt/lfs/sources/glibc-build/csu/crtn.o
/mnt/lfs/sources/glibc-build/csu/crtn.o.d
/mnt/lfs/sources/glibc-build/csu/gcrt1.o
/mnt/lfs/sources/glibc-build/nptl/crti.o
/mnt/lfs/sources/glibc-build/nptl/crtn.o
/mnt/lfs/sources/glibc-build/nptl/crtn.o.d
/mnt/lfs/sources/glibc-build/nptl/pt-crti.o
/mnt/lfs/sources/glibc-build/nptl/pt-crti.o.d
But from the gcc log I can see them aren't in lib path. Should I add
them to lib path?
Post by 樱木洋葱
Oh, I tried this command just after I installed the glibc in chapter 5.7.
I found these .o files in the host system and should I copy them into
my LFS project?
Post by Armin K.
Post by 樱木洋葱
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.
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
The cross compiler is useless before you build chapter 5 glibc. If you
ran the command before installing glibc in chapter 5, then it's expected
that you get such errors.
--
Note: My last name is not Krejzi.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
--
??

???Python?????

tel?18911634706
email?whilgeek at gmail.com
Bruce Dubbs
2014-07-03 05:16:48 UTC
Permalink
Post by 樱木洋葱
Finally SOLVED this problem!
I just change directory to /mnt/lfs/sources/glibc-build and run `make
clean && make && make install` and all things OK!
Although a little WEIRD ...
I'm glad you get it solved, but please don't top post.

-- Bruce

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Loading...