Opened 11 years ago

Closed 11 years ago

#2514 closed defect (duplicate)

-lintl -liconv missing from omc link

Reported by: Bill Janssen Owned by: Adeel Asghar
Priority: high Milestone: 1.9.1
Component: Build Environment Version: trunk
Keywords: Cc:

Description

With the current trunk, I have to add "-lintl -liconv" to LDFLAGS to get omc to link. (This is gcc 4.6, x86_64, on OS X Snow Leopard.) Otherwise I see this:

gcc -fopenmp -g -O2 -fno-tree-ch -fno-tree-vrp -fno-tree-pre -o omc Absyn.o AbsynDep.o Algorithm.o Builtin.o Ceval.o CevalFunction.o CheckModel.o ClassInf.o ClassLoader.o ComponentReference.o Connect.o ConnectUtil.o ConnectionGraph.o Constants.o DAE.o DAEDump.o DAEUtil.o Dependency.o Dump.o DumpGraphviz.o Env.o Expression.o ExpressionDump.o ExpressionSimplify.o ExpressionSimplifyTypes.o FGraph.o FGraphBuild.o FGraphEnv.o FGraphDump.o FNode.o FRef.o FResolve.o Graphviz.o Inline.o InnerOuter.o Inst.o InstBinding.o InstDAE.o InstExtends.o InstFunction.o InstSection.o InstUtil.o InstVar.o InstTypes.o Lookup.o MMath.o MetaUtil.o Mod.o NFBuiltin.o NFConnect2.o NFConnectCheck.o NFConnectEquations.o NFConnectUtil2.o NFConnectionSets.o NFEnv.o NFEnvAvlTree.o NFEnvExtends.o NFEvalFunction.o NFExpandableConnectors.o NFInst.o NFInstDump.o NFInstFlatten.o NFInstPrefix.o NFInstSymbolTable.o NFInstTypes.o NFInstTypesOld.o NFInstUtil.o NFLookup.o NFMod.o NFRedeclare.o NFSCodeApplyRedeclare.o NFSCodeAnalyseRedeclare.o NFSCodeCheck.o NFSCodeDependency.o NFSCodeEnv.o NFSCodeExpand.o NFSCodeHashTable.o NFSCodeLookup.o NFSCodeFlattenImports.o NFSCodeFlattenRedeclare.o NFSCodeInstShortcut.o NFSCodeStatic.o NFSCodeFlatten.o NFSCodeMod.o NFTypeCheck.o NFTyping.o Parser.o Patternm.o Prefix.o PrefixUtil.o SCode.o SCodeDump.o SCodeSimplify.o SCodeUtil.o Static.o Types.o UnitAbsyn.o UnitAbsynBuilder.o UnitChecker.o Values.o ValuesUtil.o BackendDAE.o BackendDAEFunc.o BackendDAECreate.o BackendDAEOptimize.o BackendDAETransform.o BackendDAEUtil.o BackendDump.o BackendEquation.o BackendQSS.o BackendVariable.o BackendVarTransform.o BinaryTree.o BinaryTreeInt.o Causalize.o DAEQuery.o Differentiate.o DumpHTML.o EvaluateParameter.o ExpressionSolve.o HashTableCrSimVars.o HpcOmBenchmark.o HpcOmEqSystems.o HpcOmScheduler.o HpcOmSimCode.o HpcOmTaskGraph.o IndexReduction.o Initialization.o InlineSolver.o Matching.o MathematicaDump.o OnRelaxation.o OpenTURNS.o PartFn.o RemoveSimpleEquations.o ResidualCmp.o SimCode.o SimCodeMain.o SimCodeUtil.o TaskGraph.o Tearing.o Uncertainties.o XMLDump.o Global.o AbsynDumpTpl.o CodegenAdevs.o CodegenC.o CodegenCpp.o CodegenCSharp.o CodegenFMU.o CodegenFMUCpp.o CodegenJava.o CodegenJS.o CodegenQSS.o CodegenUtil.o CodegenXML.o DAEDumpTpl.o ExpressionDumpTpl.o GraphvizDump.o NFInstDumpTpl.o SCodeDumpTpl.o SimCodeDump.o Tpl.o TplAbsyn.o TplCodegen.o TplMain.o TplParser.o Unparsing.o BaseHashTable.o BaseHashSet.o Config.o Debug.o Error.o Flags.o FMI.o Graph.o HashSet.o HashSetString.o HashTable.o HashTable2.o HashTable3.o HashTable4.o HashTable5.o HashTableCG.o HashTableCrILst.o HashTableCrIntToExp.o HashTableCrToExpSourceTpl.o HashTablePathToFunction.o HashTableStringToPath.o HashTableExpToExp.o HashTableExpToIndex.o GraphML.o IOStream.o List.o Util.o PriorityQueue.o VarTransform.o CevalScript.o Interactive.o GlobalScript.o Refactor.o StaticScript.o Main.o ../../Parser/libomparse_rml.a ../../Parser/libantlr3.a ../runtime/runtime.a -lModelicaExternalC -lOpenModelicaRuntimeC ../modpar/libmodpar.a -L/local/open-modelica/lib -L/local/lib -lm -L/local/open-modelica/lib/plain -lrml  -lomniORB4 -lomnithread -lpthread -llpsolve55_pic -lcolamd  -L../../build/lib/omc -Wl,-rpath,'@loader_path/../lib/omc'  -lgc -lexpat -L/local/open-modelica/lib -L/local/lib -lOpenModelicaRuntimeC -llapack -lblas -lm -lfmilib -lOpenModelicaFMIRuntimeC -lstdc++
Undefined symbols for architecture x86_64:
  "_libintl_gettext", referenced from:
      _SystemImpl__writeFile in runtime.a(System_rml.o)
      _SystemImpl__appendFile in runtime.a(System_rml.o)
      _SystemImpl__systemCall in runtime.a(System_rml.o)
      _SystemImpl__spawnCall in runtime.a(System_rml.o)
      _SystemImpl__readFileNoNumeric in runtime.a(System_rml.o)
      _SystemImpl__loadLibrary in runtime.a(System_rml.o)
      _SystemImpl__reopenStandardStream in runtime.a(System_rml.o)
      ...
  "_iconv_open", referenced from:
      _SystemImpl__iconv in runtime.a(System_rml.o)
  "_iconv", referenced from:
      _SystemImpl__iconv in runtime.a(System_rml.o)
     (maybe you meant: _SystemImpl__iconv, _SystemImpl__iconv__ascii , _System__iconv )
  "_iconv_close", referenced from:
      _SystemImpl__iconv in runtime.a(System_rml.o)
  "_libintl_setlocale", referenced from:
      _SystemImpl__gettextInit in runtime.a(System_rml.o)
  "_libintl_bindtextdomain", referenced from:
      _SystemImpl__gettextInit in runtime.a(System_rml.o)
  "_libintl_textdomain", referenced from:
      _SystemImpl__gettextInit in runtime.a(System_rml.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [omc] Error 1
make[1]: *** [all] Error 2
make: *** [omc-rml-nolink] Error 2
%

Change History (1)

comment:1 by Per Östlund, 11 years ago

Resolution: duplicate
Status: newclosed

Dupliace of #2513.

Version 0, edited 11 years ago by Per Östlund (next)
Note: See TracTickets for help on using tickets.