Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29270 Discussions

ifort8.1 EM64T on 64bit Opteron failed to link statically?!

johnix
Beginner
379 Views

Hello

I've been trying to statically link the helloworld.f90 with -static switch, but never get it done. Can anyone enlighten me?

I got error message like this:

/opt/intel_fce_80/lib/libifcore.a(for_open_proc.o)(.text+0x3d86): In function `for__compute_filename':
: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/intel_fce_80/lib/libifcore.a(for_open_proc.o)(.text+0x3e9d): In function `for__compute_filename':
: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

Thanks a lot!

Johnix

0 Kudos
1 Reply
TimP
Honored Contributor III
379 Views
This is not an error message, and it's not specific to ifort. It's simply a warning that libc may not have been static linked. You could use ldd to find out whether that is so. In most cases, the application will still run OK. It may mean that the link command line passed by ifort to ld could be improved upon. If it is one of those few cases where there actually is a run-time failure, other than one caused by failing to find libc.so (you would get a message to that effect), please submit a problem report on your account at premier.intel.com. I agree that the message is annoying, regardless of whether it correlates with a problem.
0 Kudos
Reply