<br><div class="gmail_quote"><div dir="auto">On Thu, Apr 5, 2018 at 8:44 PM Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> writes:<br>
<br>
> Error configuring EIGEN with cmake Could not execute "cd<br>
> /projects/academic/knepley/PETSc3/petsc/arch-master-debug/externalpackages/eigen-eigen-5a0156e40feb/build<br>
> && /projects/academic/knepley/PETSc3/petsc/arch-master-debug/bin/cmake ..<br>
> -DCMAKE_INSTALL_PREFIX=/projects/academic/knepley/PETSc3/petsc/arch-master-debug<br>
> -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_C_COMPILER="/user/knepley/bin/ccache<br>
> mpicc" -DCMAKE_AR=/usr/bin/ar -DCMAKE_RANLIB=/usr/bin/ranlib<br>
> -DCMAKE_C_FLAGS:STRING="-fPIC -fstack-protector -g3"<br>
> -DCMAKE_C_FLAGS_DEBUG:STRING="-fPIC -fstack-protector -g3"<br>
> -DCMAKE_C_FLAGS_RELEASE:STRING="-fPIC -fstack-protector -g3"<br>
> -DCMAKE_CXX_COMPILER="/user/knepley/bin/ccache mpicxx"<br>
> -DCMAKE_CXX_FLAGS:STRING="-fstack-protector -g -fPIC"<br>
> -DCMAKE_CXX_FLAGS_DEBUG:STRING="-fstack-protector -g -fPIC"<br>
> -DCMAKE_CXX_FLAGS_RELEASE:STRING="-fstack-protector -g -fPIC"<br>
> -DCMAKE_Fortran_COMPILER="/user/knepley/bin/ccache mpif90"<br>
> -DCMAKE_Fortran_FLAGS:STRING="-fPIC -ffree-line-length-0 -g"<br>
> -DCMAKE_Fortran_FLAGS_DEBUG:STRING="-fPIC -ffree-line-length-0 -g"<br>
> -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-fPIC -ffree-line-length-0 -g"<br>
> -DBUILD_SHARED_LIBS=on -DENABLE_OPENMP=OFF":<br>
><br>
> -- The C compiler identification is unknown<br>
><br>
> -- The CXX compiler identification is unknown<br>
><br>
> -- Configuring incomplete, errors occurred!<br>
><br>
> See also<br>
> "/projects/academic/knepley/PETSc3/petsc/arch-master-debug/externalpackages/eigen-eigen-5a0156e40feb/build/CMakeFiles/CMakeOutput.log".<br>
><br>
> See also<br>
> "/projects/academic/knepley/PETSc3/petsc/arch-master-debug/externalpackages/eigen-eigen-5a0156e40feb/build/CMakeFiles/CMakeError.log".CMake<br>
> Error at CMakeLists.txt:1 (project):<br>
><br>
>   The CMAKE_C_COMPILER:<br>
><br>
><br>
>     /user/knepley/bin/ccache mpicc<br>
><br>
><br>
>   is not a full path to an existing compiler tool.<br>
><br>
><br>
>   Tell CMake where to find the compiler by setting either the environment<br>
><br>
>   variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path<br>
> to<br>
><br>
>   the compiler, or to the compiler name if it is in the PATH.<br>
><br>
><br>
><br>
> CMake Error at CMakeLists.txt:1 (project):<br>
><br>
>   The CMAKE_CXX_COMPILER:<br>
><br>
><br>
>     /user/knepley/bin/ccache mpicxx<br>
><br>
><br>
>   is not a full path to an existing compiler tool.<br>
><br>
><br>
>   Tell CMake where to find the compiler by setting either the environment<br>
><br>
>   variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full<br>
> path<br>
><br>
>   to the compiler, or to the compiler name if it is in the PATH.<br>
><br>
><br>
><br>
> *******************************************************************************<br>
><br>
><br>
> [knepley@rush:/projects/academic/knepley/PETSc3/petsc]$ which mpicc<br>
><br>
> /util/common/openmpi/3.0.0/gcc-4.8.5/bin/mpicc<br>
><br>
> [knepley@rush:/projects/academic/knepley/PETSc3/petsc]$ echo $PATH<br>
><br>
> /util/common/openmpi/3.0.0/gcc-4.8.5/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/lpp/mmfs/bin:/opt/dell/srvadmin/bin:/user/knepley/bin<br>
><br>
> I cannot see why it would say this.<br>
<br>
It's complaining that the CC is two words instead of a single path.  You<br>
can make a link<br>
<br>
  ln -s `which ccache` ~/bin/mpicc<br>
<br>
and then CC=$HOME/bin/mpicc will work.  Yes, it's irritating.</blockquote><div dir="auto"><br></div><div dir="auto">While we are proposing features that place no value on users’ time, why not just ask them to implement their own MPI wrapper scripts with ccache on the inside?</div><div dir="auto"><br></div><div dir="auto">Jeff</div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>