On cygwin, gfortran -fopenmp gives the warning gfortran: unrecognized option '-pthread' which gives a heap of failures in the testsuite.
This is set in gcc.c: /* Adding -fopenmp should imply pthreads. This is particularly important for targets that use different start files and suchlike. */ #ifndef GOMP_SELF_SPECS #define GOMP_SELF_SPECS "%{fopenmp: -pthread}" #endif I think the fix is to override it, as is done in gcc/config/darwin.h /* Every program on darwin links against libSystem which contains the pthread routines, so there's no need to explicitly call out when doing threaded work. */ #undef GOMP_SELF_SPECS #define GOMP_SELF_SPECS "" I'll prepare a patch at some stage. -- Summary: gfortran -fopenmp passes unrecognised -pthread Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: billingd at gcc dot gnu dot org ReportedBy: billingd at gcc dot gnu dot org GCC build triplet: i686-pc-cygwin GCC host triplet: i686-pc-cygwin GCC target triplet: i686-pc-cygwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26588