Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built
On 03/24/2016 03:29 PM, olusegun ogunbade wrote: > [ 33%] Building Fortran object src/CMakeFiles/foo.dir/m_point.f90.o > Error copying Fortran module "mod/procedure". Tried "mod/PROCEDURE.mod" and > "mod/procedure.mod". Thanks for the example. The problem is that the syntax MODULE PROCEDURE point_dist tricks CMake into parsing "MODULE PROCEDURE" as if it were a declaration of a module called "procedure". Unfortunately this is not just a matter of excluding that name because it also appears to be valid to really define a module named "procedure". I still need to look into this further to determine how to fix it. CMake's approximate Fortran parser will need to be updated to account for submodule syntax. -Brad -- 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
Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built
Hi All Please find attached a tar file containing the source code. The build process and encountered error are: ogunbog@JesusIsLord:~/work/fortran/point/build$ cmake .. -- The Fortran compiler identification is GNU 6.0.0 -- Check for working Fortran compiler: /home/ogunbog/bin/gfc6u4 -- Check for working Fortran compiler: /home/ogunbog/bin/gfc6u4 -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /home/ogunbog/bin/gfc6u4 supports Fortran 90 -- Checking whether /home/ogunbog/bin/gfc6u4 supports Fortran 90 -- yes -- Configuring done -- Generating done -- Build files have been written to: /home/ogunbog/work/fortran/point/build ogunbog@JesusIsLord:~/work/fortran/point/build$ l CMakeCache.txt CMakeFiles/ cmake_install.cmake Makefile mod/ src/ ogunbog@JesusIsLord:~/work/fortran/point/build$ l mod/ ogunbog@JesusIsLord:~/work/fortran/point/build$ make Scanning dependencies of target foo [ 33%] Building Fortran object src/CMakeFiles/foo.dir/m_point.f90.o Error copying Fortran module "mod/procedure". Tried "mod/PROCEDURE.mod" and "mod/procedure.mod". make[2]: *** [src/CMakeFiles/foo.dir/m_point.f90.o.provides.build] Error 1 make[1]: *** [src/CMakeFiles/foo.dir/all] Error 2 make: *** [all] Error 2 ogunbog@JesusIsLord:~/work/fortran/point/build$ l mod/ m_point.mod m_point@point_a.smod m_point.smod A major benefit of submodules is that if a change is made to one, only it and its descendants are affected. Thus, it avoid unnecessary recompilation cascades. Regards Prince === Prince Olusegun G. Ogunbade School Address Postal Address Dept. of Physics P O Box 11646 University of Pretoria The Tramshed Pretoria 0002Pretoria 0126 Republic of South Africa Republic of South Africa Telephone: +27 (0)12 420 3114 (School) +27 (0)74 539 7920 (Mobile) E-mail: pogo...@hotmail.com pogo...@tuks.co.za jilf...@yahoo.com From: Brad King <brad.k...@kitware.com> Sent: Wednesday, March 23, 2016 10:12 PM To: olusegun ogunbade Cc: Arjen Markus; cmake@cmake.org Subject: Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built On 03/23/2016 11:41 AM, Arjen Markus wrote: > Fortran submodules are contained in a file with the extension > .smod instead of .mod. At least for Intel Fortran. It may very > well be that this feature is not yet supported by CMake. [snip] >> Error copying Fortran module "mod/function". >> Tried "mod/FUNCTION.mod" and "mod/function.mod". >> >> Does recent cmake support Fortran submodule? CMake has not been taught about Fortran submodules. I'm not very familiar with them either. Do submodules affect the order in which sources need to be compiled as modules do? Please provide a small example project demonstrating use of submodules and showing the error above. Thanks, -Brad point.tar Description: point.tar -- 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
Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built
I hope we’ll see CMake support for submodules soon. Submodules are now supported by released versions of the Cray, IBM, and Intel compilers and by the pre-release GNU Fortran compiler version 6.0.0, which is expected to release in mid-April. Damian On Mar 23, 2016, at 1:12 PM, Brad Kingwrote: > > On 03/23/2016 11:41 AM, Arjen Markus wrote: >> Fortran submodules are contained in a file with the extension >> .smod instead of .mod. At least for Intel Fortran. It may very >> well be that this feature is not yet supported by CMake. > [snip] >>> Error copying Fortran module "mod/function". >>> Tried "mod/FUNCTION.mod" and "mod/function.mod". >>> >>> Does recent cmake support Fortran submodule? > > CMake has not been taught about Fortran submodules. I'm not > very familiar with them either. > > Do submodules affect the order in which sources need to be > compiled as modules do? > > Please provide a small example project demonstrating use of > submodules and showing the error above. > > Thanks, > -Brad > > -- > > 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 Damian Rouson, Ph.D., P.E. President, Sourcery Institute http://www.sourceryinstitute.org +1-510-600-2992 (mobile) -- 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
Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built
On 03/23/2016 11:41 AM, Arjen Markus wrote: > Fortran submodules are contained in a file with the extension > .smod instead of .mod. At least for Intel Fortran. It may very > well be that this feature is not yet supported by CMake. [snip] >> Error copying Fortran module "mod/function". >> Tried "mod/FUNCTION.mod" and "mod/function.mod". >> >> Does recent cmake support Fortran submodule? CMake has not been taught about Fortran submodules. I'm not very familiar with them either. Do submodules affect the order in which sources need to be compiled as modules do? Please provide a small example project demonstrating use of submodules and showing the error above. Thanks, -Brad -- 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
Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built
Hi, Fortran submodules are contained in a file with the extension .smod instead of .mod. At least for Intel Fortran. It may very well be that this feature is not yet supported by CMake. Unfortunately I have not yet had the opportunity to run into this problem ;). Regards, Arjen > -Original Message- > From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of olusegun > ogunbade > Sent: Wednesday, March 23, 2016 4:33 PM > To: cmake@cmake.org > Subject: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built > > > > From: olusegun ogunbade> Sent: Wednesday, March 23, 2016 2:59:07 PM > To: cmake@cmake.org > Subject: Cmake 3.5.0 and Fortran submodule cannot be built > > I was trying to build a Fortran project using Cmake-3.5.0. The project was > written > with the fortran 08 submodule. The error I got is > > Error copying Fortran module "mod/function". Tried "mod/FUNCTION.mod" and > "mod/function.mod". > > Does recent cmake support Fortran submodule? > -- > > 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 > DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. -- 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