CMAKE Fortran - error while coping modules

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

CMAKE Fortran - error while coping modules

Martin.LARCHER
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

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

CMakeLists.txt (4K) Download Attachment
CMakeLists.txt (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: CMAKE Fortran - error while coping modules

Volker Enderlein
Am 24/08/2017 um 08:42 schrieb [hidden email]:
> */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".

what CMakeLists.txt does issue this line? Looks to me like a "*d
source/*" was creeping into the middle of the string. I didn't found the
command looking at the two files you provided. Especially the command

*/usr/bin/cmake -E cmake_copy_f90_mod*

is of interest.

Cheers Volker


--

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMAKE Fortran - error while coping modules

Volker Enderlein
Am 24/08/2017 um 14:03 schrieb Volker Enderlein:

> Am 24/08/2017 um 08:42 schrieb [hidden email]:
>> */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".
>
> what CMakeLists.txt does issue this line? Looks to me like a "*d
> source/*" was creeping into the middle of the string. I didn't found
> the command looking at the two files you provided. Especially the command
>
> */usr/bin/cmake -E cmake_copy_f90_mod*
>
> is of interest.
>
> Cheers Volker
>
>

It rather seems that "m_material_mco_chg" is replaced wth a "d"


Cheers Volker

--

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMAKE Fortran - error while coping modules

Martin.LARCHER
Dear Volker,
indeed the name of the file is replaced by "d". And I have no idea why. All the files before run smoothly. Is there any point where I can get n idea how the internal CMAKE commands are created?
Martin


--
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

________________________________________
From: Volker Enderlein [[hidden email]]
Sent: 24 August 2017 14:26
To: LARCHER Martin (JRC-ISPRA); [hidden email]
Subject: Re: [CMake] CMAKE Fortran - error while coping modules

Am 24/08/2017 um 14:03 schrieb Volker Enderlein:

> Am 24/08/2017 um 08:42 schrieb [hidden email]:
>> */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".
>
> what CMakeLists.txt does issue this line? Looks to me like a "*d
> source/*" was creeping into the middle of the string. I didn't found
> the command looking at the two files you provided. Especially the command
>
> */usr/bin/cmake -E cmake_copy_f90_mod*
>
> is of interest.
>
> Cheers Volker
>
>

It rather seems that "m_material_mco_chg" is replaced wth a "d"


Cheers Volker

--

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMAKE Fortran - error while coping modules

Volker Enderlein
Hi Martin,

You can have a look into the makefiles CMake generates for you inside of
your build directory.
Search for the failing file name there, e.g. do a  find . -name Makefile
-exec grep -H 'm_material_mco_chg' {} \;
in the build directory.


Hope that helps, Cheers Volker

Am 24/08/2017 um 16:17 schrieb [hidden email]:

> Dear Volker,
> indeed the name of the file is replaced by "d". And I have no idea why. All the files before run smoothly. Is there any point where I can get n idea how the internal CMAKE commands are created?
> Martin
>
>
> --
> 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
>
> ________________________________________
> From: Volker Enderlein [[hidden email]]
> Sent: 24 August 2017 14:26
> To: LARCHER Martin (JRC-ISPRA); [hidden email]
> Subject: Re: [CMake] CMAKE Fortran - error while coping modules
>
> Am 24/08/2017 um 14:03 schrieb Volker Enderlein:
>> Am 24/08/2017 um 08:42 schrieb [hidden email]:
>>> */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".
>> what CMakeLists.txt does issue this line? Looks to me like a "*d
>> source/*" was creeping into the middle of the string. I didn't found
>> the command looking at the two files you provided. Especially the command
>>
>> */usr/bin/cmake -E cmake_copy_f90_mod*
>>
>> is of interest.
>>
>> Cheers Volker
>>
>>
> It rather seems that "m_material_mco_chg" is replaced wth a "d"
>
>
> Cheers Volker
>
> --
>

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake