failing to compile 2.9 glibc

View: New views
2 Messages — Rating Filter:   Alert me  

failing to compile 2.9 glibc

by rain z :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello
everyone
now I'm building a toolchain with
binutils-2.19.1
glibc-2.19
gcc-4.4.2
it fails with following error:

/home/lfs/mglibc-build/elf/librtld.map.o '-Wl,-('
/home/lfs/glibc-build/elf/dl-allobjs.os /home/lfs/glibc-build/libc_pic.a
-lgcc '-Wl,-)' -Wl,-Map,/home/lfs/glibc-build/elf/librtld.mapT
/home/lfs/glibc-build/libc_pic.a(dl-addr.os): In function
`_dl_addr_inside_object':
dl-addr.c:(.text+0x0): multiple definition of `_dl_addr_inside_object'
/home/lfs/glibc-build/elf/dl-allobjs.os:(.text+0xd774): first defined here
/home/lfs/glibc-build/libc_pic.a(init-first.os):(.data+0x0): multiple
definition of `__libc_multiple_libcs'
/home/lfs/glibc-build/elf/dl-allobjs.os:(.bss+0x78): first defined here
/home/lfs/glibc-build/libc_pic.a(_itoa.os): In function `_itoa':
_itoa.c:(.text+0xb0): multiple definition of `_itoa'
/home/lfs/glibc-build/elf/dl-allobjs.os:(.text+0xfc8e): first defined here
collect2: ld returned 1 exit status
make[2]: *** [/home/lfs/glibc-build/elf/librtld.map] Error 1
make[2]: Leaving directory `/lfs/local/home/lfs/glibc-2.9/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/lfs/local/home/lfs/glibc-2.9'
make: *** [all] Error 2


I googled a solution : echo "CFLAGS += -fno-stack-protector"> configparms
and I tried, but it didn't work, it reports the same error.

How come this error and how can i fix/work-around it?

thanks in advance for help

Re: failing to compile 2.9 glibc

by Mike Frysinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 10 November 2009 07:52:39 rain z wrote:
> How come this error and how can i fix/work-around it?

this isnt a binutils issue.  please use the right mailing list.  while
normally that would be one of the glibc ones, considering you're doing lfs,
it'd make more sense to ask on a lfs mailing list.
-mike


signature.asc (853 bytes) Download Attachment