openmodelicainterest  

Re: rmlc having issues with XMLDump.mo

Adrian Pop
Tue, 15 Dec 2009 19:24:18 -0800


Hi Arquimedes,

Oh, you should have said you try to compile
OpenModelica/tags/OPENMODELICA_1_4_5

You should compile the trunk:
 https://openmodelica.ida.liu.se/svn/OpenModelica/trunk
1.4.5 is rather old and a lot of things have changed
since then (bug fixes, functionality, etc).

Cheers,
Adrian Pop/

Arquimedes Canedo wrote:
Adrian,


I double checked. Sorry for the confusion with the revisions. The
trunk's revision is 4701 (latest), however XMLDump.mo has revision
4695.

$ svn info Compiler/XMLDump.mo
Path: Compiler/XMLDump.mo
Name: XMLDump.mo
URL: 
https://openmodelica.ida.liu.se/svn/OpenModelica/tags/OPENMODELICA_1_4_5/Compiler/XMLDump.mo
Repository Root: https://openmodelica.ida.liu.se/svn/OpenModelica
Repository UUID: f25d12d1-65f4-0310-ae8a-bbce733d8d8e
Revision: 4695
Node Kind: file
Schedule: normal
Last Changed Author: donida
Last Changed Rev: 3843
Last Changed Date: 2009-02-05 03:20:30 +0900 (Thu, 05 Feb 2009)
Text Last Updated: 2009-11-24 14:16:44 +0900 (Tue, 24 Nov 2009)
Checksum: e8e3ce72de827371499f901b3daa7907


Line 2646 in XMLDump.mo doesn't look like a comment:


2630: protected function dumpStringIdxLst2 "
...
2646:      case ((stringIndex as
DAELow.STRINGINDEX(str=SOME(str_s),index=SOME(index_s))) ::
stringIndexList)




On Tue, Dec 15, 2009 at 8:31 PM, Adrian Pop <ad...@ida.liu.se> wrote:
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