#2749 closed defect (fixed)
code generation fails for PN model
Reported by: | Owned by: | Lennart Ochel | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | Code Generation | Version: | trunk |
Keywords: | Cc: | Lennart Ochel, Mahder Alemseged Gebremedhin |
Description
foo.PNlib.Test1 does not work. I get the following error message:
foo.PNlib.Test1_functions.c: In function 'omc_foo_PNlib_Functions_OddsAndEnds_deleteElementInt': foo.PNlib.Test1_functions.c:134: error: incompatible type for argument 1 of 'indexed_assign_integer_array' C:/OpenModelica1.9.1Nightly//include/omc/c/util/integer_array.h:115: note: expected 'const struct integer_array_t *' but argument is of type 'integer_array' foo.PNlib.Test1_functions.c:143: error: incompatible type for argument 1 of 'indexed_assign_integer_array' C:/OpenModelica1.9.1Nightly//include/omc/c/util/integer_array.h:115: note: expected 'const struct integer_array_t *' but argument is of type 'integer_array' mingw32-make: *** [foo.PNlib.Test1_functions.o] Error 1 mingw32-make: *** Waiting for unfinished jobs.... foo.PNlib.Test1.c: In function 'foo_PNlib_Test1_eqFunction_276': foo.PNlib.Test1.c:1351: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:1351: error: expected ';' before '$PP1$PenableOut$PnremTAout$rB' foo.PNlib.Test1.c:1495: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:1495: error: expected ';' before '$PP1$PenableOut$PposTE$rB' foo.PNlib.Test1.c: In function 'foo_PNlib_Test1_eqFunction_286': foo.PNlib.Test1.c:2715: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:2715: error: expected ';' before '$PP2$PenableOut$PnremTAout$rB' foo.PNlib.Test1.c:2823: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:2823: error: expected ';' before '$PP2$PenableOut$PposTE$rB' foo.PNlib.Test1.c: In function 'foo_PNlib_Test1_eqFunction_288': foo.PNlib.Test1.c:3241: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:3241: error: expected ';' before '$PP1$PenableIn$PnremTAin$rB' foo.PNlib.Test1.c:3355: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:3355: error: expected ';' before '$PP1$PenableIn$PposTE$rB' foo.PNlib.Test1.c: In function 'foo_PNlib_Test1_eqFunction_305': foo.PNlib.Test1.c:4145: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:4145: error: expected ';' before '$PP2$PenableIn$PnremTAin$rB' foo.PNlib.Test1.c:4253: error: expected expression before 'modelica_integer' foo.PNlib.Test1.c:4253: error: expected ';' before '$PP2$PenableIn$PposTE$rB' mingw32-make: *** [foo.PNlib.Test1.o] Error 1 Compilation process exited with code 2
Attachments (1)
Change History (7)
by , 10 years ago
Attachment: | Test1Total.mo added |
---|
comment:1 by , 10 years ago
Cc: | added |
---|
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 10 years ago
I will add a test for it once it is working for me.
Unfortunately, it is only working under Linux. Using Windows I get the following linker-messages:
foo.PNlib.Test1.o:foo.PNlib.Test1.c:(.text+0x27): undefined reference to `va_throwStreamPrint' foo.PNlib.Test1.o:foo.PNlib.Test1.c:(.text+0xf5): undefined reference to `externalInputUpdate' foo.PNlib.Test1.o:foo.PNlib.Test1.c:(.text+0x164): undefined reference to `storePreValues' foo.PNlib.Test1.o:foo.PNlib.Test1.c:(.text+0x27e): undefined reference to `warningStreamPrint' foo.PNlib.Test1.o:foo.PNlib.Test1.c:(.text+0x2f1): undefined reference to `warningStreamPrint' foo.PNlib.Test1.o:foo.PNlib.Test1.c:(.text+0x32f): undefined reference to `omc_alloc_interface' [… and a lot more]
Maybe it is just an issue of my local configuration. I am not sure right now.
comment:4 by , 10 years ago
I'm guessing you have OPENMODELICAHOME set to some bad directory on Windows
comment:5 by , 10 years ago
No, OPENMODELICAHOME seems to be correct:
$ echo $OPENMODELICAHOME D:/workspace/OpenModelica/build
Note:
See TracTickets
for help on using tickets.
Mahder, please can you have a look?