Problem installing chameleon@master ^starpu@svn-trunk with spack
I am having a problem to install chameleon with spack
(see below). The problem appears when I try to install chameleon with starpu@svn-trunk. If I do with starpu@1.2.1 as dependency it works. Here's the steps to reproduce the problem with a Debian testing:
git clone https://github.com/solverstack/spack.git
source $HOME/spack/share/spack/setup-env.sh
spack install -v -n --keep-stage chameleon@master+starpu+fxt ^starpu@svn-trunk %gcc@6
The relevant part of the output is this:
(...)
-- Looking for Fortran dlagsy
-- Looking for Fortran dlagsy - found
-- Looking for tmg: test with lapack succeeds
-- Add definition CHAMELEON_USE_MPI - Activate MPI in Chameleon
-- A cache variable, namely STARPU_DIR, has been set to specify the install directory of STARPU
-- Checking for one of the modules 'libstarpu'
CMake Error at /home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/cmake-3.8.1-5xaudokgbonw4agobrfs7qq47orubkrt/share/cmake-3.8/Modules/FindPkgConfig.cmake:51 (set):
Syntax error in cmake code at
/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/cmake-3.8.1-5xaudokgbonw4agobrfs7qq47orubkrt/share/cmake-3.8/Modules/FindPkgConfig.cmake:51
when parsing string
-L/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/hwloc-1.11.6-mwz7dyutspzq3ryshgvu4mxnijkj2q2d/lib;-L/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/starpu-svn-trunk-y3ed5yc4m4xqks6naanwporqhj3ypdhe/lib;-L/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/hwloc-1.11.6-mwz7dyutspzq3ryshgvu4mxnijkj2q2d/lib;-L/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/fxt-0.3.3-xcd5t2k55et3gklwaoasusukaoctf6jm/lib;-lstarpu-1.3;-gdwarf-2;-g3;-g;-lrt;-lm;-lpthread;-lhwloc;-lfxt;-fopenmp;-Wl,--start-group;/tmp/schnorr/spack-stage/spack-stage-7Wvc1O/trunk/min-dgels/build/\*.a;-Wl,--end-group;-lhwloc;-lm;-lpthread
Invalid escape sequence \*
Call Stack (most recent call first):
/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/cmake-3.8.1-5xaudokgbonw4agobrfs7qq47orubkrt/share/cmake-3.8/Modules/FindPkgConfig.cmake:78 (_pkgconfig_set)
/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/cmake-3.8.1-5xaudokgbonw4agobrfs7qq47orubkrt/share/cmake-3.8/Modules/FindPkgConfig.cmake:106 (_pkgconfig_invoke)
/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/cmake-3.8.1-5xaudokgbonw4agobrfs7qq47orubkrt/share/cmake-3.8/Modules/FindPkgConfig.cmake:450 (_pkgconfig_invoke_dyn)
/home/schnorr/spack/opt/spack/linux-x86_64/gcc-6.4.0/cmake-3.8.1-5xaudokgbonw4agobrfs7qq47orubkrt/share/cmake-3.8/Modules/FindPkgConfig.cmake:631 (_pkg_check_modules_internal)
cmake_modules/morse_cmake/modules/find/FindSTARPU.cmake:214 (pkg_search_module)
CMakeLists.txt:635 (find_package)
-- Configuring incomplete, errors occurred!
(...)
I believe the problem is that, with spack, a problematic string is passed to cmake's pjk-config scripts when detecting starpu, specifically this part:
/tmp/schnorr/spack-stage/spack-stage-7Wvc1O/trunk/min-dgels/build/\*.a
but I am not sure where the problem resides; if it is with starpu, or the way chameleon detects starpu. I can cleanly install starpu@svn-trunk without any issues. Does anyone where in the code such an offending scape (\*.a
) is created?