how to select target thread model in libstdc++-v3

Joel Sherrill joel.sherrill@OARcorp.com
Sat Jun 16 09:14:00 GMT 2001


Loren James Rittle wrote:
> 
> In article < 3B2A170B.9C61D56F@OARcorp.com > you write:
> > In the 0527 gcc 3.0 snapshot, we used this patch to give RTEMS posix
> > threads:
> [...]
> > What magic needs to happen now?
> 
> Hi Joel,
> 
> As the author of half the configuration changes this area (I saw it
> was possible to finally fix this stuff right after this patch went in:
> 2001-04-26 Alexandre Oliva <aoliva@redhat.com>), I am willing to work
> with you on this.
> 
> You should not need your patch any longer.  libstdc++-v3 now uses the
> gthr.h abstraction layer.  If this is not working for your platforms,
> I am very happy to help make it work.

We have a gthr-rtems.h included in the distribution so that much is OK.
So we need to default *-rtems to using that file and address what I
guess is a change in the abstraction interface which cause this error:

In file included from
../../../../gcc-3.0-20010614/libstdc++-v3/include/bits/stl_alloc.h:38,
                 from
../../../../gcc-3.0-20010614/libstdc++-v3/include/bits/std_memory.h:21,
                 from
../../../../gcc-3.0-20010614/libstdc++-v3/include/bits/std_string.h:43,
                 from
../../../../gcc-3.0-20010614/libstdc++-v3/src/stdexcept.cc:34:
../../../../gcc-3.0-20010614/libstdc++-v3/include/bits/stl_threads.h: In
member   function `void std::_STL_mutex_lock::_M_initialize()':
../../../../gcc-3.0-20010614/libstdc++-v3/include/bits/stl_threads.h:327:
`__gthread_active_p'    undeclared (first use this function)
../../../../gcc-3.0-20010614/libstdc++-v3/include/bits/stl_threads.h:327:
(Each    undeclared identifier is reported only once for each function
it appears
   in.)
make[3]: *** [stdexcept.lo] Error 1             

All *-rtems targets which can get this far building fail at this point.

What do we need to add/address/fix?

> Regards,
> Loren

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the Gcc-bugs mailing list