[CMake] CMAKE Fortran - error while coping modules

Martin.LARCHER at ec.europa.eu Martin.LARCHER at ec.europa.eu
Thu Aug 24 02:42:51 EDT 2017


Dear all,
I'm quite new in CMAKE. The compilation of our sources (EUROPLEXUS) under Windows is running very well but under Linux I get an error while cmake is copying the module files. For one particular file, cmake uses a wrong filename. See the two bold lines below.
Any idea?
Many thanks
Martin

[ 17%] Building Fortran object source/CMakeFiles/epx.dir/m_failed_ghost_elem.f.o
cd /home/larchma/cmake/_built/source && /opt/intel/composer_xe_2013_sp1.5.212/bin/intel64/ifort -O0 -traceback -fpp -LIBS:static -c -debug full -debug-parameters all -I/home/larchma/cmake/include -c /home/larchma/cmake/source/m_failed_ghost_elem.f -o CMakeFiles/epx.dir/m_failed_ghost_elem.f.o
/usr/bin/cmake -E cmake_copy_f90_mod source/m_failed_ghost_elem source/CMakeFiles/epx.dir/m_failed_ghost_elem.mod.stamp Intel Fortran Compiler
/usr/bin/cmake -E touch source/CMakeFiles/epx.dir/m_failed_ghost_elem.f.o.provides.build
make[3]: Leaving directory '/home/larchma/cmake/_built'
/usr/bin/make -f source/CMakeFiles/epx.dir/build.make source/CMakeFiles/epx.dir/m_material_mco_chg.f.o.provides.build
make[3]: Entering directory '/home/larchma/cmake/_built'
/usr/bin/cmake -E cmake_progress_report /home/larchma/cmake/_built/CMakeFiles
[ 17%] Building Fortran object source/CMakeFiles/epx.dir/m_material_mco_chg.f.o
cd /home/larchma/cmake/_built/source && /opt/intel/composer_xe_2013_sp1.5.212/bin/intel64/ifort -O0 -traceback -fpp -LIBS:static -c -debug full -debug-parameters all -I/home/larchma/cmake/include -c /home/larchma/cmake/source/m_material_mco_chg.f -o CMakeFiles/epx.dir/m_material_mco_chg.f.o
/usr/bin/cmake -E cmake_copy_f90_mod source/d source/CMakeFiles/epx.dir/d.mod.stamp Intel Fortran Compiler
Error copying Fortran module "source/d". Tried "source/D.mod" and "source/d.mod".
source/CMakeFiles/epx.dir/depend.make:19476: recipe for target 'source/CMakeFiles/epx.dir/m_material_mco_chg.f.o.provides.build' failed
make[3]: *** [source/CMakeFiles/epx.dir/m_material_mco_chg.f.o.provides.build] Error 1
make[3]: Leaving directory '/home/larchma/cmake/_built'
source/CMakeFiles/epx.dir/build.make:7670: recipe for target 'source/CMakeFiles/epx.dir/m_material_mco_chg.f.o.provides' failed
make[2]: *** [source/CMakeFiles/epx.dir/m_material_mco_chg.f.o.provides] Error 2
make[2]: Leaving directory '/home/larchma/cmake/_built'
CMakeFiles/Makefile2:78: recipe for target 'source/CMakeFiles/epx.dir/all' failed
make[1]: *** [source/CMakeFiles/epx.dir/all] Error 2
make[1]: Leaving directory '/home/larchma/cmake/_built'
Makefile:120: recipe for target 'all' failed


--
Dr.-Ing. Martin Larcher
European Commission
Joint Research Centre, T.P. 480
Directorate for Space, Security and Migration
Safety and Security of Buildings
I-21027 Ispra (VA) Italy
Phone: +39-0332-789563
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170824/8f25464e/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170824/8f25464e/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170824/8f25464e/attachment-0003.txt>


More information about the CMake mailing list