Skip to contentSkip to conversation

Set preferred glibc to 2.10.1 in conf/distro/micro.conf

PATCH In review Guo Hongruan 4 participants 7 messages Jan 17, 2010 – Jan 21, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Set preferred glibc to 2.10.1 in conf/distro/micro.conf

* the preferred version of binutils of conf/distro/micro.conf is 2.19.51
* the preferred version of glibc is 2.6.1 which is defined in sane-toolchain.inc
* the ld produced by binutils-2.19.51 reports that it can not find the __begin symbol when linking with glibc-2.6.1

---
 conf/distro/micro.conf |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
conf/distro/micro.conf +2 -0
index d9fc595..9885425 100644
@@ -62,6 +62,8 @@ MACHINE_KERNEL_VERSION = "2.6"
 #############################################################################
 LIBC ?= "eglibc"
 PREFERRED_BINUTILS = "2.19.51"
+PREFERRED_VERSION_glibc             ?= "2.10.1"
+PREFERRED_VERSION_glibc-initial     ?= "2.10.1"
 PREFERRED_ARM_INSTRUCTION_SET ?= "thumb"
 require conf/distro/include/sane-toolchain.inc
 
Signature · 1 line
1.5.4.3
#1 lore raw
Quoted 4 lines · On Sunday 17 January 2010 14:10:18 Guo Hongruan wrote:

* the preferred version of binutils of conf/distro/micro.conf is 2.19.51
* the preferred version of glibc is 2.6.1 which is defined in sane-toolchain.inc * the ld produced by binutils-2.19.51 reports that it can not find the __begin symbol when linking with glibc-2.6.1

It would be really great if you could start to read emails too.

So now we now two ways to cure the symptoms but we have no idea about the underlying root cause.

Is it too much to ask what the actual error is? The __begin reminds me of a bug in the linker script Khem was pointing out?

#2 lore raw
Quoted 7 lines · 在 Sun, 17 Jan 2010 21:30:39 +0800,Holger Hans Peter Freyther…
Quoted 5 lines · On Sunday 17 January 2010 14:10:18 Guo Hongruan wrote:

* the preferred version of binutils of conf/distro/micro.conf is 2.19.51
* the preferred version of glibc is 2.6.1 which is defined in sane-toolchain.inc * the ld produced by binutils-2.19.51 reports that
it
can not find the __begin symbol when linking with glibc-2.6.1

Quoted 7 lines

It would be really great if you could start to read emails too.

So now we now two ways to cure the symptoms but we have no idea about the underlying root cause.

Is it too much to ask what the actual error is? The __begin reminds me of a bug in the linker script Khem was pointing out?

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

That's the cause of the building failure. I think it is better to use the newer version of glibc that to port the patch to glibc-2.6.1

Quoted 5 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#3 lore raw
Quoted 20 lines · Guo Hongruan
Quoted 7 lines · 在 Sun, 17 Jan 2010 21:30:39 +0800,Holger Hans Peter Freyther…
Quoted 5 lines · On Sunday 17 January 2010 14:10:18 Guo Hongruan wrote:

* the preferred version of binutils of conf/distro/micro.conf is 2.19.51
* the preferred version of glibc is 2.6.1 which is defined in sane-toolchain.inc * the ld produced by binutils-2.19.51 reports that it
can not find the __begin symbol when linking with glibc-2.6.1

Quoted 8 lines

It would be really great if you could start to read emails too.

So now we now two ways to cure the symptoms but we have no idea about the underlying root cause.

Is it too much to ask what the actual error is? The __begin reminds me of a
bug in the linker script Khem was pointing out?

Quoted 7 lines

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

That's the cause of the building failure. I think it is better to use the newer version of glibc that to port the patch to glibc-2.6.1

It takes quite a bit to validate a toolchain (gcc/binutils/libc) before it is pushed as default preference. Dont use sword to kill a fly. You could very well backport the one patch and keep using 2.6.1 if you want to upgrade make sure that its stable enough and tested enough on some common architecuture/machines but as eglibc is default libc for micro I wouldnt worry too much for glibc as it might not hit all users of micro.

Quoted 19 lines
Quoted 7 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 9 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
#4 lore raw
Quoted 3 lines · 在 Tue, 19 Jan 2010 03:41:37 +0800,Khem Raj <[email protected]> 写道:

It takes quite a bit to validate a toolchain (gcc/binutils/libc) before it is pushed as default preference. Dont use sword to kill a fly. You could very well backport the one patch and keep using 2.6.1

I have reproduced this bug many times. And I have validated this patch on arm, mips, x86 platforms, it did work OK. By the way, the patch only changes the default glibc version of micro.conf, so it will not kill other distributions.

Quoted 4 lines

if you want to upgrade make sure that its stable enough and tested enough on some common architecuture/machines but as eglibc is default libc for micro I wouldnt worry too much for glibc as it might not hit all users of micro.

As eglibc is default libc for micro, this patch just added default glibc version, so it will not hit any users of micro using eglibc.

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#5 lore raw
In reply to Guo Hongruan
Quoted 5 lines · Guo Hongruan

* the preferred version of binutils of conf/distro/micro.conf is 2.19.51
* the preferred version of glibc is 2.6.1 which is defined in sane-toolchain.inc
* the ld produced by binutils-2.19.51 reports that it can not find the __begin symbol when linking with glibc-2.6.1

Thanks. I checked this in.

p.

#6 lore raw

Glad to hear that :)

Quoted 17 lines · 在 Thu, 21 Jan 2010 20:41:48 +0800,Phil Blundell <[email protected]> 写道:
Quoted 5 lines · Guo Hongruan

* the preferred version of binutils of conf/distro/micro.conf is 2.19.51
* the preferred version of glibc is 2.6.1 which is defined in sane-toolchain.inc
* the ld produced by binutils-2.19.51 reports that it can not find the __begin symbol when linking with glibc-2.6.1

Thanks. I checked this in.

p.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com