I'm trying to use Fortran OpenMP on AMD64 with static linking: simple.f90:
program launch !$OMP PARALLEL write (*,*) "foo" !$OMP END PARALLEL end program launch $ gfortran-4.2 simple.f90 -fopenmp -static -lgomp $ ./a.out zsh: segmentation fault (core dumped) ./a.out ¤ gfortran-4.2 simple.f90 -fopenmp -lgomp ¤ ./a.out foo foo foo foo ¤ gfortran-4.2 simple.f90 -static -lgomp ¤ ./a.out foo This happens with fortran and on amd64 only, C or i386 work fine, so it looks like this is the combination of fortran+openmp+static+amd64. -- Summary: OpenMP with static linking fails in fortran on amd64 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: samuel dot thibault at ens-lyon dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30471