All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf
@ 2010-01-17 13:10 Guo Hongruan
  2010-01-17 13:30 ` Holger Hans Peter Freyther
  2010-01-21 12:41 ` Phil Blundell
  0 siblings, 2 replies; 7+ messages in thread
From: Guo Hongruan @ 2010-01-17 13:10 UTC (permalink / raw)
  To: openembedded-devel

* 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

Signed-off-by: Guo Hongruan <camelguo@gmail.com>
---
 conf/distro/micro.conf |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/conf/distro/micro.conf b/conf/distro/micro.conf
index d9fc595..9885425 100644
--- a/conf/distro/micro.conf
+++ b/conf/distro/micro.conf
@@ -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
 
-- 
1.5.4.3




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf
  2010-01-17 13:10 [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf Guo Hongruan
@ 2010-01-17 13:30 ` Holger Hans Peter Freyther
  2010-01-17 13:37   ` Guo Hongruan
  2010-01-21 12:41 ` Phil Blundell
  1 sibling, 1 reply; 7+ messages in thread
From: Holger Hans Peter Freyther @ 2010-01-17 13:30 UTC (permalink / raw)
  To: openembedded-devel

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?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf
  2010-01-17 13:30 ` Holger Hans Peter Freyther
@ 2010-01-17 13:37   ` Guo Hongruan
  2010-01-18 19:41     ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Guo Hongruan @ 2010-01-17 13:37 UTC (permalink / raw)
  To: openembedded-devel

在 Sun, 17 Jan 2010 21:30:39 +0800,Holger Hans Peter Freyther  
<holger+oe@freyther.de> 写道:

> 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?


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


>
> _______________________________________________
> 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] 7+ messages in thread

* Re: [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf
  2010-01-17 13:37   ` Guo Hongruan
@ 2010-01-18 19:41     ` Khem Raj
  2010-01-21  2:12       ` Guo Hongruan
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2010-01-18 19:41 UTC (permalink / raw)
  To: openembedded-devel

On (17/01/10 21:37), Guo Hongruan wrote:
> 在 Sun, 17 Jan 2010 21:30:39 +0800,Holger Hans Peter Freyther
> <holger+oe@freyther.de> 写道:
> 
> >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?
> 
> 
> 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.
> 
> 
> >
> >_______________________________________________
> >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
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf
  2010-01-18 19:41     ` Khem Raj
@ 2010-01-21  2:12       ` Guo Hongruan
  0 siblings, 0 replies; 7+ messages in thread
From: Guo Hongruan @ 2010-01-21  2:12 UTC (permalink / raw)
  To: openembedded-devel

在 Tue, 19 Jan 2010 03:41:37 +0800,Khem Raj <raj.khem@gmail.com> 写道:

> 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.

> 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.



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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf
  2010-01-17 13:10 [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf Guo Hongruan
  2010-01-17 13:30 ` Holger Hans Peter Freyther
@ 2010-01-21 12:41 ` Phil Blundell
  2010-01-21 13:08   ` Guo Hongruan
  1 sibling, 1 reply; 7+ messages in thread
From: Phil Blundell @ 2010-01-21 12:41 UTC (permalink / raw)
  To: openembedded-devel

On Sun, 2010-01-17 at 21:10 +0800, 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
> 
> Signed-off-by: Guo Hongruan <camelguo@gmail.com>

Thanks.  I checked this in.

p.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf
  2010-01-21 12:41 ` Phil Blundell
@ 2010-01-21 13:08   ` Guo Hongruan
  0 siblings, 0 replies; 7+ messages in thread
From: Guo Hongruan @ 2010-01-21 13:08 UTC (permalink / raw)
  To: openembedded-devel

Glad to hear that  :)

在 Thu, 21 Jan 2010 20:41:48 +0800,Phil Blundell <philb@gnu.org> 写道:

> On Sun, 2010-01-17 at 21:10 +0800, 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
>>
>> Signed-off-by: Guo Hongruan <camelguo@gmail.com>
>
> Thanks.  I checked this in.
>
> p.
>
>
>
> _______________________________________________
> 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] 7+ messages in thread

end of thread, other threads:[~2010-01-21 13:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-17 13:10 [PATCH] Set preferred glibc to 2.10.1 in conf/distro/micro.conf Guo Hongruan
2010-01-17 13:30 ` Holger Hans Peter Freyther
2010-01-17 13:37   ` Guo Hongruan
2010-01-18 19:41     ` Khem Raj
2010-01-21  2:12       ` Guo Hongruan
2010-01-21 12:41 ` Phil Blundell
2010-01-21 13:08   ` 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.