public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* What happens when you --enable libgomp but not --enable-languages=fortran?
@ 2009-08-05 10:06 Dave Korn
  2009-08-11  4:41 ` Ralf Wildenhues
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Korn @ 2009-08-05 10:06 UTC (permalink / raw)
  To: gcc, Fortran List


  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What happens when you --enable libgomp but not  --enable-languages=fortran?
  2009-08-05 10:06 What happens when you --enable libgomp but not --enable-languages=fortran? Dave Korn
@ 2009-08-11  4:41 ` Ralf Wildenhues
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Wildenhues @ 2009-08-11  4:41 UTC (permalink / raw)
  To: Dave Korn; +Cc: gcc, Fortran List

Hello Dave,

* Dave Korn wrote on Wed, Aug 05, 2009 at 11:58:31AM CEST:
> > 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
[...]
> > 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
[...]
> > /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?

Yes, and Cc: me in the PR, please; thanks.

Cheers,
Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-10 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-05 10:06 What happens when you --enable libgomp but not --enable-languages=fortran? Dave Korn
2009-08-11  4:41 ` Ralf Wildenhues

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).