Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Problem compiling omc

Problem compiling omc

When trying to compile a freshly checked-out copy of the OpenModelica code, the build process halts with this error. Can anyone suggest a solution?

"/usr/local/rml/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../FrontEnd/AbsynDep.mo
AbsynDep.mo:316.17-316.34 Error: not a data constructor: stringDelimitList
Error: StaticElaborationError
make[3]: *** [AbsynDep.c] Error 1

Re: Problem compiling omc

Update to a newer rml-mmc version

Re: Problem compiling omc

I have what I think is the most recent (svn reports At revision 220 with svn update).

Re: Problem compiling omc

Does make clean (or simply rm -f Compiler/omc_release/*.{sig,sigx,srz}) solve it?

Re: Problem compiling omc

That fixed it. Thanks for your help.

Re: Problem compiling omc

I spoke too soon. Just looked at the make output and it reported an error at the same place. Apologies for the misinformation. Any suggestions?

Re: Problem compiling omc

Then your installed rml is probably not the latest revision. Note that I don't trust the rml makefiles for 2 cents so it's possible a clean compilation is required. But just to save you some time: if your /usr/local/bin/rml is older than 2011-09-25, it's not recent enough.

Re: Problem compiling omc

I'm running Ubuntu and I have rml-mmc version 222-1. My openmodelica SVN revision is 10454 and when trying to compile, I get the following error:

omi_Calculation.cpp:25:30: fatal error: simulation_delay.h: No such file or directory

This makes the omc compilation to fail. Is this a known bug?

Re: Problem compiling omc

The files are undergoing some major changes and I guess a Windows developer made a breaking change for Linux. Try r 10442. It's my last commit and should be known good unless I forgot to update before committing.

Re: Problem compiling omc

Unfortunately I have the same problem there. I removed my trunk directory, checked out using

svn co https://openmodelica.org/svn/OpenModelica/trunk/ -r 10442

Then I ran './configure --with-omniORB' and 'make -j2 omc'.

Re: Problem compiling omc

They sure forgot to update a lot of makefiles for unix... 10464 should work as I just fixed it, did make clean and made sure it runs.

Re: Problem compiling omc

10464 did not work for me (even after I removed the trunk folder and checked out svn again), but 10468 does.

Re: Problem compiling omc

I too have this problem with r 10442 and r 10460

Three things I tried:
1.    In Modelica/trunk/SimulationRuntime/interactive
      file: Makefile.in
          line 10: change -I../c/math-support
      to: -I../c/simulation/math-support

2.    In Modelica/trunk/SimulationRuntime/c/simulation/solver
      file: Makefile.in
          line 10: change -I../math-support
      to: -I../../math-support

3.    In Modelica/trunk/SimulationRuntime/c/simulation/results
      file: Makefile.in
          line 10: change -I../math-support
      to: -I../../math-support

While this allowed the compiles to proceed, alas things died again on:
  ar: creating libSimulationCRuntime.a
  ar: ./simulation/math-support/bigden.o: No such file or directory
  make[1]: *** [libSimulationCRuntime.a] Error 1
  make[1]: Leaving directory Modelica/trunk/SimulationRuntime/c'

Some help would be appreciated.

Paul Neelands

Re: Problem compiling omc

Version r 10469 works in Kubuntu 11.10 now for me.

Thanks,

Paul N

There are 0 guests and 0 other users also viewing this topic
You are here: