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