Compilation issue on Frontera

When i compile on Frontera following the commands at tacc-frontera, it shows the error as:

[ 98%] Linking CXX executable mpm
    /opt/apps/gcc/6.3.0/bin/ld: warning:, needed by /home1/apps/swr/20.0.5/lib64/, not found (try using -rpath or -rpath-link)
    [100%] Linking CXX executable mpmtest
    /home1/apps/swr/20.0.5/lib64/ undefined reference to `llvm::legacy::PassManager::PassManager()@LLVM_7'

How can we link the library on Frontera?

I had the same issue when compiling on Frontera but I still don’t know how to fix it. I did the step by step process described on the CB-Geo documentation on MPM (link):

  • I cloned the files from GitHub.
  • Ran module load boost hdf5.
  • I didn’t clone Eigen and KaHIP because I already had it.
  • ran export CC=icc and export CXX=icpc
  • At last, I created the build directory, ran cmake with the options described on CB-Geo’s MPM website and than used the make command to compile it. I have attached the output error when trying to compile: tacc-compile-error.txt (56.2 KB)

If you compile without the VTK, there is no issue. However, it doesn’t output the .vtk results.

This script compiles MPM code with VTK on Frontera:

module load boost hdf5 swr/20.0.5
cd $WORK && git clone
cd $WORK && git clone && \
   cd KaHIP && sh ./ 
cd $WORK
git clone
git clone benchmarks
export CC=icc
export CXX=icpc
cd mpm && mkdir build && cd build &&  cmake -DBOOST_INCLUDE_DIRS=$TACC_BOOST_INC -DCMAKE_BUILD_TYPE=Release -DEIGEN3_INCLUDE_DIR=$WORK/eigen -DKAHIP_ROOT=$WORK/KaHIP -DVTK_ROOT=/work/01197/semeraro/frontera/VTK/VTKBinary/ ..
make -j