This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What happens when you --enable libgomp but not --enable-languages=fortran?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>
- Date: Wed, 05 Aug 2009 10:58:31 +0100
- Subject: What happens when you --enable libgomp but not --enable-languages=fortran?
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