[oe-commits] [Bug 5365] New: compiling glibc-2.6.1 failed due to undefined reference to `_begin
bugzilla-daemon at git.openembedded.org
bugzilla-daemon at git.openembedded.org
Sun Jan 3 12:11:35 UTC 2010
http://bugs.openembedded.org/show_bug.cgi?id=5365
Summary: compiling glibc-2.6.1 failed due to undefined
reference to `_begin
Product: Openembedded
Version: unspecified
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: org.openembedded.dev
AssignedTo: openembedded-commits at lists.openembedded.org
ReportedBy: camelguo at gmail.com
Bug Description:
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/
BUG always appears
How to reproduce:
1. checkout openembedded and switch to org.openembedded.dev branch;
2. Set one of the following macro groups into your local.conf
a. MACHINE="qemux86" DISTRO="micro" LIBC="glibc"
b. MACHINE="qemuarm" DISTRO="micro" LIBC="glibc"
c. MACHINE="qemumips" DISTRO="micro" LIBC="glibc"
3. build the project using "bitbake base-image"
4. the bug will appear
QA TODO:
1. I just validated the glibc-2.6.1 and have not validated other versions of
glibc.
2. I have not validated it on other hardware platforms with LIBC="glibc"
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-commits
mailing list