Issues with compiling Salome 9.8.0 on Ubuntu 20.04

Hello all,

trying to compile Salome while following the instructions in the readme, I get at the end of compilation (after the prepare tools was run) :

Compilation of SAMPLES … ignored
Compilation of COMPONENT … ERROR : the following mandatory product(s) is(are) not installed: KERNEL ParaView openturns nlopt FMILibrary PyFMI
Compilation of PYCALCULATOR … ERROR : the following mandatory product(s) is(are) not installed: KERNEL FIELDS GUI ParaView openturns nlopt FMILibrary PyFMI
Compilation of CALCULATOR … ERROR : the following mandatory product(s) is(are) not installed: KERNEL FIELDS GUI ParaView openturns nlopt FMILibrary PyFMI
Compilation of PY2CPP … ERROR : the following mandatory product(s) is(are) not installed: KERNEL
Compilation of ADAO_INTERFACE … ERROR : the following mandatory product(s) is(are) not installed: PY2CPP KERNEL ADAO nlopt EFICAS GUI ParaView openturns FMILibrary PyFMI YACS
Compilation of PARAVISADDONS … ERROR : the following mandatory product(s) is(are) not installed: KERNEL GUI ParaView openturns nlopt FMILibrary PyFMI PARAVIS FIELDS GEOM opencv SMESH SHAPERSTUDY SHAPER
Compilation of YDEFX … ERROR : the following mandatory product(s) is(are) not installed: KERNEL PY2CPP YACS GUI ParaView openturns nlopt FMILibrary PyFMI

among other compiling errors. ParaView, openturns, nlopt, etc are of course already installed.

Some modules seem to have compiled fine, so I still tried to set environment:
./SALOME-9.8.0-native-UB20.04-SRC/sat launcher SALOME-9.8.0-native
***** salomeTools ERROR: sat launcher *****
<bound method SatException.message of SatException(‘KERNEL is not installed’)>

and to start a gui:
./SALOME-9.8.0-native-UB20.04-SRC/binsalome -g
ERROR:salomeContext:Unexpected error:
Traceback (most recent call last):
File “/home/qu/SALOME-9.8.0-native-UB20.04-SRC/BINARIES-UB20.04/SALOME/bin/salome/salomeContext.py”, line 279, in _startSalome
res = getattr(self, command)(options) # run appropriate method
File “/home/qu/SALOME-9.8.0-native-UB20.04-SRC/BINARIES-UB20.04/SALOME/bin/salome/salomeContext.py”, line 354, in _runAppli
import setenv
File “/home/qu/SALOME-9.8.0-native-UB20.04-SRC/BINARIES-UB20.04/KERNEL/bin/salome/setenv.py”, line 26, in
import orbmodule
File “/home/qu/SALOME-9.8.0-native-UB20.04-SRC/BINARIES-UB20.04/KERNEL/bin/salome/orbmodule.py”, line 31, in
from omniORB import CORBA
File “/home/qu/SALOME-9.8.0-native-UB20.04-SRC/BINARIES-UB20.04/omniORB/lib/python3.8/site-packages/omniORB/init.py”, line 44, in
import _omnipy
ModuleNotFoundError: No module named ‘_omnipy’

(omnipy is indeed installed).

Looks to me that the KERNEL somehow does not want to compile.

Anyone able to help?

Many thanks.

Hi,
indeed since KERNEL, Paraview, etc. are not compiled, it won’t run.
Please ensure that you have all system prerequisites installed by running following command line:

      ./sat config SALOME-9.8.0-native --check_system

then install missing packages.
If it still does not work, you can share the list of installed packages such that we can check what is missing in your case.
HTH.

Thanks Nabil, that’s the issue right there, the checks are all good. Output from check_system:

