From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30583 invoked by alias); 19 Feb 2011 19:01:31 -0000 Received: (qmail 30575 invoked by uid 22791); 19 Feb 2011 19:01:30 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Feb 2011 19:01:24 +0000 Received: from wpaz5.hot.corp.google.com (wpaz5.hot.corp.google.com [172.24.198.69]) by smtp-out.google.com with ESMTP id p1JJ1MUs030098 for ; Sat, 19 Feb 2011 11:01:22 -0800 Received: from vws10 (vws10.prod.google.com [10.241.21.138]) by wpaz5.hot.corp.google.com with ESMTP id p1JJ1KsH008737 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 19 Feb 2011 11:01:21 -0800 Received: by vws10 with SMTP id 10so451914vws.15 for ; Sat, 19 Feb 2011 11:01:20 -0800 (PST) Received: by 10.52.161.170 with SMTP id xt10mr3479883vdb.2.1298142079125; Sat, 19 Feb 2011 11:01:19 -0800 (PST) Received: from coign.google.com ([72.14.228.1]) by mx.google.com with ESMTPS id i14sm1602383vcr.35.2011.02.19.11.01.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Feb 2011 11:01:18 -0800 (PST) From: Ian Lance Taylor To: bogdan Cc: gcc-help@gcc.gnu.org Subject: Re: Problems g++ library compiling in QNX 6.5.0 References: <16383278-caecaa0d943d9f85deb170ef9c9fb9ae@pkn7.m5r2.onet> Date: Sun, 20 Feb 2011 07:30:00 -0000 In-Reply-To: <16383278-caecaa0d943d9f85deb170ef9c9fb9ae@pkn7.m5r2.onet> (bogdan's message of "Sat, 19 Feb 2011 15:01:42 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00299.txt.bz2 bogdan 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