Why do I get an error "libgmp.so.3: wrong ELF class: ELFCLASS32"?

When using -machine-architecture 64 option on a Linux OS 64-Bits with Polyspace server installed, I get the following error message:
/usr/local/PolySpace/PolySpaceForCandCPP_R2010b/Verifier/bin/x86_64-linux/iabc-c2if.cx86_64-linux: error while loading shared libraries: libgmp.so.3: wrong ELF class: ELFCLASS32

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2010년 10월 19일

0 개 추천

The 64-bits version of the libgmp.so library has not been installed on the machine or LD_LIBRARY_PATH variable is incorrectly set.
As a consequence, depending on the way the operating system has been installed (list of installed packages), the binary may not be able to locate it and fails because it only finds a 32-bits version.
To resolve this issue, we need to check if all the necessary packages are installed in the system and notably the library 64-Bits libgmp.so (Multiprecision arithmetic library).
Note that forcing option -machine-architecture 32 resolves the issue if 32-Bits library has been installed.

추가 답변 (0개)

제품

릴리스

아직 릴리스를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by