[oe] compiling glibc-2.6.1 failed due to undefined reference to `_begin

Guo Hongruan camelguo at gmail.com
Sun Jan 3 12:14:32 UTC 2010


Hi guys:
    There is a building failure of org.openembedded.dev. I think it may be  
a bug of openembedded. Have anyone met the same bug? Or have some idea  
about it?

Thanks a lot!

compiling glibc-2.6.1 failed and reported the following error:
ccache i686-oe-linux-gcc -march=pentiumpro   -nostdlib -nostartfiles  
-shared -o
/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/build-i686-oe-linux/elf/ld.so
            \
           -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both  
-Wl,-z,defs     \

/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/build-i686-oe-linux/elf/librtld.os
-Wl,--version-script=/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/build-i686-oe-linux/ld.map
        \
           -Wl,-soname=ld-linux.so.2 -T
/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/build-i686-oe-linux/elf/ld.so.lds
/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/build-i686-oe-linux/elf/librtld.os:
In function `_dl_start':
rtld.c:(.text+0xac5): undefined reference to `_begin'
/media/work-disk/workdir/oe-glibc-test/cross/i686/lib/gcc/i686-oe-linux/4.4.2/../../../../i686-oe-linux/bin/ld:
/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/build-i686-oe-linux/elf/librtld.os:
relocation R_386_GOTOFF against undefined hidden symbol `_begin' can not be
used when making a shared object
/media/work-disk/workdir/oe-glibc-test/cross/i686/lib/gcc/i686-oe-linux/4.4.2/../../../../i686-oe-linux/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: ***
[/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/build-i686-oe-linux/elf/ld.so]
Error 1
make[2]: Leaving directory
`/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/glibc-2.6.1/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory
`/media/work-disk/workdir/oe-glibc-test/work/i686-oe-linux/glibc-2.6.1-r35.0/glibc-2.6.1'
make: *** [all] Error 2
FATAL: oe_runmake failed
when the following conditions:
1. MACHINE=qemux86 DISTRO=micro LIBC="glibc"
2. MACHINE=qemuarm DISTRO=micro LIBC="glibc"
3. MACHINE=qemumips DISTRO=micro LIBC="glibc"

see the following links for more detialed:
http://tinderbox.openembedded.net/packages/399846/

-- 
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com




More information about the Openembedded-devel mailing list