This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37545] New: impossible to link with -fopenmp
- From: "francois dot jacq at irsn dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2008 18:21:54 -0000
- Subject: [Bug fortran/37545] New: impossible to link with -fopenmp
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gfortran -fopenmp test.f90
/home/lcoul/download/irun/bin/../lib/gcc/i586-pc-linux-gnu/4.4.0/../../../libgomp.so:
undefined reference to `__sched_cpucount@GLIBC_2.6'
collect2: ld returned 1 exit status
Simple test program :
PROGRAM test
INTEGER,PARAMETER :: n=100
INTEGER :: a(n),b(n),i
DO i=1,n
a(i)=i
ENDDO
!$OMP PARALLEL DO
DO i=1,n
b(i)=a(i)**2
ENDDO
!$OMP END PARALLEL DO
WRITE(*,*) b
END PROGRAM
Notice that the same problem occurs on another similar computer (Debian etch)
but with different undefined references (few pthread routines)
--
Summary: impossible to link with -fopenmp
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: francois dot jacq at irsn dot fr
GCC build triplet: 20080916 (experimental) [trunk revision 140386]
GCC host triplet: i686-pc-linux-gnu Mandriva 2007.1
GCC target triplet: GNU Fortran (GCC) 4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37545