- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page