#2782 closed defect (fixed)
Code generation fails on Jacobian columns
Reported by: | Bill Janssen | Owned by: | Volker Waurich |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Code Generation | Version: | trunk |
Keywords: | Cc: |
Description
I'm seeing a compile error (using r21903 on OS X), which seems to be down to incorrect code generation:
C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4231:50: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac4_column' linearSystemData[0].analyticalJacobianColumn = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac4_column; ^ C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4232:51: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac4' linearSystemData[0].initialAnalyticalJacobian = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac4; ^ C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4243:50: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac5_column' linearSystemData[1].analyticalJacobianColumn = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac5_column; ^ C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4244:51: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac5' linearSystemData[1].initialAnalyticalJacobian = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac5; ^ C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4255:50: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac6_column' linearSystemData[2].analyticalJacobianColumn = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac6_column; ^ C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4256:51: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac6' linearSystemData[2].initialAnalyticalJacobian = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac6; ^ 6 errors generated. make: *** [C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.o] Error 1
Unfortunately, this model is too large and too IP-encumbered to share with you. I am hoping you can figure out what the problem is from these error messages.
Change History (7)
comment:1 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 10 years ago
I've been told this worked in 21542. My informant suspects r21558 broke it.
comment:3 by , 10 years ago
Oops. I checked C2M2L_Ext :) That version does give the same error-message as this one (and I know the exact revision that broke it). If r21558 broke the C2M2L_Decl version, try to compile using +d=nodoLinearTearing
; I suspect fixing r20610 would fix C2M2L_Decl too though (@vwaurich; is a fix coming?).
comment:4 by , 10 years ago
Unfortunately, I cannot fix or investigate this without having a model. Besides that it seems to be rather an issue of linear tearing than partial function evaluation. Does it compile with nodoLinearTearing?
comment:5 by , 9 years ago
Milestone: | Future → 1.9.4 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
I guess this fixed already, since a lot of such issues have been fix in the meanwhile.
In case it's still an issue please reopen it and update the error message.
This is broken since commit r20610