ShyLU Build Error on KNL with Intel 16.1 (missing -lcamd?)
Created by: nmhamster
I am getting the following build error on a KNL build but I cannot see -lcamd in the link line. I don't specify it in the cmake configure but then the configure does successfully complete. Am I missing something obvious or is the build system missing a needed library?
[ 95%] Linking CXX executable symbolic_factor_serial.exe
cd /home/sdhammo/git/trilinos-github-repo/build-bddc/packages/shylu/tacho/example && /home/projects/x86-64-haswell/cmake/3.3.2/bin/cmake -E cmake_link_script CMakeFiles/symbolic_factor_serial.dir/link.txt --verbose=1
/home/projects/x86-64-knl/openmpi/1.10.1/intel/16.1.150/bin/mpicxx -O3 -g -xMIC-AVX512 -fopenmp -std=c++11 -qopenmp -L/home/projects/x86-64-knl/numa/2.0.10-static/lib -lnuma CMakeFiles/symbolic_factor_serial.dir/example_symbolic_factor_serial.cpp.o -o symbolic_factor_serial.exe -rdynamic ../src/libshylutacho.a ../../../teuchos/kokkoscomm/src/libteuchoskokkoscomm.a ../../../teuchos/kokkoscompat/src/libteuchoskokkoscompat.a ../../../teuchos/remainder/src/libteuchosremainder.a ../../../teuchos/numerics/src/libteuchosnumerics.a ../../../teuchos/comm/src/libteuchoscomm.a ../../../teuchos/parameterlist/src/libteuchosparameterlist.a ../../../teuchos/core/src/libteuchoscore.a ../../../kokkos/algorithms/src/libkokkosalgorithms.a ../../../kokkos/containers/src/libkokkoscontainers.a ../../../kokkos/core/src/libkokkoscore.a -Wl,-Bstatic -lptscotch -lptscotcherr -lscotch -lscotcherr -Wl,-Bdynamic -mkl -mkl -lhwloc -Wl,-Bstatic -lcholmod -lamd -lcolamd -lsuitesparseconfig -lptscotch -lptscotcherr -lscotch -lscotcherr -Wl,-Bdynamic -lhwloc
CMakeFiles/symbolic_factor_serial.dir/example_symbolic_factor_serial.cpp.o: In function `int Tacho::exampleSymbolicFactor<double, int, int, Kokkos::Serial, void>(std::string, int, int, int, int, int, bool, bool, bool, bool)':
/home/sdhammo/git/trilinos-github-repo/packages/shylu/tacho/src/graph_helper_camd.hpp:85: undefined reference to `camd_defaults'
/home/sdhammo/git/trilinos-github-repo/packages/shylu/tacho/src/graph_helper_camd.hpp:86: undefined reference to `camd_control'
/home/sdhammo/git/trilinos-github-repo/packages/shylu/tacho/src/graph_helper_camd.hpp:93: undefined reference to `camd_order'
make[2]: *** [packages/shylu/tacho/example/symbolic_factor_serial.exe] Error 1
make[2]: Leaving directory `/home/sdhammo/git/trilinos-github-repo/build-bddc'
make[1]: *** [packages/shylu/tacho/example/CMakeFiles/symbolic_factor_serial.dir/all] Error 2
make[1]: Leaving directory `/home/sdhammo/git/trilinos-github-repo/build-bddc'
make: *** [all] Error 2