This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/30471] New: OpenMP with static linking fails in fortran on amd64
- From: "samuel dot thibault at ens-lyon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2007 13:18:03 -0000
- Subject: [Bug libgomp/30471] New: OpenMP with static linking fails in fortran on amd64
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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