Opened 4 years ago

Last modified 4 years ago

#6306 accepted defect

OpenModelica fails to build on MacOS

Reported by: Adam Dershowitz Owned by: Adrian Pop
Priority: high Milestone: 1.16.5
Component: Build Environment Version: 1.16.0
Keywords: Cc: Olena Rogovchenko, Henning Kiel, Martin Sjölund, Adrian Pop, Adam Dershowitz

Description (last modified by Adrian Pop)

This ticket is to document issues on MacOS and try to keep it to build with help from other people.

Attachments (2)

main.log (6.8 MB ) - added by Adam Dershowitz 4 years ago.
main.log.zip (625.9 KB ) - added by Adam Dershowitz 4 years ago.

Change History (23)

by Adam Dershowitz, 4 years ago

Attachment: main.log added

comment:1 by Francesco Casella, 4 years ago

@dersh, the idea is that in the absence of serious commitment from the MacPorts community to support OpenModelica, we are stopping the direct support of MacOS with 1.16.0.

Have you looked into @sjoelund's guidelines?

comment:2 by Adam Dershowitz, 4 years ago

I had thought that the support would be through 1.16.x.
I have looked at the guidelines. They suggest openmodelica-devel, which has failed for a while now. I had recently switched to 1.16, as that was still working until 1.16.2. And, I was hoping that I could get some macport interest in keeping this going. But, if it is broken, and OM can't offer any support, it will be a tough sell to them to grab broken code and fix it, without upstream being able to help.

comment:3 by Adrian Pop, 4 years ago

Owner: changed from Martin Sjölund to Adrian Pop
Status: newaccepted

For sure 1.16.2 needs to be able to compile on Mac. I will see what I can do.

comment:4 by Adrian Pop, 4 years ago

Cc: Olena Rogovchenko Henning Kiel Martin Sjölund Adrian Pop added
Description: modified (diff)
Summary: Mac OMEdit fails to buildOpenModelica fails to build on MacOS

hkiel has fixed some of the issues via PR: https://github.com/OpenModelica/OpenModelica/pull/7228
let's look a bit into this again.

comment:5 by Adrian Pop, 4 years ago

From previous email discussion, don't care about macports update, do that very seldom, basically don't fail on port upgrade outdated. Try also port uninstall inactive and port uninstall leaves.

Latest issue:
https://test.openmodelica.org/hudson/job/OpenModelica_OSX_NIGHTLY_BUILD/2898/console
find: -xtype: unknown primary or operator
I'm not sure that we need xtype there, I guess type should suffice as there are no symlinks in the sundials build (I hope!).

Version 0, edited 4 years ago by Adrian Pop (next)

comment:6 by Adrian Pop, 4 years ago

use gfind instead of find as we need symbolic links as well (one would need to install gnu tools via brew install findutils)
PR https://github.com/OpenModelica/OpenModelica/pull/7238

comment:7 by Francesco Casella, 4 years ago

Cc: Adam Dershowitz added

comment:8 by Adrian Pop, 4 years ago

From ticket #6215 and the comments in PR ​https://github.com/OpenModelica/OpenModelica/pull/7238, after compilation, simulation of models fails with:

yld: _dyld_bind_fully_image_containing_address() error
dyld: Symbol not found: _dgetrf
  Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.17.0~dev.beta1-3-gb286656/build/lib/x86_64-darwin18.7.0/omc/libsundials_sunlinsollapackdense.3.dylib
  Expected in: flat namespace
 in /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.17.0~dev.beta1-3-gb286656/build/lib/x86_64-darwin18.7.0/omc/libsundials_sunlinsollapackdense.3.dylib

As far as I can see this is an error we get because the MacOS configure sets CMAKE_LDFLAGS="-Wl,-undefined -Wl,dynamic_lookup" which will basically means linking will *not report any undefined symbols*. This will make LapackTest in sundials be able to link fine even if the symbols are missing. I suspect the LapackTest linking will define a certain mangling scheme which we need to make sure we don't have the proper mapping to the symbols in lapack (openblas). I think somebody added these linking flags so that the undefined symbol in the parser doesn't break linking. The PR above changed the flags to only allow that one undefined symbol that we need. Let's see how it goes now.

comment:9 by Adrian Pop, 4 years ago

Solved the problem from #6215 by cmake configuring sundials with -DSUNDIALS_F77_FUNC_CASE:String=lower -DSUNDIALS_F77_FUNC_UNDERSCORES:String=one.

comment:10 by Adrian Pop, 4 years ago

