From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21604 invoked by alias); 26 Jan 2007 13:33:00 -0000 Received: (qmail 21579 invoked by uid 48); 26 Jan 2007 13:32:48 -0000 Date: Fri, 26 Jan 2007 13:33:00 -0000 Message-ID: <20070126133248.21578.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgomp/30471] OpenMP with static linking fails in fortran on amd64 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg02248.txt.bz2 ------- Comment #7 from jakub at gcc dot gnu dot org 2007-01-26 13:32 ------- Static linking with -lpthread (which -fopenmp uses) is not supported in glibc/NPTL. You can probably make it working by adding -Wl,--whole-archive -lpthread -Wl,--no-whole-archive to the command line, but there are no guarantees it will work. Anyway, this is not a GCC bug but GLIBC feature. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30471