CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Invalid encoding error during generation of libOpenFOAM.so when building with clang. (https://www.cfd-online.com/Forums/openfoam-installation/226714-invalid-encoding-error-during-generation-libopenfoam-so-when-building-clang.html)

kavi.saurabh May 6, 2020 02:06

Invalid encoding error during generation of libOpenFOAM.so when building with clang.
 
Hi all,

I am trying to build openfoam-7 with clang compiler version 10. I am getting an error which I am unable to resolve. The error is coming during generation of libOpenFOAM.so.
The error is:-
LLVM ERROR: Invalid encoding
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)

This invalid encoding error is not coming while generation of other libraries.
When I tried generating static library version of libOpenFOAM, it is getting generated without any issue. I have one question, instead of using dynamic libraries can I use static one as I am unable to resolve clang error which I am getting.

Thanks.

HPE May 12, 2020 13:53

Hi,

- If you believe that it is a bug, please do report to .org issue tracker. You can find the link below.

Hope it helps.


All times are GMT -4. The time now is 10:55.