concurrence.h compiler error on head

Joel Sherrill joel.sherrill@oarcorp.com
Wed Dec 1 18:34:00 GMT 2010


Hi,

Compiling C++ on the head targeting
arm-rtems4.11, I get this error.  It doesn't
occur on m68k-rtems4.11.  I don't know about
the other targets yet.

Any suggestions on what is causing this
and how to resolve it?


libtool: compile:  /users/joel/test-gcc/b-gcc1-arm/./gcc/xgcc 
-shared-libgcc -B/users/joel/test-gcc/b-gcc1-arm/./gcc -nostdinc++ 
-L/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/src 
-L/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/src/.libs 
-nostdinc -B/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/newlib/ 
-isystem 
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/newlib/targ-include 
-isystem /users/joel/test-gcc/gcc-svn/newlib/libc/include 
-B/users/joel/test-gcc/install-svn/arm-rtems4.11/bin/ 
-B/users/joel/test-gcc/install-svn/arm-rtems4.11/lib/ -isystem 
/users/joel/test-gcc/install-svn/arm-rtems4.11/include -isystem 
/users/joel/test-gcc/install-svn/arm-rtems4.11/sys-include 
-I/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/arm-rtems4.11 
-I/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include 
-I/users/joel/test-gcc/gcc-svn/libstdc++-v3/libsupc++ 
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g 
-O2 -c /users/joel/test-gcc/gcc-svn/libstdc++-v3/src/pool_allocator.cc 
-o pool_allocator.o
In file included from 
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/arm-rtems4.11/bits/gthr.h:162:0,
                  from 
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/ext/atomicity.h:34,
                  from 
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/ext/pool_allocator.h:50,
                  from 
/users/joel/test-gcc/gcc-svn/libstdc++-v3/src/pool_allocator.cc:31:
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/ext/concurrence.h: 
In destructor '__gnu_cxx::__scoped_lock::~__scoped_lock()':
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/ext/concurrence.h:313:5: 
error: __gnu_cxx::__scoped_lock::~__scoped_lock() causes a section type 
conflict
In file included from 
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/ext/pool_allocator.h:51:0,
                  from 
/users/joel/test-gcc/gcc-svn/libstdc++-v3/src/pool_allocator.cc:31:
/users/joel/test-gcc/b-gcc1-arm/arm-rtems4.11/libstdc++-v3/include/ext/concurrence.h:313:5: 
error: __gnu_cxx::__scoped_lock::~__scoped_lock() causes a section type 
conflict


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill@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 mailing list