anderkve / gambit_np

0 stars 1 forks source link

Compilation error: error #7013: This module file was not generated by any release of this compiler. [NESTED] #7

Closed fzeiser closed 3 years ago

fzeiser commented 3 years ago

Reveived puzzling error message due to files that were downloaded/compiled but in build directory.

(py3.8) [fabiobz@login1.FRAM /cluster/projects/nn9464k/progs/gambit_np/build]$ cmake -D PYTHON_EXECUTABLE=$PYTHON_EXECUTABLE -D PYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR -D PYTHON_LIBRARY=$PYTHON_LIBRARY -Ditch="Mathematica;great;ColliderBit;CosmoBit;DarkBit;DecayBit;ExampleBit_A;ExampleBit_B;FlavBit;NeutrinoBit;PrecisionBit;SpecBit" -DWITH_MPI=ON -DWITH_HEPMC=Off -DWITH_ROOT=Off -D EIGEN3_INCLUDE_DIR=$EIGEN3_INCLUDE_DIR -D CMAKE_C_COMPILER=mpiicc -D CMAKE_CXX_COMPILER=mpiicpc -D CMAKE_Fortran_COMPILER=mpiifort ..
-- Build type is set to None 
-- The C compiler identification is Intel 19.1.0.20200306
-- The CXX compiler identification is Intel 19.1.0.20200306
-- The Fortran compiler identification is Intel 19.1.0.20200306
-- Check for working C compiler: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiicc
-- Check for working C compiler: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiicc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiicpc
-- Check for working CXX compiler: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiicpc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working Fortran compiler: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiifort
-- Check for working Fortran compiler: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiifort  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiifort supports Fortran 90
-- Checking whether /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiifort supports Fortran 90 -- yes
-- Found PythonInterp: /cluster/projects/nn9464k/progs/py3.8/bin/python3.8 (found suitable version "3.8.2", minimum required is "3") 
-- Found PythonLibs: /cluster/software/Python/3.8.2-GCCcore-9.3.0/lib/libpython3.8.so.1.0 (Required is at least version "3") 
   Using Python interpreter version 3.8.2 for build.
   Using Python libraries version  for Python backend support.
   Backends requiring Python 2.7 will be ditched.
   NOTE: You are using different Python versions for the interpreter and the libraries!
   In principle this should be fine, as the interpreter is only used for building GAMBIT, and the
   libraries are only used for providing support for Python backends at runtime.  However, if you
   have matching versions installed, you can make this message go away by trying one of the following
   (making sure to clean out your build directory in between any such changes):
   1. invoke cmake as cmake -DFORCE_PYTHON2=True .. (or similar)
   2. invoke cmake as cmake -DFORCE_PYTHON3=True .. (or similar)
   3. set the following variables when invoking cmake:
     PYTHON_LIBRARY
     PYTHON_INCLUDE_DIR
     PYTHON_EXECUTABLE

-- Found PythonInterp: /cluster/projects/nn9464k/progs/py3.8/bin/python3.8 (found version "3.8.2") 
-- Found PythonLibs: /cluster/software/Python/3.8.2-GCCcore-9.3.0/lib/libpython3.8.so.1.0
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
   Found pybind11 2.4.3. GAMBIT requires at least v2.5.0.
   CMake will now download and install pybind11 v2.5.0.
Cloning into '/cluster/projects/nn9464k/progs/gambit_np/contrib/pybind11'...
   Found pybind11 2.5.0 at /cluster/projects/nn9464k/progs/gambit_np/contrib/pybind11.
-- pybind11 v2.5.0
-- Found Python module yaml.
-- Found Python module os.
-- Found Python module re.
-- Found Python module datetime.
-- Found Python module sys.
-- Found Python module getopt.
-- Found Python module shutil.
-- Found Python module itertools.
 X Axel is disabled. Please use -DWITH_AXEL=ON to enable fast downloads with Axel.
-- Performing Test COMPILER_SUPPORTS_CXX14
-- Performing Test COMPILER_SUPPORTS_CXX14 - Success
-- Performing Test COMPILER_SUPPORTS_C18
-- Performing Test COMPILER_SUPPORTS_C18 - Success
-- Performing Test COMPILER_SUPPORTS_C11
-- Performing Test COMPILER_SUPPORTS_C11 - Success
-- Performing Test COMPILER_SUPPORTS_C99
-- Performing Test COMPILER_SUPPORTS_C99 - Success
-- Found Boost: /cluster/software/Boost/1.72.0-iimpi-2020a/include (found suitable version "1.72.0", minimum required is "1.41")  
-- Eigen version: 3.3.7
-- OpenMP found successfully
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1") 
-- Checking for module 'gsl >= 2.1'
--   Found gsl , version 2.6
-- Found GSL: ;/cluster/software/GSL/2.6-GCC-9.3.0/lib/libgsl.so;/cluster/software/GSL/2.6-GCC-9.3.0/lib/libgslcblas.so;/usr/lib64/libm.so  
 X Excluding Mathematica from GAMBIT configuration. All backends using Mathematica will be disabled
-- Found LibDL: /usr/lib64/libdl.so  
-- Werror is disabled
-- Performing Test CXX_SUPPORTS_all
-- Performing Test CXX_SUPPORTS_all - Success
-- Performing Test CXX_SUPPORTS_extra
-- Performing Test CXX_SUPPORTS_extra - Success
-- Performing Test CXX_SUPPORTS_no-misleading-indentation
-- Performing Test CXX_SUPPORTS_no-misleading-indentation - Failed
-- Found MPI_C: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiicc (found version "3.1") 
-- Found MPI_CXX: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiicpc (found version "3.1") 
-- Found MPI_Fortran: /cluster/software/impi/2019.7.217-iccifort-2020.1.217/intel64/bin/mpiifort (found version "3.1") 
-- Found MPI: TRUE (found version "3.1")  
-- MPI C/C++ libraries found. GAMBIT will be MPI-enabled.
-- MPI Fortran libraries found. Fortran scanners will be MPI-enabled.
-- MPI C++ libraries found. C++ scanners will be MPI-enabled.
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Found BLAS: /cluster/software/imkl/2020.1.217-iimpi-2020a/mkl/lib/intel64/libmkl_intel_lp64.so;/cluster/software/imkl/2020.1.217-iimpi-2020a/mkl/lib/intel64/libmkl_intel_thread.so;/cluster/software/imkl/2020.1.217-iimpi-2020a/mkl/lib/intel64/libmkl_core.so;/cluster/software/imkl/2020.1.217-iimpi-2020a/lib/intel64/libiomp5.so;-lm;-ldl  
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
   Using the following LAPACK libraries: /cluster/software/imkl/2020.1.217-iimpi-2020a/mkl/lib/intel64/libmkl_rt.so /cluster/software/imkl/2020.1.217-iimpi-2020a/mkl/lib/intel64/libmkl_intel_lp64.so /cluster/software/imkl/2020.1.217-iimpi-2020a/mkl/lib/intel64/libmkl_intel_thread.so /cluster/software/imkl/2020.1.217-iimpi-2020a/mkl/lib/intel64/libmkl_core.so /cluster/software/imkl/2020.1.217-iimpi-2020a/lib/intel64/libiomp5.so -lm -ldl
 X ROOT support is deactivated. Set -DWITH_ROOT=ON to activate ROOT support in GAMBIT.
   Disabling GreAT and RestFrames support in GAMBIT configuration.
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Found HDF5 libraries: /cluster/software/HDF5/1.10.6-iimpi-2020a/lib/libhdf5.so;/cluster/software/Szip/2.1.1-GCCcore-9.3.0/lib/libsz.so;/cluster/software/zlib/1.2.11-GCCcore-9.3.0/lib/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so;/cluster/software/imkl/2020.1.217-iimpi-2020a/lib/intel64/libiomp5.so;/usr/lib64/libpthread.so
-- Found SQLite3 libraries: /usr/lib64/libsqlite3.so
-- Found Cython: 0.29  
-- Found Cython libraries: /cluster/software/Python/3.8.2-GCCcore-9.3.0/bin/cython
-- Found Git: /usr/bin/git (found version "1.8.3.1") 
   GAMBIT version detected from git tag: 1.5.0
 X Excluding ColliderBit from GAMBIT configuration.
 X Excluding CosmoBit from GAMBIT configuration.
 X Excluding DarkBit from GAMBIT configuration.
 X Excluding DecayBit from GAMBIT configuration.
 X Excluding ExampleBit_A from GAMBIT configuration.
 X Excluding ExampleBit_B from GAMBIT configuration.
 X Excluding FlavBit from GAMBIT configuration.
 X Excluding NeutrinoBit from GAMBIT configuration.
 X Excluding PrecisionBit from GAMBIT configuration.
 X Excluding SpecBit from GAMBIT configuration.
 X RestFrames is deactivated. Set -DWITH_RESTFRAMES=ON to activate RestFrames.
   RestFrames-dependent analyses in ColliderBit will be deactivated.
 X HepMC is deactivated. Set -DWITH_HEPMC=ON to activate HepMC.
   HepMC-dependent functions in ColliderBit will be deactivated.
   ColliderBit Solo (CBS) will be deactivated.
-- Updating GAMBIT scanner cmake and related files
   Found library ./ScannerBit/installed/diver/1.0.4/lib/libdiver.so needed for ScannerBit plugin diver v1.0.4
   Found library ./ScannerBit/installed/multinest/3.11/libnest3.so needed for ScannerBit plugin multinest v3.11.0
   Found library ./ScannerBit/installed/polychord/1.17.1/lib/libchord.so needed for ScannerBit plugin polychord v1.17.1
   Existing ScannerBit/include/gambit/ScannerBit/priors_rollcall.hpp is identical to candidate; leaving it untouched
   Updated ScannerBit/CMakeLists.txt
   Existing ScannerBit/lib/plugin_libraries.list is identical to candidate; leaving it untouched
   Existing scratch/build_time/scanbit_reqd_entries.yaml is identical to candidate; leaving it untouched
   Existing scratch/build_time/scanbit_flags.yaml is identical to candidate; leaving it untouched
   Created /cluster/projects/nn9464k/progs/gambit_np/build/linkedout.cmake
-- Updating GAMBIT scanner cmake and related files - done.
-- Updating GAMBIT with config data
-- Looking for include file link.h
-- Looking for include file link.h - found
   Found graphviz. Model and module function hierarchy plots will be enabled.
   Configured /cluster/projects/nn9464k/progs/gambit_np/cmake/include/gambit/cmake/cmake_variables.hpp
-- Updating GAMBIT with config data - done.
-- Generated particle_database.cpp from particle_database.yaml.
-- Updating GAMBIT module, model, backend, and printer CMake files.
   Existing NuclearBit/CMakeLists.txt is identical to candidate; leaving it untouched
   Existing Backends/CMakeLists.txt is identical to candidate; leaving it untouched
   Existing Models/CMakeLists.txt is identical to candidate; leaving it untouched
   Existing Printers/CMakeLists.txt is identical to candidate; leaving it untouched
-- Updating GAMBIT module, backend, and printer CMake files - done.
-- Found Python module scipy.
-- Performing Test CXX_SUPPORTS_no-deprecated-declarations
-- Performing Test CXX_SUPPORTS_no-deprecated-declarations - Success
 X Excluding susyhd 1.0.2 from GAMBIT configuration.
-- Found Python module cython.
-- Found Python module dill.
-- Found Python module future.
 X Excluding great 1.0.0 from GAMBIT configuration.
-- BOSS step successfully generated for the following cmake targets: pythia_8.212;pythia_em_8.212;gm2calc_1.3.0;gm2calc_1.2.0 
 X Excluding great 1.0.0 from ScannerBit configuration.
-- Did not find scanner library diver for diver_1.0.0. Disabling scanners that depend on this.
-- Did not find scanner library diver for diver_1.0.2. Disabling scanners that depend on this.
-- Did not find scanner library great for great. Disabling scanners that depend on this.
-- Did not find scanner header TGreatMCMCAlgorithmCovariance.h. Disabling scanners that depend on this.
-- Did not find scanner header TGreatModel.h. Disabling scanners that depend on this.
-- Did not find scanner header fparser.hh. Disabling scanners that depend on this.
-- Did not find scanner header TGreatManager.h. Disabling scanners that depend on this.
-- Did not find scanner library nest3 for multinest_3.10. Disabling scanners that depend on this.
-- Configuring done
-- Generating done
-- Build files have been written to: /cluster/projects/nn9464k/progs/gambit_np/build
(py3.8) [fabiobz@login1.FRAM /cluster/projects/nn9464k/progs/gambit_np/build]$ make -j4 scanners
Scanning dependencies of target check-rebuild-diver_1.0.4
Scanning dependencies of target check-rebuild-multinest_3.11
Scanning dependencies of target check-rebuild-polychord_1.17.1
[  0%] Built target check-rebuild-diver_1.0.4
[  0%] Built target check-rebuild-multinest_3.11
[  0%] Built target check-rebuild-polychord_1.17.1
Scanning dependencies of target polychord_1.17.1
Scanning dependencies of target multinest_3.11
Scanning dependencies of target diver_1.0.4
[  0%] Creating directories for 'multinest_3.11'
[ 25%] Creating directories for 'diver_1.0.4'
[ 25%] Creating directories for 'polychord_1.17.1'
[ 25%] Performing download step for 'multinest_3.11'
[ 25%] Performing download step for 'diver_1.0.4'
[ 25%] Performing download step for 'polychord_1.17.1'
--2021-01-22 14:24:09--  https://github.com/farhanferoz/MultiNest/archive/4b3709c6d659adbd62c85e3e95ff7eeb6e6617af.tar.gz
--2021-01-22 14:24:09--  https://github.com/PolyChord/PolyChordLite/archive/1.17.1.tar.gz
--2021-01-22 14:24:09--  https://diver.hepforge.org/downloads/diver-1.0.4.tar.gz
Resolving github.com (github.com)... Resolving diver.hepforge.org (diver.hepforge.org)... Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
connected.
HTTP request sent, awaiting response... 129.234.186.186
Connecting to diver.hepforge.org (diver.hepforge.org)|129.234.186.186|:443... HTTP request sent, awaiting response... connected.
302 Found
Location: https://codeload.github.com/PolyChord/PolyChordLite/tar.gz/1.17.1 [following]
--2021-01-22 14:24:09--  https://codeload.github.com/PolyChord/PolyChordLite/tar.gz/1.17.1
Resolving codeload.github.com (codeload.github.com)... HTTP request sent, awaiting response... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... 302 Found
Location: https://codeload.github.com/farhanferoz/MultiNest/tar.gz/4b3709c6d659adbd62c85e3e95ff7eeb6e6617af [following]
--2021-01-22 14:24:10--  https://codeload.github.com/farhanferoz/MultiNest/tar.gz/4b3709c6d659adbd62c85e3e95ff7eeb6e6617af
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.
connected.
302 Found
Location: /downloads?f=/diver-1.0.4.tar.gz [following]
--2021-01-22 14:24:10--  https://diver.hepforge.org/downloads?f=/diver-1.0.4.tar.gz
Reusing existing connection to diver.hepforge.org:443.
HTTP request sent, awaiting response... HTTP request sent, awaiting response... HTTP request sent, awaiting response... 302 Found
Location: /downloads?f=diver-1.0.4.tar.gz [following]
--2021-01-22 14:24:10--  https://diver.hepforge.org/downloads?f=diver-1.0.4.tar.gz
Reusing existing connection to diver.hepforge.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/cluster/projects/nn9464k/progs/gambit_np/ScannerBit/downloaded/diver-1.0.4.tar.gz’

    [<=>                                                                              ] 0           --.-K/s              200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/cluster/projects/nn9464k/progs/gambit_np/ScannerBit/downloaded/1.17.1.tar.gz’

    [<=>                                                                              ] 0           --.-K/s              200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/cluster/projects/nn9464k/progs/gambit_np/ScannerBit/downloaded/4b3709c6d659adbd62c85e3e95ff7eeb6e6617af.tar.gz’

    [ <=>                                                                             ] 160 407      822KB/s   in 0,2s   

2021-01-22 14:24:10 (822 KB/s) - ‘/cluster/projects/nn9464k/progs/gambit_np/ScannerBit/downloaded/1.17.1.tar.gz’ saved [160407]

    [  <=>                                                                            ] 471 770     1,60MB/s   in 0,3s   

2021-01-22 14:24:10 (1,60 MB/s) - ‘/cluster/projects/nn9464k/progs/gambit_np/ScannerBit/downloaded/4b3709c6d659adbd62c85e3e95ff7eeb6e6617af.tar.gz’ saved [471770]

    [  <=>                                                                            ] 2 531 328   5,39MB/s             [ 25%] Performing verify step for 'polychord_1.17.1'
[ 25%] No update step for 'polychord_1.17.1'
[ 25%] No patch step for 'polychord_1.17.1'
    [   <=>                                                                           ] 4 499 622   8,31MB/s   in 0,5s   

2021-01-22 14:24:10 (8,31 MB/s) - ‘/cluster/projects/nn9464k/progs/gambit_np/ScannerBit/downloaded/diver-1.0.4.tar.gz’ saved [4499622]

[ 25%] No configure step for 'polychord_1.17.1'
[ 25%] Performing build step for 'polychord_1.17.1'
[ 25%] No install step for 'polychord_1.17.1'
[ 50%] No update step for 'diver_1.0.4'
[ 50%] Performing verify step for 'diver_1.0.4'
[ 50%] Completed 'polychord_1.17.1'
[ 50%] No patch step for 'diver_1.0.4'
[ 50%] No configure step for 'diver_1.0.4'
[ 50%] Performing verify step for 'multinest_3.11'
[ 50%] No update step for 'multinest_3.11'
[ 50%] Built target polychord_1.17.1
Scanning dependencies of target polychord
[ 50%] No patch step for 'multinest_3.11'
[ 50%] Performing build step for 'diver_1.0.4'
[ 50%] Built target polychord
[ 75%] Performing configure step for 'multinest_3.11'
[ 75%] Performing build step for 'multinest_3.11'
cwrapper.f90(105): error #7013: This module file was not generated by any release of this compiler.   [NESTED]
    use Nested, only: nestRun
------------^
cwrapper.f90(134): error #6406: Conflicting attributes or multiple declaration of name.   [NESTRUN]
    call nestRun(logical(nest_IS),logical(nest_mmodal),logical(nest_ceff), &
-------------^
cwrapper.f90(105): error #6580: Name in only-list does not exist or is not accessible.   [NESTRUN]
    use Nested, only: nestRun
--------------------------^
compilation aborted for cwrapper.f90 (code 1)
make[4]: *** [cwrapper.o] Error 1
make[3]: *** [multinest_3.11-prefix/src/multinest_3.11-stamp/multinest_3.11-build] Error 2
make[2]: *** [CMakeFiles/multinest_3.11.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[100%] No install step for 'diver_1.0.4'
[100%] Completed 'diver_1.0.4'
[100%] Built target diver_1.0.4
make[1]: *** [CMakeFiles/scanners.dir/rule] Error 2
make: *** [scanners] Error 2
fzeiser commented 3 years ago

It turns out that there were some "cached" files, probably in the ScannerBit directory. The first time I tried to compile was without the compiler flags: CMAKE_CC_COMPILER and it automatically selected GCC (etc). I wanted to compile with intel compilers instead (hoping that the executable will be faster).

I deleted the build folder, but not the files in the other folders, like ScannerBit/download etc. So some previously compiles files probably still were around. Thus I got the error message above. Was able to solve it with:

git clean -xfd (To remove ignored files and directories) helped to "reset" the repo. [attention!]

Now building works.