LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error making Glibc-2.11.1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-making-glibc-2-11-1-a-802229/)

liptonik 04-15-2010 12:24 PM

Error making Glibc-2.11.1
 
I have this error:

/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1

LFS 6.6 at Glibc-2.11.1
OS LFS livecd (lfslivecd-x86-6.3-r2145)
gcc 4.4.3

crts 04-15-2010 03:02 PM

Quote:

Originally Posted by liptonik (Post 3936676)
I have this error:

/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1

LFS 6.6 at Glibc-2.11.1
OS LFS livecd (lfslivecd-x86-6.3-r2145)
gcc 4.4.3

See if this post helps you:
http://www.linuxquestions.org/questi...8/#post3840941

The commands have to be issued at the end of chapter 5.5.

liptonik 04-19-2010 03:54 AM

i have next error making gcc PASS 2:

make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/libdecnumber'
make[2]: Entering directory '/mnt/lfs/sources/gcc-build/gcc'
make[2]: ***No rule to make target 'all'. Stop.
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2

i think i did something wrong :/ but this test (before making binutils pass2):

Quote:

echo 'main(){}' > dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'
has given correct output.

i don't know if a need to type this:
Quote:

case $(uname -m) in
x86_64)
for file in $(find gcc/config -name t-linux64) ; do \
cp -v $file{,.orig}
sed '/MULTILIB_OSDIRNAMES/d' $file.orig > $file
done
;;
esac
because, there is said that "On x86_64, unsetting the multilib spec for GCC ensures that it won't attempt to link against libraries on the host:"
and i don't know if i had x86_64. I had Intel Core 2 Duo P8400.

excuse me my poor english :/

Andrew Benton 04-19-2010 05:21 AM

Quote:

Originally Posted by liptonik (Post 3940047)
i have next error making gcc PASS 2:

make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/libdecnumber'
make[2]: Entering directory '/mnt/lfs/sources/gcc-build/gcc'
make[2]: ***No rule to make target 'all'. Stop.
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2

This is the aftermath. The error happened in the lines before this. We don't know what went wrong because you haven't shown us the error.

Quote:

Originally Posted by liptonik (Post 3940047)
i don't know if a need to type this:


because, there is said that "On x86_64, unsetting the multilib spec for GCC ensures that it won't attempt to link against libraries on the host:"
and i don't know if i had x86_64. I had Intel Core 2 Duo P8400.

It's safer to copy and paste from firefox. Typing can lead to typos. If you don't know whether your system is x86_64 or i686 use the command uname -m

Just copy and paste the commands from the book. It will do the right thing based on the output of uname -m

liptonik 04-19-2010 06:47 AM

ok, i have coped with this error, but have next configuring Expect:

checking for Tcl private headers... configure: error /tools/include direcotry doesn't contain private headers

and i don't know what did wrong


All times are GMT -5. The time now is 12:13 AM.