Open godot11 opened 2 years ago
As a workaround, getting rid of the conflicting module in anaconda as
mv ~/anaconda3/envs/simex/lib/libgio-2.0.so.0 ~/anaconda3/envs/simex/lib/libgio-2.0.so.0.backup
solved it for now, but I'm not sure if this hack doesn't break anything else...
I'm compiling SimEx from the develop branch, but I'm hitting a wall. System is Ubuntu 18.04 LTS. I'm using Intel compliers (OpenAPI 4.4.20(1), ifort and icc version 2021.3.0).
After I set up the environment with
./install.sh conda-env
and activating it, the build fails with a dozen of undefined refs in libgio-2.0. Specifically:I attempted to both
sudo apt-get install libglib2.0-dev
(it was already installed), andconda install -c anaconda glib
, but it didn't change anything. I do have a suspicious warning from./install.sh conda
:But I'm not convinced it's relevant: I complied everything successfully on another system with Ubuntu 20.04 and GNU compliers following the same steps, and the same warning came up there as well.
I changed exactly two things in the
install.sh
:export FC=ifort
-j1
with cmake (for organized log)Do you have any insight about what may be the cause?
Full outputs of
./install.sh conda-env
,./install.sh conda
,conda list
anddpkg -l | grep libglib
are below. Please tell me if you need anything else.--> [spoiler, click] <--
Output of `./install.sh conda-env` - seems OK: ```console conda-env Create conda environment simex Collecting package metadata (repodata.json): ...working... done Solving environment: ...working... done Downloading and Extracting Packages pillow-8.3.2 | 692 KB | | 0% pillow-8.3.2 | 692 KB | 2 | 2% pillow-8.3.2 | 692 KB | ########## | 100% pillow-8.3.2 | 692 KB | ########## | 100% qtpy-1.11.0 | 37 KB | | 0% qtpy-1.11.0 | 37 KB | ########## | 100% qtpy-1.11.0 | 37 KB | ########## | 100% Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done Installing pip dependencies: ...working... Ran pip subprocess with arguments: ['/home/nagyg/anaconda3/envs/simex/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt'] Pip subprocess output: Collecting xraydb Using cached xraydb-4.4.7-py3-none-any.whl Collecting cfelpyutils Using cached cfelpyutils-1.0.1-py3-none-any.whl (23 kB) Collecting openpmd-api Using cached openPMD_api-0.14.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.9 MB) Collecting extra_geom Using cached EXtra_geom-1.5.0-py3-none-any.whl Requirement already satisfied: scipy in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from xraydb->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 1)) (1.7.1) Requirement already satisfied: numpy in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from xraydb->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 1)) (1.21.2) Requirement already satisfied: sqlalchemy in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from xraydb->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 1)) (1.4.23) Collecting future Using cached future-0.18.2-py3-none-any.whl Requirement already satisfied: matplotlib in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (3.4.3) Requirement already satisfied: h5py>=2.7.1 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (2.8.0) Requirement already satisfied: six in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from h5py>=2.7.1->extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (1.16.0) Requirement already satisfied: pyparsing>=2.2.1 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from matplotlib->extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (2.4.7) Requirement already satisfied: kiwisolver>=1.0.1 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from matplotlib->extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (1.3.2) Requirement already satisfied: python-dateutil>=2.7 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from matplotlib->extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (2.8.2) Requirement already satisfied: pillow>=6.2.0 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from matplotlib->extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (8.3.2) Requirement already satisfied: cycler>=0.10 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from matplotlib->extra_geom->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 4)) (0.10.0) Requirement already satisfied: greenlet!=0.4.17 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from sqlalchemy->xraydb->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 1)) (1.1.1) Requirement already satisfied: importlib-metadata in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from sqlalchemy->xraydb->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 1)) (4.8.1) Requirement already satisfied: typing-extensions>=3.6.4 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from importlib-metadata->sqlalchemy->xraydb->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 1)) (3.10.0.0) Requirement already satisfied: zipp>=0.5 in /home/nagyg/anaconda3/envs/simex/lib/python3.7/site-packages (from importlib-metadata->sqlalchemy->xraydb->-r /home/nagyg/Software/SimEx/condaenv.64xh7u_t.requirements.txt (line 1)) (3.5.0) Installing collected packages: future, cfelpyutils, xraydb, openpmd-api, extra-geom Successfully installed cfelpyutils-1.0.1 extra-geom-1.5.0 future-0.18.2 openpmd-api-0.14.2 xraydb-4.4.7 done # # To activate this environment, use # # $ conda activate simex # # To deactivate an active environment, use # # $ conda deactivate conda environment was deployed. Please run the following to install SIMEX Platform: conda activate simex ./install.sh conda ``` Output of `./install conda` after changing into the new env: ```console conda mkdir: created directory 'build' Changed dir to /home/nagyg/Software/SimEx/build. -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: /home/nagyg/anaconda3/envs/simex/bin/python3 (found suitable version "3.7.10", minimum required is "3.5") PYPATH=lib/python3.7/site-packages -- ************************ checking python dependencies ***************************** -- Python module Bio is found -- Python module Cython is found -- Python module dill is found -- Python module h5py is found -- Python module matplotlib is found -- Python module mpi4py is found -- Python module openpmd_api is found -- Python module numpy is found -- Python module periodictable is found -- Python module pint is found -- Python module pyFAI is found -- Python module scipy is found -- Python module setuptools is found -- Python module xraydb is found -- **************** Including modules (default OFF) **************** CHECKING Analyzers/S2EReconstruction_DM CHECKING Analyzers/S2EReconstruction_EMC CHECKING Detectors/XCSITPhotonDetector CHECKING Diffractors/CrystFELPhotonDiffractor CHECKING Diffractors/GAPDPhotonDiffractor CHECKING Diffractors/SingFELPhotonDiffractor CHECKING Others/s2e CHECKING Others/sdf CHECKING PhotonInteractors/FEFFPhotonInteractor CHECKING Propagators/WavePropagator/wpg CHECKING Sources/GenesisPhotonSource -- ***** Including module S2EReconstruction_DM from: Analyzers/S2EReconstruction_DM **** -- Found MKL: /opt/intel/oneapi/mkl/2021.3.0 -- ********************************************************* -- ***** Including module S2EReconstruction_EMC from: Analyzers/S2EReconstruction_EMC **** -- Python module Cython.Distutils is found -- Python module numpy is found -- Python module h5py is found -- ********************************************************* -- ***** Including module CrystFELPhotonDiffractor from: Diffractors/CrystFELPhotonDiffractor **** CMake Warning (dev) at Modules/Diffractors/CrystFELPhotonDiffractor/CMakeLists.txt:6 (FIND_PACKAGE): Policy CMP0074 is not set: find_package uses