[Gc] Possible build issues with glibc>=2.4

Boehm, Hans hans.boehm at hp.com
Mon Mar 12 16:11:48 PST 2007


Can you say more?  Why do you have to disable threads?  The
GC_LINUX_THREADS support in the gc is certainly intended to work with
NPTL as well.  And I believe it has regularly been tested that way.

Hans

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Klaus Treichel
> Sent: Thursday, March 08, 2007 11:23 AM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] Possible build issues with glibc>=2.4
> 
> 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
> 



More information about the Gc mailing list