git : errno and thread weirdness

matthieu castet castet.matthieu at free.fr
Sun Dec 20 10:22:18 UTC 2009


Austin Foxley a écrit :
> 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?
>
I am building on x86.
The .config is the default one.
What I have do is :
git clone
make menuconfig (select libpthread.old lib and remove HARDWIRED_ABSPATH)
make
make install


Matthieu

PS :
$gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.4-6' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.4 (Debian 4.3.4-6)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: .config
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20091220/42abf108/attachment.diff>


More information about the uClibc mailing list