public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: bogdan <bceler@op.pl>
To: gcc-help@gcc.gnu.org
Subject: Problems g++ library compiling in QNX 6.5.0
Date: Sat, 19 Feb 2011 15:22:00 -0000	[thread overview]
Message-ID: <16383278-caecaa0d943d9f85deb170ef9c9fb9ae@pkn7.m5r2.onet> (raw)

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

             reply	other threads:[~2011-02-19 14:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-19 15:22 bogdan [this message]
2011-02-20  7:30 ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16383278-caecaa0d943d9f85deb170ef9c9fb9ae@pkn7.m5r2.onet \
    --to=bceler@op.pl \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).