Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26746 Discussions

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

grpllrne
Beginner
300 Views

"[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
Juergen_R_R
Valued Contributor I
300 Views

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

grpllrne
Beginner
300 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.

Reply