LFS 7.1 Glibc-2.14.1 make error
I have been following the LFS stable which is currently version 7.1
I am building from a x64 Ubuntu 11.04 live cd. Everything I have done so far has been fine, up until glibc. Depending on what I mess with I get different errors. In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0: ../misc/syslog.c: In function '__vsyslog_chk': ../misc/syslog.c:123:1: sorry, unimplemented: inlining failed in call to 'syslog': function body not available ../misc/syslog.c:155:9: sorry, unimplemented: called from here make[2]: *** [/media/ROOT/sources/glibc-build/misc/syslog.o] Error 1 make[2]: Leaving directory `/media/ROOT/sources/glibc-2.14.1/misc' make[1]: *** [misc/subdir_lib] Error 2 make[1]: Leaving directory `/media/ROOT/sources/glibc-2.14.1' make: *** [all] Error 2dl-addr.c:(.text+0x0): multiple definition of `_dl_addr_inside_object' /media/ROOT/sources/glibc-build/elf/dl-allobjs.os:(.text+0x11320): first defined here collect2: ld returned 1 exit status make[2]: *** [/media/ROOT/sources/glibc-build/elf/librtld.map] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/media/ROOT/sources/glibc-2.14.1/elf' make[1]: *** [elf/subdir_lib] Error 2 make[1]: Leaving directory `/media/ROOT/sources/glibc-2.14.1' make: *** [all] Error 2 this site says: http://plash.beasts.org/wiki/GlibcBu...3d84325c05e9b0 Inlining failed When building on Ubuntu: In file included from ../sysdeps/unix/sysv/linux/syslog.c:10: ../misc/syslog.c: In function '__vsyslog_chk': ../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to 'syslog': function body not available ../misc/syslog.c:155: sorry, unimplemented: called from here Need to add -U_FORTIFY_SOURCE to the gcc invocation. I found this in Ubuntu's Debian packaging for glibc. I believe this is an Ubuntuism. Ubuntu enables -D_FORTIFY_SOURCE=2 by default. See Ubuntu's CompilerFlags wiki page. so I tried adding -U_FORTIFY_SOURCE to CFLAGS and I get this: /media/ROOT/sources/glibc-build/config.h:3:3: error: #error "glibc cannot be compiled without optimization" make[2]: Leaving directory `/media/ROOT/sources/glibc-2.14.1/csu' make[1]: *** [csu/subdi../glibc-2.14.1/configure --prefix=/tools \ --host=$LFS_TGT --build=$(../glibc-2.14.1/scripts/config.guess) \ --disable-profile --enable-add-ons \ --enable-kernel=2.6.25 --with-headers=/tools/include \ libc_cv_forced_unwind=yes libc_cv_c_cleanup=yesr_lib] Error 2 make[1]: Leaving directory `/media/ROOT/sources/glibc-2.14.1' make: *** [all] Error 2 Then i read that using CFLAGS -O2 fixes this issue. with both -O2 and -U_FORTIFY_SOURCE I get this error: dl-addr.c:(.text+0x0): multiple definition of `_dl_addr_inside_object' /media/ROOT/sources/glibc-build/elf/dl-allobjs.os:(.text+0x11320): first defined here collect2: ld returned 1 exit status make[2]: *** [/media/ROOT/sources/glibc-build/elf/librtld.map] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/media/ROOT/sources/glibc-2.14.1/elf' make[1]: *** [elf/subdir_lib] Error 2 make[1]: Leaving directory `/media/ROOT/sources/glibc-2.14.1' make: *** [all] Error 2 I have also read in another forum I shouldnt use 64bit with LFS and should look at CLFS instead???? Whats the deal? Should I grab a 32bit live CD of ubuntu and just start from scratch, or, start from scratch on CLFS? Does anyone have a recommended Live CD that works with LFS 7.1? Cheers, Madhava |
Hi,
Quote:
Quote:
Quote:
Quote:
Quote:
Hope this helps. |
requirements
First question. Will the system from lfs be 64bit? I hAve 16 gb of ram and want to use it.
I have confirmed the requirements are being met. There's 4 things Ubuntu live CD doesn't have which I add and the test script comes back OK on. I have read in some places mawk is not compatible and to replace with awk but this made no difference. When you day deviation about my dir surely there's no difference in using Ubuntus /media/ instead of mnt but I guess there's no harm in trying /mnt/lfs instead for good measure. Also I noticed the guide only refers to 2 patches for glibc but the wget list includes 4 patches. Using 2 or 4 makes no difference I get errors with either. I think there is also an additional patch in the wget list for gcc which I tried using the second time by rebuilding gcc with it. Same result gcc is fine but glibc errors on make. Also the latest stable book says 7.1 but if you Google 7.1 there's a different guide on lfs site with a different order of steps than the latest stable which makes me wonder if there's an issue in the guides??? Ideas? I'll try another build with 100% copy and paste and see if that gets me past glibc. |
Hi,
Quote:
Quote:
Quote:
Quote:
Chapter 5 (a sane temporary environment) has other requirements then chapter 6 (the actual LFS sytem you will be using when done building). Quote:
Hope this helps. |
All times are GMT -5. The time now is 08:20 PM. |