Hello,
In order to install Code_Aster on FreeBSD, I have to install medcoupling, from the bundled tarball (9.11.0 in my case). We use clang-18, and the compilation fails with several errors, mostly in the directory MEDLoader, and related to int / long conversions.
E.g.:
medcoupling-V9_11_0-1b5fb5650409b0ad3a61da3215496f2adf2dae02/src/MEDLoader/MEDFileMeshElt.cxx:58:14: error: no matching function for call to 'MEDmeshEntityFamilyNumberRd'
58 | if(MEDmeshEntityFamilyNumberRd(fid,mName,dt,it,entity,geoElt,miFam->getPointer())!=0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/medmesh.h:380:1: note: candidate function not viable: no known conversion from 'int *' to 'med_int *const' (aka 'long *const') for 7th argument
380 | MEDmeshEntityFamilyNumberRd(const med_idt fid,
| ^
381 | const char* const meshname,
382 | const med_int numdt,
383 | const med_int numit,
384 | const med_entity_type entitype,
385 | const med_geometry_type geotype,
386 | med_int * const number);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remark: MED has been installed with --with-int64=long and FCFLAGS=-fdefault-integer-8, and the platform is AMD64.
can you share the commands you ran to compile medfile (cmake or autotools approach) as well as medcoupling (cmake ) such that we can check on our side ?
Did you set CC and CXX environment variables and if yes to what values ?