git : errno and thread weirdness

Austin Foxley austinf at cetoncorp.com
Sun Dec 20 01:02:28 UTC 2009


On 12/19/2009 04:39 PM, matthieu castet wrote:
> Hi,
>
> when building git master branch with libpthread.old and I got very weird
> behavior with errno :
>
> - static link with thread crash in __uClibc_main. This seems to be due
> to the libc_hidden_proto, that make think gcc the "if
> (likely(__h_errno_location!=NULL))" is always true, but for an unknown
> reason it is false. Also the libpthread can't override the hidden symbol
> - dynamic link with thread produce a mix of call to weak errno_location
> and libthread errno_location. Again this this because libpthread can't
> override the hidden symbol
>
>
> Removing the libc_hidden_weak/libc_hidden_proto for __errno_location and
> __h_errno_location make the things work. [1]
>
>
> Is that normal ?

What arch are you on? What's your .config?

-Austin


More information about the uClibc mailing list