libstdc++-v3 and threading

Joel Sherrill joel at OARcorp.com
Fri Jun 15 21:43:53 UTC 2001



I think you now have to --enable-threads=rtems and there is a missing 
support
function.  This is the configure line I am using:

../gcc-3.0-20010614/configure --target=${1}-rtems \
   --with-gnu-as --with-gnu-ld --with-newlib --verbose \
   --enable-threads=rtems --prefix=/opt/rtems  && make

I do have a small patch to get the missing RTEMS patch bits in place.
I have attached it.  At this point, the targets that I know have
RTEMS specific target problems are:

i386-rtems (uses deprecated CPU cflags for multilib variants)
*-rtems (libstdc++-v3 .. some problem produces the error
  message below.  This can be duplicated on at least the sparc.)

Other targets have problems (h8300, m68k-elf, powerpc-eabi,
sh-coff) that are generic non-rtems problems.

This is the error I am getting on all RTEMS builds (that don't have
a core dump before there :):

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

Does anyone have any ideas about this, the multilib problem?

--joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-3.0-20010614-rtems-20010615.diff.gz
Type: application/gzip
Size: 15875 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20010615/2d2fd248/attachment.bin>


More information about the users mailing list