Problems g++ library compiling in QNX 6.5.0
bogdan
bceler@op.pl
Sat Feb 19 15:22:00 GMT 2011
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:
Reading specs from /src/gcc-4.6-20110212/nto-x86/./gcc/specs
COLLECT_GCC=/src/gcc-4.6-20110212/nto-x86/./gcc/xgcc
COLLECT_LTO_WRAPPER=/src/gcc-4.6-20110212/nto-x86/./gcc/lto-wrapper
xgcc: error: unrecognized option '-pthread'
Target: i486-pc-nto-qnx6.5.0
Configured with: ../configure with_gmp=/usr/pkg --srcdir=.. --enable-cheaders=c
--with-as=/usr/qnx650/host/qnx6/x86/usr/bin/ntox86-as
--with-ld=/usr/qnx650/host/qnx6/x86/usr/bin/ntox86-ld --with-sysroot=/usr/qnx650/target/qnx6/ --disable-werror
--libdir=/usr/qnx650/host/qnx6/x86/usr/lib --libexecdir=/usr/qnx650/host/qnx6/x86/usr/lib
--target=i486-pc-nto-qnx6.5.0 --srcdir=/src/gcc-4.6-20110205/nto-x86-o-ntox86/.. --prefix=/usr/qnx650/host/qnx6/x86/usr
--exec-prefix=/usr/qnx650/host/qnx6/x86/usr --with-local-prefix=/usr/qnx650/host/qnx6/x86/usr
--enable-languages=c,ada,c++,objc,obj-c++,fortran --enable-threads=posix --enable-libada --disable-nls --enable-libssp --disable-tls
--with-ppl=/usr/local --enable-libgomp --enable-libffi --enable-libmudflap --enable-__cxa_atexit --disable-libstdcxx-pch
--with-gxx-include-dir=/usr/include/c++/4.6.0 --enable-multilib --with-bugurl=http://www.qnx.com --with-included-gettext
--program-suffix=-4.6.0 --enable-version-specific-runtime-libs --enable-shared --disable-bootstrap
CC=i486-pc-nto-qnx6.5.0-gcc CPPFLAGS=' -I/usr/qnx650/target/qnx6/usr/include' LDFLAGS= CXX=i486-pc-nto-qnx6.5.0-g++
AUTOMAKE=: AUTOCONF=: AUTOHEADER=: AUTORECONF=: ACLOCAL=:
Thread model: posix
gcc version 4.6.0 20110205 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc' '-B' '/src/gcc-4.6-20110212/nto-x86/./gcc' '-nostdinc++'
'-L/src/gcc-4.6-20110212/nto-x86/i486-pc-nto-qnx6.5.0/libstdc++-v3/src'
'-L/src/gcc-4.6-20110212/nto-x86/i486-pc-nto-qnx6.5.0/libstdc++-v3/src/.libs'
'-B' '/usr/qnx650/host/qnx6/x86/usr/i486-pc-nto-qnx6.5.0/bin/'
'-B' '/usr/qnx650/host/qnx6/x86/usr/i486-pc-nto-qnx6.5.0/lib/'
'-isystem' '/usr/qnx650/host/qnx6/x86/usr/i486-pc-nto-qnx6.5.0/include'
'-isystem' '/usr/qnx650/host/qnx6/x86/usr/i486-pc-nto-qnx6.5.0/sys-include'
'-I' '/src/gcc-4.6-20110212/nto-x86/i486-pc-nto-qnx6.5.0/libstdc++-v3/include/i486-pc-nto-qnx6.5.0'
'-I' '/src/gcc-4.6-20110212/nto-x86/i486-pc-nto-qnx6.5.0/libstdc++-v3/include'
'-I' '/src/gcc-4.6-20110205/libstdc++-v3/libsupc++' '-fno-implicit-templates' '-Wall' '-Wextra' '-Wwrite-strings' '-Wcast-qual'
'-fdiagnostics-show-location=once' '-ffunction-sections' '-fdata-sections' '-g' '-O2' '-fopenmp' '-D' '_GLIBCXX_PARALLEL'
'-I' '/src/gcc-4.6-20110212/nto-x86/i486-pc-nto-qnx6.5.0/libstdc++-v3/../libgomp'
'-c' '-fPIC' '-shared' '-D' 'PIC' '-o' '.libs/parallel_settings.o' '-mtune=i486' '-march=i486' '-pthread'
Please help. Why do I get '-pthread' in COLLECT_GCC_OPTIONS. I try not to use the -pthread in QNX
Bogdan Celer
More information about the Gcc-help
mailing list