#3455 closed defect (fixed)
Undefined references after back end changes
Reported by: | lochel | Owned by: | lochel |
---|---|---|---|
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:1 Changed 9 years ago by vitalij
comment:2 Changed 9 years ago by lochel
Yes, that is true. I am already working on that issue.
comment:3 Changed 9 years ago by lochel
- Status changed from new to accepted
comment:4 Changed 9 years ago by lochel
I fixed the function tree for the three tests mentioned above. Hopefully code generation will not slow down.
comment:5 Changed 9 years ago by lochel
Fixed in ef0a90639dc4b61612b0dc0b35fc8038ee883fb2/OMCompiler.
Tests reactivated in 4175aafeb5a7064f0e840260a49dd04e91ffc3dd/OpenModelica-testsuite
comment:6 Changed 9 years ago by lochel
- Resolution set to fixed
- Status changed from accepted to closed
comment:7 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.4-1.9.x
Milestone renamed
comment:8 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4-1.9.x to 1.9.4
Milestone renamed
The problem is "removeUnusedFunctions".
I guess the handling of function tree is wrong.. no merge?
same issue for:
Note: after disable "removeUnusedFunctions" runReduceDrumBoiler.mos work.