Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
86 Views

ld: cannot find -lm -lc -ldl, compiler optimizations

"[root@localhost parallel_studio_xe_2019.5.075]# source psxevars.sh
Intel(R) Parallel Studio XE 2019 Update 4 for Linux*
Copyright (C) 2009-2019 Intel Corporation. All rights reserved.
[root@localhost parallel_studio_xe_2019.5.075]# ifort -fast /opt/intel/parallel_studio_xe_2019.5.075/hgropelli260820191035_beta01.f90
/opt/intel/parallel_studio_xe_2019.5.075/hgropelli260820191035_beta01.f90(4529): warning #5462: Global name too long, shortened from: granular_sphere_in_given_fluid_flow_classcompute_granular_sphere_igff_environment_forces_mp_COMPUTE_LOCAL_FLUID_VELOCITY to: d_flow_classcompute_granular_sphere_igff_environment_forces_mp_COMPUTE_LOCAL_FLUID_VELOCITY
  SUBROUTINE compute_local_fluid_velocity
-------------^
ld: cannot find -lm
ld: cannot find -lc
ld: cannot find -ldl
ld: cannot find -lc"

i dont have ideia what is happenning, im running on centos7.

0 Kudos
2 Replies
Highlighted
Valued Contributor I
86 Views

These would be linker errors. Can you post your exact compile and link commands? 

0 Kudos
Highlighted
Beginner
86 Views

Well I didn't understand what you have meant by link and compile command. I have tested the same code on widows with equivalent of -fast and executed normally. And in this system, centos, I had no problems executing optimizations -ofast and -msse4.2.

0 Kudos