openmodelicainterest  

Re: rmlc having issues with XMLDump.mo

Adrian Pop
Tue, 15 Dec 2009 03:52:58 -0800


Hi,

For sure you don't have the revision 4695 because
at line 2646 in XMLDump is a function comment and
not a line with code.

Please check again that you have the latest revision.

Cheers,
Adrian Pop/


Arquimedes Canedo wrote:
Hi,

I'm trying to build openmodelica compiler from the latest svn snapshot
(revision 4695) in Ubuntu 9.10.

I compiled mmc/rmlc from the latest svn snapshot (Revision 152), using:
smlnj Standard ML of New Jersey v110.69 [built: Mon Jun  8 14:15:08 2009]

When making omc I get the following error:

% make omc
...
time /tmp/mmc/x86-linux-gcc//bin/rml -fdump-depends Absyn.mo
Algorithm.mo Builtin.mo Ceval.mo ClassInf.mo ClassLoader.mo Codegen.mo
Connect.mo Convert.mo DAE.mo DAELow.mo Derive.mo Debug.mo DFA.mo
Dump.mo DumpGraphviz.mo Constants.mo Env.mo Error.mo Exp.mo SCode.mo
Graphviz.mo Inst.mo Interactive.mo Lookup.mo Main.mo MetaUtil.mo
Mod.mo ModUtil.mo Patternm.mo Prefix.mo Static.mo SimCodegen.mo
Types.mo TaskGraph.mo Util.mo Values.mo VarTransform.mo Refactor.mo
DAEQuery.mo XMLDump.mo > .depend
4.94user 0.66system 0:05.61elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+16outputs (0major+104764minor)pagefaults 0swaps
(cd omc_release && make)
make[2]: Entering directory `/home/canedo/openmodelica/Compiler/omc_release'
/tmp/mmc/x86-linux-gcc//bin/rmlc -Wr,-ftrace -c XMLDump.mo
"/tmp/mmc/x86-linux-gcc/bin/rml" -Eplain -ftrace XMLDump.mo

XMLDump.mo:2646.29-2646.83 Error: while processing while elaborating pattern
type string differs from:
type 'a option
reason: different type names
Error: StaticElaborationError
make[2]: *** [XMLDump.h] Error 1
make[2]: Leaving directory `/home/canedo/openmodelica/Compiler/omc_release'
make[1]: *** [omc_release] Error 2
make[1]: Leaving directory `/home/canedo/openmodelica/Compiler'
make: *** [omc] Error 2



Commenting the entry for XMLDump.mo in Compiler/Makefile.common seems
to allow the compilation of the *.cpp files until the references to
XMLDump are reached.


make[3]: Entering directory `/home/canedo/openmodelica/Compiler/modpar'
g++ -I/tmp/mmc/x86-linux-gcc/include/plain -I -I../../mosh/src -g
-Wall -DUNIX=1   -c -o TaskGraphExt_stub.o TaskGraphExt_stub.cpp
ar -r libmodpar.a TaskGraphExt_stub.o
make[3]: Leaving directory `/home/canedo/openmodelica/Compiler/modpar'
g++ -O3 -o omc Absyn.o Algorithm.o Builtin.o Ceval.o ClassInf.o
ClassLoader.o Codegen.o Connect.o Convert.o DAE.o DAELow.o Derive.o
Debug.o DFA.o Dump.o DumpGraphviz.o Constants.o Env.o Error.o Exp.o
SCode.o Graphviz.o Inst.o Interactive.o Lookup.o Main.o MetaUtil.o
Mod.o ModUtil.o Patternm.o Prefix.o Static.o SimCodegen.o Types.o
TaskGraph.o Util.o Values.o VarTransform.o Refactor.o DAEQuery.o
../absyn_builder/absyn_builder.a ../runtime/systemimpl.o
../../c_runtime/libc_runtime.a ../runtime/rtopts.o
../runtime/socketimpl.o ../runtime/printimpl.o ../runtime/ptolemyio.o
../runtime/errorext.o ../runtime/ErrorMessage.o ../runtime/daeext.o
../runtime/corbaimpl_stub.o ../modpar/libmodpar.a
../runtime/settingsimpl.o -lm -L/tmp/mmc/x86-linux-gcc/lib/plain -lrml
-L/usr/lib/ -lantlr   -ldl -L../../build/lib -lsendData
Ceval.o: In function `Ceval__dumpXMLDAE_5fsuccessContLam29966':
Ceval.c:(.text+0x570c): undefined reference to `XMLDump__dumpDAELow'
Ceval.o: In function `Ceval__dumpXMLDAE_5fsuccessContLam29774':
Ceval.c:(.text+0x690c): undefined reference to `XMLDump__dumpDAELow'
Ceval.o: In function `Ceval_5finit':
Ceval.c:(.text+0x5efdb): undefined reference to `XMLDump_5finit'
collect2: ld returned 1 exit status



Any ideas or available patches ?

Thank you

Arquimedes