From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20190 invoked by alias); 5 Aug 2009 09:45:24 -0000 Received: (qmail 20173 invoked by uid 22791); 5 Aug 2009 09:45:23 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f223.google.com (HELO mail-ew0-f223.google.com) (209.85.219.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Aug 2009 09:45:17 +0000 Received: by ewy23 with SMTP id 23so1117352ewy.8 for ; Wed, 05 Aug 2009 02:45:14 -0700 (PDT) Received: by 10.210.136.15 with SMTP id j15mr10168327ebd.35.1249465514064; Wed, 05 Aug 2009 02:45:14 -0700 (PDT) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id 10sm838059eyd.27.2009.08.05.02.45.12 (version=SSLv3 cipher=RC4-MD5); Wed, 05 Aug 2009 02:45:12 -0700 (PDT) Message-ID: <4A7957C7.6050505@gmail.com> Date: Wed, 05 Aug 2009 10:06:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: "gcc@gcc.gnu.org" , Fortran List Subject: What happens when you --enable libgomp but not --enable-languages=fortran? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00086.txt.bz2 Well, this is what happened to me: > libtool: link: /gnu/gcc/obj-patched-gnat2/./gcc/xgcc -B/gnu/gcc/obj-patched-gnat > 2/./gcc/ -B/opt/gcc-tools/i686-pc-cygwin/bin/ -B/opt/gcc-tools/i686-pc-cygwin/li > b/ -isystem /opt/gcc-tools/i686-pc-cygwin/include -isystem /opt/gcc-tools/i686-p > c-cygwin/sys-include -shared .libs/alloc.o .libs/barrier.o .libs/critical.o > .libs/env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/loop_ > ull.o .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/single.o .libs/tas > k.o .libs/team.o .libs/work.o .libs/lock.o .libs/mutex.o .libs/proc.o .libs/sem. > o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/fortran.o .libs/affinity.o - > pthread -Wl,-O1 -o .libs/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker - > -out-implib -Xlinker .libs/libgomp-1.dll > xgcc: unrecognized option '-pthread' > Creating library file: .libs/libgomp-1.dll > libtool: link: (cd ".libs" && rm -f "libgomp.lib" && ln -s "libgomp-1.dll" "libg > omp.lib") > libtool: link: /opt/gcc-tools/i686-pc-cygwin/bin/ar rc .libs/libgomp.lib alloc. > o barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o loop_ull.o ordered > .o parallel.o sections.o single.o task.o team.o work.o lock.o mutex.o proc.o sem > .o bar.o ptrlock.o time.o fortran.o affinity.o > /opt/gcc-tools/i686-pc-cygwin/bin/ar: .libs/libgomp.lib: File format not recogni > zed > make[4]: *** [libgomp.la] Error 1 > > $ file i686-pc-cygwin/libgomp/.libs/libgomp.lib > i686-pc-cygwin/libgomp/.libs/libgomp.lib: symbolic link to `libgomp-1.dll' I configured the exact same sandbox yesterday with "--enable-libgomp --enable-languages=c,c++,ada,fortran" and it bootstrapped fine. I tried it today with libgomp but without fortran, and this happens. I noticed that this problem has been observed by someone on the MinGW users list, without much resolution. Something must have gone wrong with the libtool configuration somehow; there's no such thing as a libgomp.lib (whether symlink to a DLL or otherwise) in my previous successful build. Should I not be surprised that libgomp can't be built without fortran enabled, or should I open a PR? cheers, DaveK