There are still some issues with rpaths but at least now all stuff can be build and the simulation with C runtime is working.

comment:11 by Adam Dershowitz, 4 years ago

I'm still getting an error when I try to build 1.16.4_0. For most of my ports, I do delete the inactive ones, but I've generally been hesitant to do that with OM, since I've had multiple issues building and have never wanted to end up in a place without a functioning version. But, I can try that if you think that it might help.
At the moment I do have a function 1.16.1_0 and active.

comment:12 by Adrian Pop, 4 years ago

I haven't yet ported any of my fixes to the maintenance/v1.16 branch. I will do that when the master version builds fine.

comment:13 by Adam Dershowitz, 4 years ago

Let me know if you would like me to try other builds. Is the master version what shows up as "openmodelica @1.17.0~dev.beta3-1-g7a2b169"?

comment:14 by Adrian Pop, 4 years ago

No, master is 1.18.0-dev (nightly-builds). My plan is to integrate my fixes into 1.16.6 and 1.17.0-dev.beta4 later on.

comment:15 by Adam Dershowitz, 4 years ago

I was curious and just tried to build 1.18.0-dev-108 and it fails also. If details would be useful, I'm happy to share them.

comment:16 by Adrian Pop, 4 years ago

PR https://github.com/OpenModelica/OpenModelica/pull/7246 fixes the last rpath issues. MacOS build of master is now green: https://test.openmodelica.org/jenkins/blue/organizations/jenkins/OpenModelica/detail/PR-7246/6/pipeline/43

@dresh, what is your issue when building 1.18.0-dev?
@Lena tried also and she has some conflicts with already installed macport of sundials (older version than what we have in OMCompiler/3rdParty/sundials-5.4.0).

comment:17 by Adam Dershowitz, 4 years ago

The build gets pretty far, and ends with this in the log:

:info:build cp -a build/_main.c build/_main_omc.c
:info:build /usr/bin/clang -DOMC_ENTRYPOINT_STATIC= -c build/_main.c -o  build/_main.o -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -fno-stack-protector  -Wno-parentheses-equality -Wno-unused-variable -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -I/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/include/omc/c -I../Util/ -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -DADD_METARECORD_DEFINITIONS=
:info:build cp -a build/OpenModelicaScriptingAPI.h /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/include/omc/scripting-API
:info:build /usr/bin/clang -c build/_main_omc.c -o  build/_main_omc.o -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -fno-stack-protector  -Wno-parentheses-equality -Wno-unused-variable -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -I/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/include/omc/c -I../Util/ -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -DADD_METARECORD_DEFINITIONS=
:info:build /usr/bin/clang -shared -Wl,-rpath,'@loader_path/../lib/x86_64-darwin19.6.0/omc/'  -o /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc/libOpenModelicaCompiler.dylib build/RuntimeSources.o build/Vector.o build/Unzip.o build/UnorderedSet.o build/UnorderedMap.o build/TaskGraphResults.o build/SimulationResults.o build/SBSet.o build/SBPWLinearMap.o build/SBPWAtomicLinearMap.o build/SBMultiInterval.o build/SBLinearMap.o build/SBInterval.o build/SBFunctions.o build/SBAtomicSet.o build/PriorityQueue.o build/OMSimulator.o build/HashTableSM1.o build/HashTableSimCodeEqCache.o build/HashTableCrToCrEqLst.o build/HashTableCrToExpSourceTpl.o build/HashTableExpToIndexExp.o build/HashTableCrIntToExp.o build/HashTableExpToExp.o build/HashTableCrToExp.o build/HashTable4.o build/JSONExt.o build/GraphML.o build/FMIExt.o build/FMI.o build/FFI.o build/ExpandableArray.o build/DisjointSets.o build/DiffAlgorithm.o build/Curl.o build/AdjacencyList.o build/AvlSetInt.o build/AvlTreeString.o build/AvlTree.o build/Autoconf.o build/VisualXMLTpl.o build/SimCodeDump.o build/NFInstDumpTpl.o build/GraphMLDumpTpl.o build/GraphvizDump.o build/CodegenXML.o build/CodegenUtilSimulation.o build/CodegenMidToC.o build/CodegenJS.o build/CodegenFMUCppHpcomOld.o build/CodegenFMUCppHpcom.o build/CodegenOMSICpp.o build/CodegenOMSIC_Equations.o build/CodegenOMSIC.o build/CodegenOMSI_common.o build/CodegenFMUCppOld.o build/CodegenFMUCpp.o build/CodegenFMUCommon.o build/CodegenFMU2.o build/CodegenFMU1.o build/CodegenFMU.o build/CodegenCppInit.o build/CodegenCppHpcomOld.o build/CodegenCppHpcom.o build/CodegenCppOld.o build/CodegenCpp.o build/CodegenCppCommonOld.o build/CodegenCppCommon.o build/CodegenEmbeddedC.o build/CodegenC.o build/AbsynJLDumpTpl.o build/AbsynToJulia.o build/ReduceDAE.o build/SimCodeUtil.o build/SimCodeMain.o build/SimCode.o build/SerializeTaskSystemInfo.o build/SerializeModelInfo.o build/SerializeInitXML.o build/HpcOmSimCodeMain.o build/NFApi.o build/MMToJuliaKeywords.o build/MMToJuliaUtil.o build/PackageManagement.o build/CevalScriptBackend.o build/OpenModelicaScriptingAPI.o build/Binding.o build/BlockCallRewrite.o build/Figaro.o build/RewriteRules.o build/Refactor.o build/CevalScriptOMSimulator.o build/SimpleModelicaParser.o build/JSON.o build/LexerModelicaDiff.o build/LexerJSON.o build/NFVerifyModel.o build/NFVariable.o build/NFUnit.o build/NFUnitCheck.o build/NFTyping.o build/NFType.o build/NFTypeCheck.o build/NFSubscript.o build/NFStructural.o build/NFStatement.o build/NFSimplifyModel.o build/NFSimplifyExp.o build/NFSections.o build/NFScalarize.o build/NFRestriction.o build/NFRecord.o build/NFRangeIterator.o build/NFPrefixes.o build/NFPackage.o build/NFOperatorOverloading.o build/NFOperator.o build/NFOCConnectionGraph.o build/NFModifier.o build/NFLookupTree.o build/NFLookupState.o build/NFLookup.o build/NFInstNode.o build/NFInst.o build/NFInstContext.o build/NFInline.o build/NFImport.o build/NFHashTableUnitToString.o build/NFHashTableStringToUnit.o build/NFHashTable.o build/NFHashTableCrToUnit.o build/NFHashTableCG.o build/NFHashTable3.o build/NFFunction.o build/NFFunctionDerivative.o build/NFFlatten.o build/NFFlatModel.o build/NFExpression.o build/NFExpressionIterator.o build/NFExpandExp.o build/NFExpandableConnectors.o build/NFEvalFunction.o build/NFEvalFunctionExt.o build/NFEvalConstants.o build/NFEquation.o build/NFDuplicateTree.o build/NFDimension.o build/NFConvertDAE.o build/NFConnector.o build/NFConnections.o build/NFConnectionSets.o build/NFConnection.o build/NFConnectEquations.o build/NFComponentRef.o build/NFComponent.o build/NFComplexType.o build/NFClockKind.o build/NFClassTree.o build/NFClass.o build/NFCeval.o build/NFCardinalityTable.o build/NFCallParameterTree.o build/NFCall.o build/NFCallAttributes.o build/NFBuiltin.o build/NFBuiltinFuncs.o build/NFBuiltinCall.o build/NFBinding.o build/NFArrayConnections.o build/NFAlgorithm.o build/HashTableMidVar.o build/MidToMid.o build/DAEToMid.o build/MidCode.o build/UnitChecker.o build/UnitAbsynBuilder.o build/NFSCodeCheck.o build/NFSCodeLookup.o build/NFSCodeFlattenRedeclare.o build/NFSCodeFlatten.o build/NFSCodeFlattenImports.o build/NFSCodeEnv.o build/NFSCodeDependency.o build/NFInstTypes.o build/NFInstPrefix.o build/NFInstDump.o build/NFEnvExtends.o build/FHashTableUnitToString.o build/FHashTableStringToUnit.o build/FHashTableCrToUnit.o build/FUnitCheck.o build/FUnit.o build/InstStateMachineUtil.o build/DumpGraphviz.o build/CheckModel.o build/FInst.o build/FGraphStream.o build/FGraphDump.o build/ZeroCrossings.o build/XMLDump.o build/VisualXML.o build/Vectorization.o build/Uncertainties.o build/Tearing.o build/SynchronousFeatures.o build/SymbolicJacobian.o build/SymbolicImplicitSolver.o build/Sorting.o build/ResolveLoops.o build/RemoveSimpleEquations.o build/OpenTURNS.o build/OnRelaxation.o build/MathematicaDump.o build/Matching.o build/Initialization.o build/InlineArrayEquations.o build/IndexReduction.o build/HpcOmTaskGraph.o build/HpcOmSchedulerExt.o build/HpcOmScheduler.o build/HpcOmMemory.o build/HpcOmEqSystems.o build/HpcOmBenchmarkExt.o build/HpcOmBenchmark.o build/FindZeroCrossings.o build/ExpressionSolve.o build/EvaluateParameter.o build/EvaluateFunctions.o build/DynamicOptimization.o build/DumpHTML.o build/DumpGraphML.o build/Differentiate.o build/DataReconciliation.o build/DAEMode.o build/DAEQuery.o build/CommonSubExpression.o build/Causalize.o build/BinaryTreeInt.o build/BinaryTree.o build/BackendVarTransform.o build/BackendVariable.o build/BackendUtil.o build/BackendInline.o build/BackendEquation.o build/BackendDump.o build/BackendDAEUtil.o build/BackendDAETransform.o build/BackendDAEOptimize.o build/BackendDAEEXT.o build/BackendDAECreate.o build/BackendDAEFunc.o build/AdjacencyMatrix.o build/ZeroMQ.o build/VarTransform.o build/Util.o build/Testsuite.o build/System.o build/Socket.o build/StringUtil.o build/StackOverflow.o build/Settings.o build/SemanticVersion.o build/Print.o build/Pointer.o build/Mutable.o build/ModelicaExternalC.o build/List.o build/Lapack.o build/IOStream.o build/IOStreamExt.o build/HashTableStringToProgram.o build/HashTableStringToPath.o build/HashTableExpToIndex.o build/HashTable.o build/HashTableCrToExpOption.o build/HashTableCrIListArray.o build/HashTableCrILst.o build/HashTableCrefSimVar.o build/HashTableCG.o build/HashTable5.o build/HashTable3.o build/HashTable2.o build/HashSetString.o build/HashSetExp.o build/HashSet.o build/GraphStreamExt.o build/GraphStream.o build/Graph.o build/Gettext.o build/GC.o build/FlagsUtil.o build/Flags.o build/ExecStat.o build/ErrorTypes.o build/Error.o build/ErrorExt.o build/DynLoad.o build/DoubleEnded.o build/Debug.o build/Corba.o build/Config.o build/ClockIndexes.o build/BaseHashSet.o build/BaseHashTable.o build/BaseAvlSet.o build/BaseAvlTree.o build/AvlTreeCRToInt.o build/AvlTreeStringString.o build/AvlSetString.o build/AvlSetPath.o build/AvlSetCR.o build/Array.o build/Main.o build/Global.o build/Unparsing.o build/TplParser.o build/Tpl.o build/TplMain.o build/TplCodegen.o build/TplAbsyn.o build/SCodeDumpTpl.o build/GenerateAPIFunctionsTpl.o build/ExpressionDumpTpl.o build/DAEDumpTpl.o build/CodegenUtil.o build/CodegenCFunctions.o build/AbsynDumpTpl.o build/InteractiveUtil.o build/SymbolTable.o build/StaticScript.o build/Interactive.o build/GlobalScriptUtil.o build/GlobalScriptDump.o build/GlobalScript.o build/CevalScript.o build/SimCodeVar.o build/SimCodeFunctionUtil.o build/SimCodeFunction.o build/HpcOmSimCode.o build/BackendDAE.o build/FVisit.o build/FTraverse.o build/FResolve.o build/FNode.o build/FMod.o build/FLookup.o build/FGraphBuildEnv.o build/FGraphBuild.o build/FGraph.o build/FExpand.o build/FCore.o build/FBuiltin.o build/ValuesUtil.o build/Values.o build/UnitParserExt.o build/UnitAbsyn.o build/Types.o build/StateMachineFlatten.o build/Static.o build/SCodeUtil.o build/SCodeInstUtil.o build/SCodeDump.o build/SCode.o build/PrefixUtil.o build/Patternm.o build/ParserExt.o build/Parser.o build/OperatorOverloading.o build/NFInstUtil.o build/Mod.o build/MMath.o build/MetaUtil.o build/Lookup.o build/InstTypes.o build/InstSection.o build/InstExtends.o build/InstUtil.o build/InstMeta.o build/InstHashTable.o build/InstFunction.o build/InstBinding.o build/InstDAE.o build/InstVar.o build/Inst.o build/InnerOuter.o build/Inline.o build/Graphviz.o build/ExpressionSimplifyTypes.o build/ExpressionSimplify.o build/Expression.o build/ExpressionDump.o build/ElementSource.o build/Dump.o build/DAEUtil.o build/DAE.o build/DAEDump.o build/Constants.o build/ConnectUtil.o build/ConnectionGraph.o build/ComponentReference.o build/ClassLoader.o build/ClassInf.o build/Ceval.o build/CevalFunction.o build/Builtin.o build/BackendInterface.o build/Algorithm.o build/AbsynUtil.o build/AbsynToSCode.o build/Absyn.o build/File.o build/RuntimeSources_records.o build/Vector_records.o build/Unzip_records.o build/UnorderedSet_records.o build/UnorderedMap_records.o build/TaskGraphResults_records.o build/SimulationResults_records.o build/SBSet_records.o build/SBPWLinearMap_records.o build/SBPWAtomicLinearMap_records.o build/SBMultiInterval_records.o build/SBLinearMap_records.o build/SBInterval_records.o build/SBFunctions_records.o build/SBAtomicSet_records.o build/PriorityQueue_records.o build/OMSimulator_records.o build/HashTableSM1_records.o build/HashTableSimCodeEqCache_records.o build/HashTableCrToCrEqLst_records.o build/HashTableCrToExpSourceTpl_records.o build/HashTableExpToIndexExp_records.o build/HashTableCrIntToExp_records.o build/HashTableExpToExp_records.o build/HashTableCrToExp_records.o build/HashTable4_records.o build/JSONExt_records.o build/GraphML_records.o build/FMIExt_records.o build/FMI_records.o build/FFI_records.o build/ExpandableArray_records.o build/DisjointSets_records.o build/DiffAlgorithm_records.o build/Curl_records.o build/AdjacencyList_records.o build/AvlSetInt_records.o build/AvlTreeString_records.o build/AvlTree_records.o build/Autoconf_records.o build/VisualXMLTpl_records.o build/SimCodeDump_records.o build/NFInstDumpTpl_records.o build/GraphMLDumpTpl_records.o build/GraphvizDump_records.o build/CodegenXML_records.o build/CodegenUtilSimulation_records.o build/CodegenMidToC_records.o build/CodegenJS_records.o build/CodegenFMUCppHpcomOld_records.o build/CodegenFMUCppHpcom_records.o build/CodegenOMSICpp_records.o build/CodegenOMSIC_Equations_records.o build/CodegenOMSIC_records.o build/CodegenOMSI_common_records.o build/CodegenFMUCppOld_records.o build/CodegenFMUCpp_records.o build/CodegenFMUCommon_records.o build/CodegenFMU2_records.o build/CodegenFMU1_records.o build/CodegenFMU_records.o build/CodegenCppInit_records.o build/CodegenCppHpcomOld_records.o build/CodegenCppHpcom_records.o build/CodegenCppOld_records.o build/CodegenCpp_records.o build/CodegenCppCommonOld_records.o build/CodegenCppCommon_records.o build/CodegenEmbeddedC_records.o build/CodegenC_records.o build/AbsynJLDumpTpl_records.o build/AbsynToJulia_records.o build/ReduceDAE_records.o build/SimCodeUtil_records.o build/SimCodeMain_records.o build/SimCode_records.o build/SerializeTaskSystemInfo_records.o build/SerializeModelInfo_records.o build/SerializeInitXML_records.o build/HpcOmSimCodeMain_records.o build/NFApi_records.o build/MMToJuliaKeywords_records.o build/MMToJuliaUtil_records.o build/PackageManagement_records.o build/CevalScriptBackend_records.o build/OpenModelicaScriptingAPI_records.o build/Binding_records.o build/BlockCallRewrite_records.o build/Figaro_records.o build/RewriteRules_records.o build/Refactor_records.o build/CevalScriptOMSimulator_records.o build/SimpleModelicaParser_records.o build/JSON_records.o build/LexerModelicaDiff_records.o build/LexerJSON_records.o build/NFVerifyModel_records.o build/NFVariable_records.o build/NFUnit_records.o build/NFUnitCheck_records.o build/NFTyping_records.o build/NFType_records.o build/NFTypeCheck_records.o build/NFSubscript_records.o build/NFStructural_records.o build/NFStatement_records.o build/NFSimplifyModel_records.o build/NFSimplifyExp_records.o build/NFSections_records.o build/NFScalarize_records.o build/NFRestriction_records.o build/NFRecord_records.o build/NFRangeIterator_records.o build/NFPrefixes_records.o build/NFPackage_records.o build/NFOperatorOverloading_records.o build/NFOperator_records.o build/NFOCConnectionGraph_records.o build/NFModifier_records.o build/NFLookupTree_records.o build/NFLookupState_records.o build/NFLookup_records.o build/NFInstNode_records.o build/NFInst_records.o build/NFInstContext_records.o build/NFInline_records.o build/NFImport_records.o build/NFHashTableUnitToString_records.o build/NFHashTableStringToUnit_records.o build/NFHashTable_records.o build/NFHashTableCrToUnit_records.o build/NFHashTableCG_records.o build/NFHashTable3_records.o build/NFFunction_records.o build/NFFunctionDerivative_records.o build/NFFlatten_records.o build/NFFlatModel_records.o build/NFExpression_records.o build/NFExpressionIterator_records.o build/NFExpandExp_records.o build/NFExpandableConnectors_records.o build/NFEvalFunction_records.o build/NFEvalFunctionExt_records.o build/NFEvalConstants_records.o build/NFEquation_records.o build/NFDuplicateTree_records.o build/NFDimension_records.o build/NFConvertDAE_records.o build/NFConnector_records.o build/NFConnections_records.o build/NFConnectionSets_records.o build/NFConnection_records.o build/NFConnectEquations_records.o build/NFComponentRef_records.o build/NFComponent_records.o build/NFComplexType_records.o build/NFClockKind_records.o build/NFClassTree_records.o build/NFClass_records.o build/NFCeval_records.o build/NFCardinalityTable_records.o build/NFCallParameterTree_records.o build/NFCall_records.o build/NFCallAttributes_records.o build/NFBuiltin_records.o build/NFBuiltinFuncs_records.o build/NFBuiltinCall_records.o build/NFBinding_records.o build/NFArrayConnections_records.o build/NFAlgorithm_records.o build/HashTableMidVar_records.o build/MidToMid_records.o build/DAEToMid_records.o build/MidCode_records.o build/UnitChecker_records.o build/UnitAbsynBuilder_records.o build/NFSCodeCheck_records.o build/NFSCodeLookup_records.o build/NFSCodeFlattenRedeclare_records.o build/NFSCodeFlatten_records.o build/NFSCodeFlattenImports_records.o build/NFSCodeEnv_records.o build/NFSCodeDependency_records.o build/NFInstTypes_records.o build/NFInstPrefix_records.o build/NFInstDump_records.o build/NFEnvExtends_records.o build/FHashTableUnitToString_records.o build/FHashTableStringToUnit_records.o build/FHashTableCrToUnit_records.o build/FUnitCheck_records.o build/FUnit_records.o build/InstStateMachineUtil_records.o build/DumpGraphviz_records.o build/CheckModel_records.o build/FInst_records.o build/FGraphStream_records.o build/FGraphDump_records.o build/ZeroCrossings_records.o build/XMLDump_records.o build/VisualXML_records.o build/Vectorization_records.o build/Uncertainties_records.o build/Tearing_records.o build/SynchronousFeatures_records.o build/SymbolicJacobian_records.o build/SymbolicImplicitSolver_records.o build/Sorting_records.o build/ResolveLoops_records.o build/RemoveSimpleEquations_records.o build/OpenTURNS_records.o build/OnRelaxation_records.o build/MathematicaDump_records.o build/Matching_records.o build/Initialization_records.o build/InlineArrayEquations_records.o build/IndexReduction_records.o build/HpcOmTaskGraph_records.o build/HpcOmSchedulerExt_records.o build/HpcOmScheduler_records.o build/HpcOmMemory_records.o build/HpcOmEqSystems_records.o build/HpcOmBenchmarkExt_records.o build/HpcOmBenchmark_records.o build/FindZeroCrossings_records.o build/ExpressionSolve_records.o build/EvaluateParameter_records.o build/EvaluateFunctions_records.o build/DynamicOptimization_records.o build/DumpHTML_records.o build/DumpGraphML_records.o build/Differentiate_records.o build/DataReconciliation_records.o build/DAEMode_records.o build/DAEQuery_records.o build/CommonSubExpression_records.o build/Causalize_records.o build/BinaryTreeInt_records.o build/BinaryTree_records.o build/BackendVarTransform_records.o build/BackendVariable_records.o build/BackendUtil_records.o build/BackendInline_records.o build/BackendEquation_records.o build/BackendDump_records.o build/BackendDAEUtil_records.o build/BackendDAETransform_records.o build/BackendDAEOptimize_records.o build/BackendDAEEXT_records.o build/BackendDAECreate_records.o build/BackendDAEFunc_records.o build/AdjacencyMatrix_records.o build/ZeroMQ_records.o build/VarTransform_records.o build/Util_records.o build/Testsuite_records.o build/System_records.o build/Socket_records.o build/StringUtil_records.o build/StackOverflow_records.o build/Settings_records.o build/SemanticVersion_records.o build/Print_records.o build/Pointer_records.o build/Mutable_records.o build/ModelicaExternalC_records.o build/List_records.o build/Lapack_records.o build/IOStream_records.o build/IOStreamExt_records.o build/HashTableStringToProgram_records.o build/HashTableStringToPath_records.o build/HashTableExpToIndex_records.o build/HashTable_records.o build/HashTableCrToExpOption_records.o build/HashTableCrIListArray_records.o build/HashTableCrILst_records.o build/HashTableCrefSimVar_records.o build/HashTableCG_records.o build/HashTable5_records.o build/HashTable3_records.o build/HashTable2_records.o build/HashSetString_records.o build/HashSetExp_records.o build/HashSet_records.o build/GraphStreamExt_records.o build/GraphStream_records.o build/Graph_records.o build/Gettext_records.o build/GC_records.o build/FlagsUtil_records.o build/Flags_records.o build/ExecStat_records.o build/ErrorTypes_records.o build/Error_records.o build/ErrorExt_records.o build/DynLoad_records.o build/DoubleEnded_records.o build/Debug_records.o build/Corba_records.o build/Config_records.o build/ClockIndexes_records.o build/BaseHashSet_records.o build/BaseHashTable_records.o build/BaseAvlSet_records.o build/BaseAvlTree_records.o build/AvlTreeCRToInt_records.o build/AvlTreeStringString_records.o build/AvlSetString_records.o build/AvlSetPath_records.o build/AvlSetCR_records.o build/Array_records.o build/Main_records.o build/Global_records.o build/Unparsing_records.o build/TplParser_records.o build/Tpl_records.o build/TplMain_records.o build/TplCodegen_records.o build/TplAbsyn_records.o build/SCodeDumpTpl_records.o build/GenerateAPIFunctionsTpl_records.o build/ExpressionDumpTpl_records.o build/DAEDumpTpl_records.o build/CodegenUtil_records.o build/CodegenCFunctions_records.o build/AbsynDumpTpl_records.o build/InteractiveUtil_records.o build/SymbolTable_records.o build/StaticScript_records.o build/Interactive_records.o build/GlobalScriptUtil_records.o build/GlobalScriptDump_records.o build/GlobalScript_records.o build/CevalScript_records.o build/SimCodeVar_records.o build/SimCodeFunctionUtil_records.o build/SimCodeFunction_records.o build/HpcOmSimCode_records.o build/BackendDAE_records.o build/FVisit_records.o build/FTraverse_records.o build/FResolve_records.o build/FNode_records.o build/FMod_records.o build/FLookup_records.o build/FGraphBuildEnv_records.o build/FGraphBuild_records.o build/FGraph_records.o build/FExpand_records.o build/FCore_records.o build/FBuiltin_records.o build/ValuesUtil_records.o build/Values_records.o build/UnitParserExt_records.o build/UnitAbsyn_records.o build/Types_records.o build/StateMachineFlatten_records.o build/Static_records.o build/SCodeUtil_records.o build/SCodeInstUtil_records.o build/SCodeDump_records.o build/SCode_records.o build/PrefixUtil_records.o build/Patternm_records.o build/ParserExt_records.o build/Parser_records.o build/OperatorOverloading_records.o build/NFInstUtil_records.o build/Mod_records.o build/MMath_records.o build/MetaUtil_records.o build/Lookup_records.o build/InstTypes_records.o build/InstSection_records.o build/InstExtends_records.o build/InstUtil_records.o build/InstMeta_records.o build/InstHashTable_records.o build/InstFunction_records.o build/InstBinding_records.o build/InstDAE_records.o build/InstVar_records.o build/Inst_records.o build/InnerOuter_records.o build/Inline_records.o build/Graphviz_records.o build/ExpressionSimplifyTypes_records.o build/ExpressionSimplify_records.o build/Expression_records.o build/ExpressionDump_records.o build/ElementSource_records.o build/Dump_records.o build/DAEUtil_records.o build/DAE_records.o build/DAEDump_records.o build/Constants_records.o build/ConnectUtil_records.o build/ConnectionGraph_records.o build/ComponentReference_records.o build/ClassLoader_records.o build/ClassInf_records.o build/Ceval_records.o build/CevalFunction_records.o build/Builtin_records.o build/BackendInterface_records.o build/Algorithm_records.o build/AbsynUtil_records.o build/AbsynToSCode_records.o build/Absyn_records.o build/File_records.o build/_main_omc.o -L.  -Lbuild/ -L"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc" -lomparse /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler/runtime/libomcgraphstream.a /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler/runtime/libomcbackendruntime.a -lomcruntime -lffi -lOpenModelicaRuntimeC -lModelicaExternalC -lModelicaIO -lModelicaMatIO -lzlib -lomantlr3 -lomniORB4 -lomnithread -lpthread /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/3rdParty/FMIL/install/"lib/x86_64-darwin19.6.0/omc"/libfmilib.a -lexpat -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64  -lcurl  -lomcgc -lm -lpthread  -lstdc++  -llpsolve55 -lcolamd -lsuitesparseconfig   -luuid -Wl,-undefined -Wl,dynamic_lookup -L/opt/local/lib/x86_64-darwin19.6.0/omc -lmetis  -lopenblas   -lzmq 
:info:build ld: warning: directory not found for option '-L/opt/local/lib/x86_64-darwin19.6.0/omc'
:info:build test ! ".dylib" = ".dylib" || install_name_tool -id @rpath/libOpenModelicaCompiler.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc/libOpenModelicaCompiler.dylib
:info:build test ! ".dylib" = ".dylib" || install_name_tool -change libcolamd.dylib @rpath/libcolamd.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc/libOpenModelicaCompiler.dylib
:info:build test ! ".dylib" = ".dylib" || install_name_tool -change libsuitesparseconfig.dylib @rpath/libsuitesparseconfig.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc/libOpenModelicaCompiler.dylib
:info:build /usr/bin/clang build/_main.o -Wl,-rpath,'@loader_path/../lib/x86_64-darwin19.6.0/omc/' -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -fno-stack-protector  -Wno-parentheses-equality -Wno-unused-variable -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -I/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/include/omc/c -I../Util/ -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -DADD_METARECORD_DEFINITIONS= -o build/omc -L"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc"  -lOpenModelicaCompiler
:info:build cp -a build/omc /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/bin/
:info:build test ! ".dylib" = ".dll" || cp -a /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc/libOpenModelicaCompiler.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/bin/
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler/boot'
:info:build Bootstrapping phase 3/3 completed
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler/boot'
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler/boot'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler/boot'
:info:build /Library/Developer/CommandLineTools/usr/bin/make -f Makefile -C Compiler install_scripts OMBUILDDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler'
:info:build cd scripts; cp openmodelica.lefty default_profiling.xsl replace-startValue.sh replace-startValue.xsl simcodedump.xsl ngspicetoModelica.py /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/share/omc/scripts
:info:build cp OpenModelicaBootstrappingHeader.h /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/include/omc/c/
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler/Compiler'
:info:build test ! `uname` = Darwin || ( ! otool -L "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build/lib/x86_64-darwin19.6.0/omc"/*.dylib | egrep "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/build|`pwd`" | grep -v : || ( echo All dylibs should be linked using @rpath ; false ) )
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a/OMCompiler'
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.18.0~dev-109-ged8ef0a" && /usr/bin/make -j16 -w 
:info:build Exit code: 2
:error:build Failed to build openmodelica-devel: command execution failed
:debug:build Error code: CHILDSTATUS 60928 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log for details.

The log is pretty large, so I'll zip it and attach it as well.

by Adam Dershowitz, 4 years ago

Attachment: main.log.zip added

comment:18 by Adam Dershowitz, 4 years ago

Oops. I Saw your post https://trac.openmodelica.org/OpenModelica/ticket/6219 and finally just uninstalled pubixml (I'm not even sure what port had been using it, but it seems that I'm not using it anymore). And now I can build and run 1.18.0-dev!

Thank you!

comment:19 by Adrian Pop, 4 years ago

Ok, master 1.18.0-dev is working now, I'll look into maintenance/1.16 and maintenance/1.17 with low priority.

comment:20 by Adrian Pop, 4 years ago

Milestone: NeedsInput1.17.0

comment:21 by Francesco Casella, 4 years ago

Milestone: 1.17.01.16.5

I'll move it to 1.16.5 to remember the maintenance goal

Note: See TracTickets for help on using tickets.