Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7297 Discusiones

MKL 9.1 Linking a shared lib that uses mkl_solver.a on LINUX em64t

AndrewC
Nuevo Colaborador III
2.634 Vistas
I think something slipped through the QA cracks.
I cannot link my shared library with the mkl solver lib on Linux em64t. This used to work fine under MKL 9.0.
libmkl_solver.a is a static library, but that should not prevent it being linked as part of a shared library. Looks like someone forgot to compile it fPIC.


ld: /opt/intel/mkl/9.1/lib/em64t/libmkl_solver.a(util.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/opt/intel/mkl/9.1/lib/em64t/libmkl_solver.a: could not read symbols: Bad value
0 kudos
8 Respuestas
Intel_C_Intel
Empleados
2.634 Vistas

This sounds like an error and should be submitted to your Premier account at http://premier.intel.com. If you do that this issue will get logged into the system, get thoroughly checked out, and tracked. I would appreciate your submitting this to start the evaluation and repair, if appropriate, process.

Thanks,

Bruce

AndrewC
Nuevo Colaborador III
2.634 Vistas
I have submitted a problem report
Intel_C_Intel
Empleados
2.634 Vistas

Thanks. I think is the best way for this issue.

Bruce

Tony_Garratt
Principiante
2.634 Vistas

We are also seeing a very similar problem on linux 64bit but we are using MKL 10.0.012 - which presumably means this bug has still not been fixed?

Thank you!

Tony

ld: ../lib/libguide.a(kmp_csupport.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC

../lib/libguide.a: could not read symbols: Bad value

make: *** [../bin/libCK.so] Error 1

AndrewC
Nuevo Colaborador III
2.634 Vistas
The bug I saw was definitely fixed. You probably need to link to the shared library version of libguide.
Tony_Garratt
Principiante
2.634 Vistas

Thank you for the quick reply. We want to use static libraries to avoid having to ship re-distributables. Is there a way around this that doesnt involve shared libraries please?

Thank you

Tony

AndrewC
Nuevo Colaborador III
2.634 Vistas
The only work around I can think of if you absolutely do not want to ship libguide.so would be to ask Intel nicely to compile libguide.a with -fPIC. It does seem like an oversight on their part.
Todd_R_Intel
Empleados
2.634 Vistas
To address this bug the threading libraries were built with -fPIC in Update 3 which was made available in April.
-Todd
Responder