* Problems g++ library compiling in QNX 6.5.0
@ 2011-02-19 15:22 bogdan
2011-02-20 7:30 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: bogdan @ 2011-02-19 15:22 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problems g++ library compiling in QNX 6.5.0
2011-02-19 15:22 Problems g++ library compiling in QNX 6.5.0 bogdan
@ 2011-02-20 7:30 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2011-02-20 7:30 UTC (permalink / raw)
To: bogdan; +Cc: gcc-help
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-19 19:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-19 15:22 Problems g++ library compiling in QNX 6.5.0 bogdan
2011-02-20 7:30 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).