Re: [gotm-devel:1567] Re: [getm-devel:4910] problems with cmake in master branches

32 views
Skip to first unread message

Knut

unread,
May 30, 2019, 7:11:20 PM5/30/19
to gotm-...@googlegroups.com, GETM-devel, fabm-...@googlegroups.com

this seems to help:

kklingbe@phy-234 /media/work/kklingbe/tools/fabm/code/src/yaml $ git diff
diff --git a/src/yaml/CMakeLists.txt b/src/yaml/CMakeLists.txt
index 55625c6..7254a82 100644
--- a/src/yaml/CMakeLists.txt
+++ b/src/yaml/CMakeLists.txt
@@ -20,7 +20,7 @@ set_property(TARGET yaml PROPERTY Fortran_MODULE_DIRECTORY "${CMAKE_CURRENT_BINA
 target_include_directories(yaml
    PUBLIC
       $<INSTALL_INTERFACE:include>
-      $<BUILD_INTERFACE:"${CMAKE_CURRENT_BINARY_DIR}/modules">
+      $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/modules>
 )


but at the end still this error appears (because no yaml stuff was compiled):

/media/work/kklingbe/tools/fabm/code/src/fabm_config.F90:11.7:

   use yaml_types
       1
Fatal Error: Can't open module file 'yaml_types.mod' for reading at (1): No such file or directory

On 5/31/19 12:17 AM, Knut wrote:

Hi Karsten,

On 5/30/19 9:50 PM, Karsten Bolding wrote:
Two things:

What version of CMake are you using?
3.0.2

Can you try and compile without FABM.
works fine.

gotm/master has not been touch so not there.
yes, it's the FABM compilation (same error there).

Karsten
Regards, Knut

Den tor. 30. maj 2019 kl. 20.31 skrev Knut <knut...@gmx.net>:
Hi,

with the latest codes I get these warnings and errors from cmake:

-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Found MPI_Fortran:
/usr/lib/libmpi_f90.so;/usr/lib/libmpi_f77.so;/usr/lib/libmpi.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libhwloc.so

Cartesian
-- Found NetCDF: -L/usr/lib -lnetcdff -lnetcdf
-- Configuring done
CMake Warning (dev) in
/media/work/kklingbe/tools/fabm/code/src/CMakeLists.txt:
   Policy CMP0021 is not set: Fatal error on relative paths in
   INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy
CMP0021" for
   policy details.  Use the cmake_policy command to set the policy and
   suppress this warning.

   Found relative path while evaluating include directories of "fabm":

""/media/work/kklingbe/tools/getm/setups-kk/haidvogel/build/gotm/fabm_src/yaml/modules""

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in
/media/work/kklingbe/tools/fabm/code/src/CMakeLists.txt:
   Policy CMP0021 is not set: Fatal error on relative paths in
   INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy
CMP0021" for
   policy details.  Use the cmake_policy command to set the policy and
   suppress this warning.

   Found relative path while evaluating include directories of "fabm":

""/media/work/kklingbe/tools/getm/setups-kk/haidvogel/build/gotm/fabm_src/yaml/modules""

This warning is for project developers.  Use -Wno-dev to suppress it.

cmake: ../../Source/cmLocalGenerator.cxx:2715: std::string
cmLocalGenerator::ConvertToRelativePath(const
std::vector<std::basic_string<char> >&, const char*, bool): Assertion
`in_remote[0] != '\"'' failed.
Aborted

What did I do wrong?

Thanks for your help.

Cheers, Knut

--
You received this message because you are subscribed to the Google Groups "GETM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getm-devel/eaa21e3e-43bd-d07c-da8f-14c3ef28df9f%40gmx.net.
For more options, visit https://groups.google.com/d/optout.


--
--
You received this message because you are subscribed to the Google Groups "GOTM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-devel/CAFvy56VRZLYyq6UP0uxXO4Ym7jHAq7pmvx4Cj7_Jfn%2BWxE9JGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Karsten Bolding

unread,
May 31, 2019, 2:58:39 AM5/31/19
to fabm-...@googlegroups.com, gotm-...@googlegroups.com, getm-...@googlegroups.com
Will have a look later today.

You received this message because you are subscribed to the Google Groups "FABM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-devel/e4cee686-860e-9088-7575-7124300345b8%40gmx.net.

Jorn Bruggeman

unread,
May 31, 2019, 3:27:31 AM5/31/19
to fabm-...@googlegroups.com, gotm-...@googlegroups.com, GETM-devel

Hi Knut,

 

Thanks! This should be fixed now.

 

Cheers,

 

Jorn

--
You received this message because you are subscribed to the Google Groups "FABM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-devel/e4cee686-860e-9088-7575-7124300345b8%40gmx.net.

Jorn Bruggeman

unread,
May 31, 2019, 4:50:31 AM5/31/19
to fabm-...@googlegroups.com, gotm-...@googlegroups.com, GETM-devel

Just to note that I’ve committed a few more fixes related to this just now.

 

Cheers,

 

Jorn

Knut

unread,
May 31, 2019, 5:19:00 AM5/31/19
to fabm-...@googlegroups.com

thanks Jorn! fabm compilation works fine now.

Reply all
Reply to author
Forward
0 new messages