GridTools / serialbox

Data serialization library and tools for C/C++ and Fortran
BSD 2-Clause "Simplified" License
29 stars 28 forks source link

MacOS issue with SERIALBOX_ENABLE_FORTRAN ON #246

Open jdahm opened 3 years ago

jdahm commented 3 years ago

Currently fighting this issue:

[ 89%] Linking Fortran shared library libSerialboxFortran.dylib
[ 89%] Built target SerialboxFortranStatic
Undefined symbols for architecture x86_64:
  "_serialboxFortranSavepointAddMetainfoInt64", referenced from:
      ___m_serialize_MOD_fs_add_savepoint_metainfo_l in m_serialize.f90.o
  "_serialboxFortranSavepointGetMetainfoInt64", referenced from:
      ___m_serialize_MOD_fs_get_savepoint_metainfo_l in m_serialize.f90.o
  "_serialboxFortranSerializerAddFieldMetainfoInt64", referenced from:
      ___m_serialize_MOD_fs_add_field_metainfo_l in m_serialize.f90.o
  "_serialboxFortranSerializerAddMetainfoInt64", referenced from:
      ___m_serialize_MOD_fs_add_serializer_metainfo_l in m_serialize.f90.o
  "_serialboxFortranSerializerGetFieldMetainfoInt64", referenced from:
      ___m_serialize_MOD_fs_get_field_metainfo_l in m_serialize.f90.o
  "_serialboxFortranSerializerGetMetainfoInt64", referenced from:
      ___m_serialize_MOD_fs_get_serializer_metainfo_l in m_serialize.f90.o
ld: symbol(s) not found for architecture x86_64
jdahm commented 3 years ago

@havogt did changing long to std::int64_t in the signature cause this?

havogt commented 3 years ago

Sorry, I forgot about this. I guess that's related. Unfortunately, I don't have a Mac to test. Maybe you (=Vulcan) could contribute a github action for testing on MacOS? Does @ofuhrer use serialbox on the Mac as well?

ofuhrer commented 3 years ago

I gave up after not being able to compile bare-metal and am now using Serialbox inside a container on my Mac.