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

-static-intel problem in composer xe 2013

Sail_L_
Beginner
330 Views

I am trying to build a shared library using static link to intel fortran libraries with fortran composer xe intel64 2013.1.117. The test code is just a simple one but I got errors about relocation.

test.f90

=============

SUBROUNTINE TEST

INTEGER I

I = 10

WRITE(*,*) I

END

=============

 

>>ifort -fPIC test.f90 -shared -static-intel -o libtest.so

ld: /scratch/ifort64/composer_xe_2013.1.117/compiler/lib/intel64/libifcore.a(for_wseq_lis.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC /scratch/ifort64/composer_xe_2013.1.117/compiler/lib/intel64/libifcore.a: could not read symbols: Bad value

I don't understand why it still tryies to link libifcore.a not libifcore_pic.a. Does anyone can give me a hand?

0 Kudos
1 Reply
Georg_Z_Intel
Employee
330 Views
Hello, please see this thread: http://software.intel.com/en-us/forums/topic/359002 Best regards, Georg Zitzlsberger
0 Kudos
Reply