Check the system dependencies declared in the application

  • python3-babel : OK
  • python3-pytest-cython : OK
  • python3-jinja2 : OK
  • python3-pil : OK
  • python3-pyqt5 : OK
  • pyqt5-dev : OK
  • pyqt5-dev-tools : OK
  • python3-pygments : OK
  • python3-sphinx : OK
  • python3-alabaster : OK
  • libboost-all-dev : OK
  • python3-certifi : OK
  • python3-chardet : OK
  • python3-click : OK
  • cmake : OK
  • libcminpack1 : OK
  • libcminpack-dev : OK
  • libcppunit-dev : OK
  • python3-cycler : OK
  • python3-dateutil : OK
  • python3-docutils : OK
  • doxygen : OK
  • libeigen3-dev : OK
  • fftw : OK
  • fftw-dev : OK
  • libfreeimage3 : OK
  • libfreeimage-dev : OK
  • libfreetype6 : OK
  • libfreetype6-dev : OK
  • graphviz : OK
  • libgraphviz-dev : OK
  • python3-idna : OK
  • python3-imagesize : OK
  • python3-kiwisolver : OK
  • liblapack3 : OK
  • liblapack-dev : OK
  • libxml2 : OK
  • libxml2-dev : OK
  • clang : OK
  • llvm-dev : OK
  • python3-markupsafe : OK
  • python3-matplotlib : OK
  • mesa-common-dev : OK
  • libglu1-mesa-dev : OK
  • libmetis5 : OK
  • libmetis-dev : OK
  • python3-numpy : OK
  • python3-packaging : OK
  • python3-pandas : OK
  • python3-psutil : OK
  • python3-pyparsing : OK
  • readline-common : OK
  • python3-tz : OK
  • libqwt-qt5-6 : OK
  • libqwt-qt5-dev : OK
  • python3-requests : OK
  • libbsd0 : OK
  • libbz2-1.0 : OK
  • libc6 : OK
  • libdc1394-22 : OK
  • libdrm2 : OK
  • libegl1 : OK
  • libexif12 : OK
  • libexpat1 : OK
  • libfftw3-double3 : OK
  • libfontconfig1 : OK
  • libgl1 : OK
  • libglu1-mesa : OK
  • libgomp1 : OK
  • libgphoto2-6 : OK
  • libice6 : OK
  • libjbig0 : OK
  • libjsoncpp1 : OK
  • libltdl7 : OK
  • liblzma5 : OK
  • libncurses5 : OK
  • libnuma1 : OK
  • libpcre3 : OK
  • libquadmath0 : OK
  • libraw1394-11 : OK
  • libsm6 : OK
  • libstdc++6 : OK
  • libtiff5 : OK
  • libudev1 : OK
  • libusb-1.0-0 : OK
  • libuuid1 : OK
  • libx11-6 : OK
  • libx11-xcb1 : OK
  • libxau6 : OK
  • libxcb1 : OK
  • libxcb-glx0 : OK
  • libxcb-xfixes0 : OK
  • libxcb-xkb1 : OK
  • libxdmcp6 : OK
  • libxext6 : OK
  • libxft2 : OK
  • libxi6 : OK
  • libxkbcommon0 : OK
  • libxkbcommon-x11-0 : OK
  • libxmu6 : OK
  • libxpm4 : OK
  • libxrender1 : OK
  • libxss1 : OK
  • libxt6 : OK
  • zlib1g : OK
  • libsqlite3 : OK
  • libopenexr24 : OK
  • libwebp6 : OK
  • libgfortran5 : OK
  • libilmbase24 : OK
  • libevent-2.1-7 : OK
  • libpng16-16 : OK
  • libgcc-9-dev : OK
  • libffi7 : OK
  • libtinfo6 : OK
  • libgphoto2-port12 : OK
  • libglx0 : OK
  • libopengl0 : OK
  • libzstd1 : OK
  • libglvnd0 : OK
  • libssl-dev : OK
  • gcc : OK
  • make : OK
  • sed : OK
  • g++ : OK
  • libexpat1-dev : OK
  • libfontconfig1-dev : OK
  • flex : OK
  • bison : OK
  • libglu1-mesa-dev : OK
  • perl : OK
  • libxcb-dri2-0-dev : OK
  • libxkbcommon-dev : OK
  • libxkbcommon-x11-dev : OK
  • bzip2 : OK
  • libxi-dev : OK
  • libxt-dev : OK
  • libxmu-dev : OK
  • libxpm-dev : OK
  • libxft-dev : OK
  • automake : OK
  • libtool : OK
  • libjpeg-dev : OK
  • cmake : OK
  • libicu-dev : OK
  • libopenmpi-dev : OK
  • libreadline-dev : OK
  • libhwloc-dev : OK
  • libsqlite3-dev : OK
  • libtbb-dev : OK
  • cython3 : OK
  • libfftw3-dev : OK
  • libopenblas-dev : OK
  • qttools5-dev : OK
  • libqt5svg5-dev : OK
  • libqt5x11extras5-dev : OK
  • qtxmlpatterns5-dev-tools : OK
  • python3-scipy : OK
  • libscotch-dev : OK
  • python3-sip : OK
  • python3-sip-dev : OK
  • python3-six : OK
  • python3-stemmer : OK
  • python3-sphinx-rtd-theme : OK
  • python3-sphinxcontrib.websupport : OK
  • sphinx-intl : OK
  • python3-statsmodels : OK
  • python3-statsmodels : OK
  • swig : OK
  • libtbb2 : OK
  • libtbb-dev : OK
  • libtcl : OK
  • tcl-dev : OK
  • libtk : OK
  • tk-dev : OK
  • python3-urllib3 : OK

it seems one cannot upload files other thatn images to this discourse.
Can you run: apt list --installed > apt.UB20.txt
and upload this file it to some location, such that we can download it and see what’s missing in your case ?

Hi Nabil, here is a link to the list:
https://hopium-my.sharepoint.com/:t:/p/q_davout/EUDhOQblsDNJr_qYVyau4P4BoXIiDPOTELib0bVq7mxDZw?e=fjdbNw

you seem to be missing several system dependencies which sadly are not reported by sat config SALOME-9.8.0 --check_system
I will later send around the list of missing prerequisites . In between, can you do:
tar zcf LOGS.tgz LOGS
and share the generated archive which contains all log files.

Hello Nabil,
I’ve uploaded the logs here
https://hopium-my.sharepoint.com/:f:/p/q_davout/EjKt_4wpPGBDhRIRWiIgZAsBdO8MkErAVdgpi7nw9ixFSg?e=NK1jaX
Thanks

Hello all,
anyone able to help on this issue?
Many thanks in advance

Apologise for the delay. You seem to be missing several packages.
I attach the list of packages used to build SALOME on Ubuntu 20
On your node, simply run
cat UB20.txt | tr '/' ' '|awk '{print "dpkg -l "$1" > /dev/null 2>&1; if [ $? -ne 0 ]; then echo missing "$1";fi"}'|sh
Then see the ones which are relevant. I need to arrange a shorter list in my spare time.
You can of course, send me the output and I will try to send you the ones which are needed.
I can already see that you need:

libgsl-dev
fftw-dev
libopenblas-dev

UB20.txt (263.9 KB)

Hi NabilG,
thank you very much for your follow up.
I actually went ahead and installed all the dependencies listed.
Then ran prepare, recompile, environ and launcher, but the compilation fails again for apparently the same reasons (Kernel, GUI, Paraview, openturns etc. not installed).
I’ve uploaded again the apt list and the logs for your review: Sign in to your account
Cheers

Can you do the following and share the log file:

./sat -t compile SALOME-9.8.0-native -p openturns | tee openturns.txt

And share the openturns.txt file ?

openturns log file in same share folder

Seems like a conflict between openturns and the one which is installed on your Ubuntu.
Basically libopenturns-dev screws up openturns additional components. Patches need to be implemented at the CMake files level.
In the meanwhile, you can simply edit file: PROJECT/applications/SALOME-9.8.0-native.pyconf and comment out the optional Openturns product
Let us know if it works.

seems to work: openturns does not show up anymore in the list of compilation failures. I’ll comment out all the other packages that also show up.