OpenMP bug with gfortran when compile under Windows platform

François-Xavier Coudert fxcoudert@gmail.com
Tue May 30 14:37:00 GMT 2006


> you just port libgomp to mingw32 + pthreads-win32
> and assuming pthreads-win32 is sufficiently rich and not too buggy, it will
> just work.

With the attached patch, I can compile libgomp with

../gcc/configure --prefix=/mingw --disable-nls --with-ld=/mingw/bin/ld
--with-as=/mingw/bin/as --disable-werror --enable-bootstrap
--enable-threads=posix --with-win32-nlsapi=unicode
--host=i386-pc-mingw32 --enable-languages=c,fortran --enable-libgomp

and the resulting compiler and generated executables seem to work (I
tried a few C and Fortran toy codes). The main changes are to
libgomp/config/posix/time.c, which used functions not available on
mingw32. Would they be acceptable in this form (protected with #ifdef
_WIN32)? If so, I'll do some more testing, and officially submit the
patch.

FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openmp-mingw32.diff
Type: text/x-patch
Size: 3688 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20060530/c0145b54/attachment.bin>


More information about the Gcc mailing list