Problems g++ library compiling in QNX 6.5.0

bogdan bceler@op.pl
Mon Feb 21 01:24:00 GMT 2011


Użytkownik Ian Lance Taylor <iant@google.com> napisał:
>bogdan <bceler@op.pl> writes:
>
>> I'm getting problems with g++ library compiling in QNX 6.5.0
>> When I compile a program /src/gcc-4.6-20110212/nto-x86/i486-pc-nto-qnx6.5.0/libstdc++-v3/src/parallel_settings.cc
>> I get an error:
>> xgcc: error: unrecognized option '-pthread' 
>> When I use the -v and -save-temps the result is as follows:
>
>Next time please include the actual command that you are running as
>well.  Thanks.
>
>> '-fdiagnostics-show-location=once' '-ffunction-sections' '-fdata-sections' '-g' '-O2' '-fopenmp' '-D' '_GLIBCXX_PARALLEL' 
>
>Using -fopenmp causes gcc to automatically use -pthread by default.  If
>you are not using -fopenmp yourself, please open a bug report; see
>http://gcc.gnu.org/bugs/ .  Fixing this probably requires defining
>GOMP_SELF_SPECS in config/i386/nto.h.
>
>Ian
>
Thanks the problem solved itself after adding the lines 
#undef GOMP_SELF_SPECS
#define GOMP_SELF_SPECS "%{fopenmp|ftree-parallelize-loops=*: -lc}"
to config/i386/nto.h.
Compilation gcc-4.6-20110219 proceeded correctly. 

Bogdan Celer  



More information about the Gcc-help mailing list