#3455 closed defect (fixed)
Undefined references after back end changes
Reported by: | Lennart Ochel | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Code Generation | Version: | |
Keywords: | Cc: |
Description
There are some undefined references in the generated c code after the latest back end changes (#3452):
simulation/libraries/3rdParty/ThermoPower/Bug2537.mos
Error messages:
ThermoPower.Examples.CISE.CISESim120501_02nls.o: In function `ThermoPower_Examples_CISE_CISESim120501_eqFunction_193': ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x269e): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x26ab): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_dewDensity' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x26df): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x26ec): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_bubbleDensity' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x272e): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x273b): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_bubbleDensity' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x2770): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x2785): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_dewDensity' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x27b0): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x27be): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_bubbleDensity' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x2832): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x284c): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_dewDensity' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x2885): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x2899): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_dewDensity' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x28d2): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_setSat( *)' ThermoPower.Examples.CISE.CISESim120501_02nls.c:(.text+0x28e6): undefined reference to `omc_ThermoPower_Water_Drum$Plant$Drum_Medium_bubbleDensity' clang: error: linker command failed with exit code 1 (use -v to see invocation)
Change History (8)
comment:3 by , 9 years ago
Status: | new → accepted |
---|
comment:4 by , 9 years ago
I fixed the function tree for the three tests mentioned above. Hopefully code generation will not slow down.
comment:5 by , 9 years ago
Fixed in ef0a90639dc4b61612b0dc0b35fc8038ee883fb2/OMCompiler.
Tests reactivated in 4175aafeb5a7064f0e840260a49dd04e91ffc3dd/OpenModelica-testsuite
comment:6 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
The problem is "removeUnusedFunctions".
I guess the handling of function tree is wrong.. no merge?
same issue for: