LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-25-2010, 07:33 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 618
Blog Entries: 1

Rep: Reputation: 48
cannot find -lgcc_eh


Doing 5.7. Glibc-2.10.1

Quote:
199 cd /mnt/lfs/build-dir/
200 ls
201 rm -r *
202 cp /mnt/lfs/sources/linux-2.6.30.2.tar.bz2 .
203 tar -xjvf linux-2.6.30.2.tar.bz2
204 ls
205 cd linux-2.6.30.2
206 ls
207 make mrproper
208 make headers_check
209 history
210 make INSTALL_HDR_PATH=dest headers_install
211 cp -rv dest/include/* /tools/include
212 history
213 ls
214 cd ..
215 ls
216 rm -r linux-2.6.30.2
217 rm linux-2.6.30.2.tar.bz2
218 cp /mnt/lfs/sources/glibc-2.10.1.tar.bz2 .
219 ls
220 tar -xjf glibc-2.10.1.tar.bz2
221 cp -v nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S{,.orig}
222 cd glibc-2.10.1
223 cp -v nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S{,.orig}
224 sed -e 's/FUTEX_WAIT\( | FUTEX_CLOCK_REALTIME, reg\)/FUTEX_WAIT_BITSET\1/' <nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S.orig >nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
225 mkdir -v ../glibc-build
226 cd ../glibc-build/
227 case `uname -m` in i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; esac
228 ../glibc-2.10.1/configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.10.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
229 make
230 history
make crashed with


Quote:
i686-lfs-linux-gnu-gcc -nostdlib -nostartfiles -o /mnt/lfs/build-dir/glibc-build/iconv/iconvconfig -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both /mnt/lfs/build-dir/glibc-build/csu/crt1.o /mnt/lfs/build-dir/glibc-build/csu/crti.o `i686-lfs-linux-gnu-gcc --print-file-name=crtbegin.o` /mnt/lfs/build-dir/glibc-build/iconv/iconvconfig.o /mnt/lfs/build-dir/glibc-build/iconv/strtab.o /mnt/lfs/build-dir/glibc-build/iconv/xmalloc.o /mnt/lfs/build-dir/glibc-build/iconv/hash-string.o -Wl,-rpath-link=/mnt/lfs/build-dir/glibc-build:/mnt/lfs/build-dir/glibc-build/math:/mnt/lfs/build-dir/glibc-build/elf:/mnt/lfs/build-dir/glibc-build/dlfcn:/mnt/lfs/build-dir/glibc-build/nss:/mnt/lfs/build-dir/glibc-build/nis:/mnt/lfs/build-dir/glibc-build/rt:/mnt/lfs/build-dir/glibc-build/resolv:/mnt/lfs/build-dir/glibc-build/crypt:/mnt/lfs/build-dir/glibc-build/nptl /mnt/lfs/build-dir/glibc-build/libc.so.6 /mnt/lfs/build-dir/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `i686-lfs-linux-gnu-gcc --print-file-name=crtend.o` /mnt/lfs/build-dir/glibc-build/csu/crtn.o
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/build-dir/glibc-build/iconv/iconvconfig] Error 1
make[2]: Leaving directory `/mnt/lfs/build-dir/glibc-2.10.1/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/mnt/lfs/build-dir/glibc-2.10.1'
make: *** [all] Error 2
 
Old 01-25-2010, 08:56 PM   #2
centguy
Member
 
Registered: Feb 2008
Posts: 618

Original Poster
Blog Entries: 1

Rep: Reputation: 48
wonder who should provide gcc_eh. The host ?
 
Old 01-25-2010, 10:51 PM   #3
centguy
Member
 
Registered: Feb 2008
Posts: 618

Original Poster
Blog Entries: 1

Rep: Reputation: 48
LFS 6.4 mentions these patches:

glibc-2.8-20080929-iconv_tests-1.patch
glibc-2.8-20080929-ildoubl_test-1.patch

I don't see such patches in LFS 6.5.
 
Old 01-26-2010, 09:03 AM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 618

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I did not issue the last command:
Quote:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
sed 's/libgcc/&_eh/'`
no big deal, just part of a growing process.

Last edited by centguy; 01-26-2010 at 09:04 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 01:15 AM
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 07:19 AM
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 06:55 PM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 05:45 PM
Is there a way to find recently created/edited files without using find? BrianK Linux - General 2 10-15-2007 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration