I am facing some issues while trying to compile the latest SALOME on Ubuntu 20.04. I am following the steps as described ob the Github repository but fail in the preparation phase.
The problem is similar to the one described in this thread, All the required packages for nlopt are installed:
libnlopt-dev libnlopt0 python3-nlopt libnlopt-cxx0 and libnlopt-cxx0
Then as proposed in the thread linked to above, I installed all the packages that were missing on my system and could be required for SALOME, according to the list UB20.txt (again from the link above). This did not change the error, it still persists.
I made more progress but found out that the sip build ended up in the python3.8 folder while I am running python3.9. I just copied the python3.8 folder content to the (empty) python3.9 folder.
I understand the issue could be that the linker option should explicitly reference the clang library: -stdlib=libc++ instead of `-lstdc++. It is not clear to me where the original linker switch is set and where I could replace it with the alternative.
My PATH is now:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Now the compilation gets stuck even in the cmake phase, while earlier I only got problems with a few modules:
Hi Nabil, I tried again. With the adapted PATH I the preparation brought forward that the clang package was not installed. I installed it but compilation still is based on using g++, while originally it was based on clang. Furthermore, compilation of cmake fails because of 3 missing libraries:
/usr/bin/ld: cannot find /lib64/libc.so.6
/usr/bin/ld: cannot find /usr/lib64/libc_nonshared.a
/usr/bin/ld: cannot find /lib64/librt.so.1
The first and last one are actually in
/lib/x86_64-linux-gnu
and the second one I dont have. I searched online but cannot find anything about wich package it would belong to. I created the list of installed packages and uploaded it. Again thank you for your time and effort. Best Duncan
I made more progress. The only packages that do not compile are ParaView and those that depend on ParaView. All the rest resolved by cleaning up the system and removing conda related stuff.