Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

ifort 16.0.0.109 compilation fails with -static

$
0
0

I am trying to compile with -static; however this fails at the load stage even for the simplest little program (omitting -static works fine)

print *,'hello'
end

ifort -static hello.f90 

gives the following error messages

ld: cannot find -lm

ld: cannot find -lpthread

ld: cannot find -lc

ld: cannot find -ldl

ld: cannot find -lc

 

where do these come from? I have source'd ifortvars.sh, compilervars.sh and mklvars.sh so all environment variables should be set correctly. The current installation is an update from a previous version - could it be that there is something which ought to have been deleted but hasn't (AFAIK -pthread is depreciated in the current version); if so what? 

Linux Custer 3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 16.0.0.109 Build 20150815

 

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>