idg101

GNU OpenMP Linking issues

Discussion created by idg101 on Jun 23, 2009
Latest reply on Jun 24, 2009 by chipf

I am using acml 4.2.0 and gcc 4.4 and when I try to compile, I get the following linking errors:

 

12:34pm|sf1> make -f Makefile.integration_test.openmp
g++ -I/mnt/ddn3/Geomatics/lib/acml4.2.0/gfortran64_mp/include  -L/mnt/ddn3/Geomatics/lib/gcc-4.4/lib64/ -L/mnt/ddn3/Geomatics/lib/acml4.2.0/gfortran64_mp/lib -lgfortran -lm -lpng -lstdc++ -lrt -lacml_mp integration_test.o CUls.o CNnls.o CUtils.o CMatrix.o CMathFunctions.o CStopwatch.o CDataBlock_Float32.o CLogger.o CPng.o  -o integration_test


/home/isaacg/opt/gcc-4.4/lib64/libgomp.so.1: undefined reference to `pthread_setaffinity_np@GLIBC_2.3.4'
/home/isaacg/opt/gcc-4.4/lib64/libgomp.so.1: undefined reference to `pthread_attr_setaffinity_np@GLIBC_2.3.4'
/home/isaacg/opt/gcc-4.4/lib64/libgomp.so.1: undefined reference to `pthread_getaffinity_np@GLIBC_2.3.4'
/home/isaacg/opt/gcc-4.4/lib64/libgomp.so.1: undefined reference to `__sched_cpucount@GLIBC_2.6'
collect2: ld returned 1 exit status
make: *** [integration_test] Error 1

Please help!

 

Thanks in advance,

Isaac

Outcomes