mingw32 + libgomp
Daniel Franke
franke.daniel@gmail.com
Sun Apr 15 20:49:00 GMT 2007
On Sunday 15 April 2007 21:15:38 FX Coudert wrote:
> I never bothered enough to try with --enable-threads=win32 because I
> had a working installation (with pthreads-win32), but I'd
> nevertheless be interested in knowing if building with --enable-
> libgomp --enable-threads=win32 yields a working libgomp. So, if you
> can be so kind as to report your success or failure, I'd be very
> grateful!
Configuring with "--enable-threads=win32":
[... libgomp ...]
configure: error: Pthreads are required to build libgomp
make[1]: *** [configure-target-libgomp] Error 1
make[1]: Leaving directory `/home/daniel/svn-build/gcc-4.2-mingw'
Configuring with "--enable-threads=posix" (without pthreads-win32):
[... libgcc ...]
In file included from ./gthr-default.h:1,
from ../../../svn/gcc-4.2/gcc/gthr.h:114,
from ../../../svn/gcc-4.2/gcc/unwind-dw2.c:42:
../../../svn/gcc-4.2/gcc/gthr-posix.h:43:21: error: pthread.h: No such file or
directory
Configuring with "--enable-threads=posix" (with pthreads-win32-2.8.0):
[...]
$> i686-pc-mingw32-gfortran-4.2 -fopenmp *.f90
collect2: ld terminated with signal 11 [Segmentation fault]
I.e. libgomp is built, but gfortran won't link anything. This will need
further investigation -- but not today.
FX, although this doesn't work yet, thank you very much for get me going :)
Regards
Daniel
More information about the Gcc-help
mailing list