public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/30471]  New: OpenMP with static linking fails in fortran on amd64
@ 2007-01-15 13:18 samuel dot thibault at ens-lyon dot org
  2007-01-15 13:23 ` [Bug libgomp/30471] " samuel dot thibault at ens-lyon dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: samuel dot thibault at ens-lyon dot org @ 2007-01-15 13:18 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-06-09 16:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-15 13:18 [Bug libgomp/30471] New: OpenMP with static linking fails in fortran on amd64 samuel dot thibault at ens-lyon dot org
2007-01-15 13:23 ` [Bug libgomp/30471] " samuel dot thibault at ens-lyon dot org
2007-01-15 13:29 ` samuel dot thibault at ens-lyon dot org
2007-01-15 13:32 ` samuel dot thibault at ens-lyon dot org
2007-01-15 19:20 ` pinskia at gcc dot gnu dot org
2007-01-15 20:12 ` samuel dot thibault at ens-lyon dot org
2007-01-15 20:28 ` samuel dot thibault at ens-lyon dot org
2007-01-26 13:33 ` jakub at gcc dot gnu dot org
2007-01-27 17:42 ` kargl at gcc dot gnu dot org
2007-04-18 17:47 ` fxcoudert at gcc dot gnu dot org
2009-12-23 13:42 ` janus at gcc dot gnu dot org
2010-06-09 16:36 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).