* compiling glibc-2.6.1 failed due to undefined reference to `_begin
@ 2010-01-03 12:14 Guo Hongruan
2010-01-04 19:17 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Guo Hongruan @ 2010-01-03 12:14 UTC (permalink / raw)
To: openembeded-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: compiling glibc-2.6.1 failed due to undefined reference to `_begin
2010-01-03 12:14 compiling glibc-2.6.1 failed due to undefined reference to `_begin Guo Hongruan
@ 2010-01-04 19:17 ` Khem Raj
2010-01-05 1:52 ` Guo Hongruan
2010-01-05 12:15 ` Guo Hongruan
0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2010-01-04 19:17 UTC (permalink / raw)
To: openembedded-devel
On (03/01/10 20:14), Guo Hongruan wrote:
> 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?
I guess you are using latest binutils. There has been changes in ld
which surfaced this issue. So either you could switch back to using
older binutils like 2.18 or something. Or you could also port the patch
recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch
-Khem
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: compiling glibc-2.6.1 failed due to undefined reference to `_begin
2010-01-04 19:17 ` Khem Raj
@ 2010-01-05 1:52 ` Guo Hongruan
2010-01-05 12:15 ` Guo Hongruan
1 sibling, 0 replies; 4+ messages in thread
From: Guo Hongruan @ 2010-01-05 1:52 UTC (permalink / raw)
To: openembedded-devel
Thanks for your information, I will try it on my site.
Thanks again.
在 Tue, 05 Jan 2010 03:17:28 +0800,Khem Raj <raj.khem@gmail.com> 写道:
> On (03/01/10 20:14), Guo Hongruan wrote:
>> 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?
>
> I guess you are using latest binutils. There has been changes in ld
> which surfaced this issue. So either you could switch back to using
> older binutils like 2.18 or something. Or you could also port the patch
> recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch
>
> -Khem
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: compiling glibc-2.6.1 failed due to undefined reference to `_begin
2010-01-04 19:17 ` Khem Raj
2010-01-05 1:52 ` Guo Hongruan
@ 2010-01-05 12:15 ` Guo Hongruan
1 sibling, 0 replies; 4+ messages in thread
From: Guo Hongruan @ 2010-01-05 12:15 UTC (permalink / raw)
To: openembedded-devel
在 Tue, 05 Jan 2010 03:17:28 +0800,Khem Raj <raj.khem@gmail.com> 写道:
> On (03/01/10 20:14), Guo Hongruan wrote:
>> 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?
>
> I guess you are using latest binutils. There has been changes in ld
> which surfaced this issue. So either you could switch back to using
> older binutils like 2.18 or something. Or you could also port the patch
> recipes/glibc/glibc-2.9/glibc-2.9-use-_begin.patch
Yes, you are right. With binutils 2.18, it works OK.
Thanks a lot
>
> -Khem
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-05 12:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-03 12:14 compiling glibc-2.6.1 failed due to undefined reference to `_begin Guo Hongruan
2010-01-04 19:17 ` Khem Raj
2010-01-05 1:52 ` Guo Hongruan
2010-01-05 12:15 ` Guo Hongruan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.