The symbol for_simd_random_number
is defined in the library ifcore
in intel fortran 13. However it is not present in your intel fortran 11 libraries, so you cannot link agains it.
undefined reference to `for_simd_random_number'
-
28-06-2023 - |
Frage
recently when I tried to compile a fortran code using intel compiler version 11.1.073 on Linux, I ran into the following error:
>>> BUILDING: PaSR
make[1]: Entering directory `/autofs/na3_home1/xl/ISAT_V11/PaSR'
ftn -O2 -fPIC -I../isatab_ser -I../isat-ck -I../ice-pic -c pasr.f
ftn -O2 -fPIC -I../isatab_ser -I../isat-ck -I../ice-pic -c pasrsubs.f
ftn -O2 -fPIC -I../isatab_ser -I../isat-ck -I../ice-pic -c usrate.f
ftn -o PaSR pasr.o pasrsubs.o usrate.o -Bstatic -L/ccs/home/xl/ISAT_V11/lib
-lisat7_ser -lck_ext -llapack -Bstatic
/ccs/home/xl/ISAT_V11/lib/libisat7_ser.a(ci_ice_pic_bound.o): In
function `ci_ice_pic_bound_test_':
ci_ice_pic_bound.f90:(.text+0x34f): undefined reference to `for_simd_random_number'
/usr/bin/ld: link errors found, deleting executable `PaSR'
make[1]: *** [PaSR] Error 1
make[1]: Leaving directory `/autofs/na3_home1/xl/ISAT_V11/PaSR'
make: *** [build-programs] Error 1
It seems to me that the code cannot find a specific lib (in intel shared libs) which it needs and thus causing the error. I have successfully used intel/13.1.3.192 to compile it. But not with intel/11.1.073. I have searched the web for 'for_simd_random_number' but didn't find a clue.
Please do offer your wisdom. I appreciate it!
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow