Skip to content

pomerol linking error: cannot compile #2

@fgoudreault

Description

@fgoudreault

Dear developers, I am trying to compile your package to test out the pomerol solver in dcore. Unfortunately, I am not able to compile it on the supercluster I am working on. Here are my steps:

  1. compile libcommute. Everything runs fine and I use compilers (gcc 9.3.0) with openmpi (4.0.3) and eigen (3.3.7) compiled on my cluster.
    1. download: git clone https://github.com/krivenko/libcommute.git libcommute.src
    2. create build/install directories: mkdir libcommute.ins && mkdir libcommute.build && cd libcommute.build
    3. configure: CC=mpicc CXX=mpic++ cmake ../libcommute.src/ -DCMAKE_INSTALL_PREFIX=../libcommute.ins/ -DEXAMPLES=ON -DTESTS=ON
    4. make/test/install: make && make test && make install
  2. compile pomerol and link it with libcommute (ok). I used boost with mpi compilers (1.72.0):
    1. download: git clone https://github.com/aeantipov/pomerol.git pomerol.src
    2. create build/install directories: mkdir pomerol.ins && mkdir pomerol.build && cd pomerol.build
    3. configure: CC=mpicc CXX=mpic++ cmake ../pomerol.src/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../pomerol.ins/ -Dlibcommute_DIR=../libcommute.ins/lib/cmake/
    4. make/test/install: make && make doc && make test && make install
  3. compile pomerol2dcore.
    1. download: git clone https://github.com/j-otsuki/pomerol2dcore.git pomerol2dcore.src
    2. create build/installation directories: mkdir pomerol2dcore.ins && mkdir pomerol2dcore.build && cd pomerol2dcore.build
    3. Configure: CC=mpicc CXX=mpic++ cmake ../pomerol2dcore.src/ -DCMAKE_INSTALL_PREFIX=../pomerol2dcore.ins/ -Dpomerol_DIR=../pomerol.ins/
      • Configure runs ok but does not seem to be able to find the pomerol package even though no errors are thrown. Here is the configure log:
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx512/Compiler/gcc9/openmpi/4.0.3/bin/mpic++
-- Check for working CXX compiler: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx512/Compiler/gcc9/openmpi/4.0.3/bin/mpic++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- pomerol2dcore version 1.6
-- Pomerol includes : 
-- Pomerol libraries : 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fgoudrea/Workspace/triqs/pomerol2dcore.build
4. `make`:
    - Compiling stops quickly with this error message:
Scanning dependencies of target pomerol2dcore
[ 20%] Building CXX object CMakeFiles/pomerol2dcore.dir/src/pomerol2dcore.cpp.o
/home/fgoudrea/Workspace/triqs/pomerol2dcore.src/src/pomerol2dcore.cpp:7:10: fatal error: pomerol.h: No such file or directory
    7 | #include <pomerol.h>
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pomerol2dcore.dir/build.make:63: CMakeFiles/pomerol2dcore.dir/src/pomerol2dcore.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/pomerol2dcore.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

If you have any insight for this I'd be glad. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions