build$ make -f null.makefile
g++ -fPIC -O0 -falign-functions -march=native -I"/home/gustaf/src/OpenModelica/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o null.o null.c
In file included from /home/gustaf/src/OpenModelica/build/include/omc/c/openmodelica_func.h:44:0,
from null.c:5:
/home/gustaf/src/OpenModelica/build/include/omc/c/simulation_data.h:48:71: error: invalid conversion from ‘const void*’ to ‘modelica_string {aka void*}’ [-fpermissive]
#define omc_dummyRealAttribute {"","","",DBL_MAX,DBL_MIN,0,0,1.0,0,0.0}
^
null_12jac.h:2:51: note: in expansion of macro ‘omc_dummyRealAttribute’
static const REAL_ATTRIBUTE dummyREAL_ATTRIBUTE = omc_dummyRealAttribute;
^
/home/gustaf/src/OpenModelica/build/include/omc/c/simulation_data.h:48:71: error: invalid conversion from ‘const void*’ to ‘modelica_string {aka void*}’ [-fpermissive]
#define omc_dummyRealAttribute {"","","",DBL_MAX,DBL_MIN,0,0,1.0,0,0.0}
^
null_12jac.h:2:51: note: in expansion of macro ‘omc_dummyRealAttribute’
static const REAL_ATTRIBUTE dummyREAL_ATTRIBUTE = omc_dummyRealAttribute;
^
/home/gustaf/src/OpenModelica/build/include/omc/c/simulation_data.h:48:71: error: invalid conversion from ‘const void*’ to ‘modelica_string {aka void*}’ [-fpermissive]
#define omc_dummyRealAttribute {"","","",DBL_MAX,DBL_MIN,0,0,1.0,0,0.0}
^
null_12jac.h:2:51: note: in expansion of macro ‘omc_dummyRealAttribute’
static const REAL_ATTRIBUTE dummyREAL_ATTRIBUTE = omc_dummyRealAttribute;
^
<builtin>: recipe for target 'null.o' failed
make: *** [null.o] Error 1
For the record, I've been told this is due to the simulation runtime being compiled as C++-code, since that's what's what's used in ParModelica, while it's only valid C-code. The workaround is to not do simulations from ParModelica, or to patch the simulation runtime.
I've changed priority from blocker to high.