[Gc] Possible build issues with glibc>=2.4

Klaus Treichel ktreichel at web.de
Thu Mar 8 11:22:51 PST 2007


Hi,

i'm working on the dotgnu-pnet project and we got a following bug
report:

SNIP >>
glibc>=2.4 has dropped support for linuxthreads (almost) and 
supports only NPTL. 

As a consequence, in order to build gcc against glibc>=2.4 
one has to use --disable-threads (or the equivalent 
--enable-threads=single). This, in turn, implies that "gcc 
-v" will emit: 


Using built-in specs. 
Target: i686-pc-linux-gnu 
Configured with: ../configure \ 
--prefix=/usr/local/gcc-4.1.2 \ 
--disable-threads --enable-__cxa_atexit 
vvvvvvvvvvvvvvvvvvvv 
Thread model: single 
^^^^^^^^^^^^^^^^^^^^ 
gcc version 4.1.2 
<< SNIP

SNIP >>
However, in pnet-0.8.0/libgc/configure the $host variable is 
not tested and only the output of "gcc -v" is considered (in 
the absence of --enable-threads option). Since "gcc -v" 
returns "Thread model: single" when built against 
glibc>=2.4, pnet-0.8.0/libgc/configure assumes no threads 
and compilation crashes.
<< SNIP

Is this a known issue ?

Thanks,

Klaus
-- 
Klaus Treichel <ktreichel at web.de>
privat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20070308/a4db2f3e/attachment.pgp


More information about the Gc mailing list