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
  • Index
  • » Users
  • » fabricesalvaire
  • » Profile

Posts

Posts

Sep-08-13 00:39:01
omc compilation errors
Category: Developer

Solved: do make clean and two make iterations

Sep-07-13 23:13:21
omc compilation errors
Category: Developer

I am trying to build openmodelica from a fresh svn checkout of the trunk and I got these errors:

make[3]: Entering directory `/srv/scratch/sources/openmodelica/openmodelica-1.9b4-svn/Compiler/omc_release'
/usr/local/stow/mmc/bin/rmlc -Wr,-Wshow-warnings,-ftrace,-I../FrontEnd,-I../BackEnd,-I../Template,-I../Util,-I../Script,-I../Main,-I../Global +C ../FrontEnd/Ceval.mo
"/usr/local/stow/mmc/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../FrontEnd/Ceval.mo
Ceval.mo:6085.77-6085.81 Error: unbound variable info
Error: StaticElaborationError
make[3]: *** [Ceval.c] Error 1
/usr/local/stow/mmc/bin/rmlc -Wr,-Wshow-warnings,-ftrace,-I../FrontEnd,-I../BackEnd,-I../Template,-I../Util,-I../Script,-I../Main,-I../Global +C ../FrontEnd/Inst.mo
"/usr/local/stow/mmc/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../FrontEnd/Inst.mo
Inst.mo:130.11-130.11 Warning: unused imported module: Inline
Inst.mo:13149.33-13149.35 Error: unbound variable ty
Error: StaticElaborationError
make[3]: *** [Inst.c] Error 1
/usr/local/stow/mmc/bin/rmlc -Wr,-Wshow-warnings,-ftrace,-I../FrontEnd,-I../BackEnd,-I../Template,-I../Util,-I../Script,-I../Main,-I../Global +C ../FrontEnd/Mod.mo
"/usr/local/stow/mmc/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../FrontEnd/Mod.mo
Mod.mo:1183.27-1183.31 Error: unbound variable name
Error: StaticElaborationError
make[3]: *** [Mod.c] Error 1
/usr/local/stow/mmc/bin/rmlc -Wr,-Wshow-warnings,-ftrace,-I../FrontEnd,-I../BackEnd,-I../Template,-I../Util,-I../Script,-I../Main,-I../Global +C ../FrontEnd/SCode.mo
"/usr/local/stow/mmc/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../FrontEnd/SCode.mo
SCode.mo:1784.24-1784.37 Error: unbound variable partialPrefix
Error: StaticElaborationError
make[3]: *** [SCode.c] Error 1
/usr/local/stow/mmc/bin/rmlc -Wr,-Wshow-warnings,-ftrace,-I../FrontEnd,-I../BackEnd,-I../Template,-I../Util,-I../Script,-I../Main,-I../Global +C ../BackEnd/BackendDAECreate.mo
"/usr/local/stow/mmc/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../BackEnd/BackendDAECreate.mo
BackendDAECreate.mo:1445.56-1445.65 Error: unbound variable condition
Error: StaticElaborationError
make[3]: *** [BackendDAECreate.c] Error 1
/usr/local/stow/mmc/bin/rmlc -Wr,-Wshow-warnings,-ftrace,-I../FrontEnd,-I../BackEnd,-I../Template,-I../Util,-I../Script,-I../Main,-I../Global +C ../BackEnd/BackendDump.mo
"/usr/local/stow/mmc/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../BackEnd/BackendDump.mo
BackendDump.mo:794.61-794.65 Error: unbound variable vars
Error: StaticElaborationError
make[3]: *** [BackendDump.c] Error 1
/usr/local/stow/mmc/bin/rmlc -Wr,-Wshow-warnings,-ftrace,-I../FrontEnd,-I../BackEnd,-I../Template,-I../Util,-I../Script,-I../Main,-I../Global +C ../BackEnd/RemoveSimpleEquations.mo
"/usr/local/stow/mmc/bin/rml" -Eplain -Wshow-warnings -ftrace -I../FrontEnd -I../BackEnd -I../Template -I../Util -I../Script -I../Main -I../Global ../BackEnd/RemoveSimpleEquations.mo
RemoveSimpleEquations.mo:2403.49-2403.52 Error: unbound variable exp
Error: StaticElaborationError
make[3]: *** [RemoveSimpleEquations.c] Error 1
make[3]: Target `omc' not remade because of errors.

I built myself MMC using SMLNJ 110.74 according to the README.

>/usr/local/stow/mmc/bin/rml -v
rml+mmc compiler version 2.5.0 built 2011-06-15 17:10 using MLton or SML.NET or SMLNJ

Sep-25-12 00:49:20
make omc fails due to missing file
Category: Developer

make omc fails due to missing file 3rdParty/FMIL/src/Util/include/JM/jm_xml_callbacks.h

Code:


test -d 3rdParty/FMIL
mkdir -p 3rdParty/FMIL/build
(cd 3rdParty/FMIL/build && test -f Makefile || cmake -D FMILIB_BUILD_SHARED_LIB:Bool=OFF -D FMILIB_BUILD_TESTS:Bool=OFF -D FMILIB_GENERATE_DOXYGEN_DOC:Bool=OFF -DCMAKE_COLOR_MAKEFILE:Bool=OFF -DFMILIB_INSTALL_PREFIX:String=../install .. -G "Unix Makefiles")
test -f 3rdParty/FMIL/build/libfmilib.a || make -C 3rdParty/FMIL/build
make[1]: Entering directory `/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build'
-- will be merging /srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/libfmiimport.a;/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/libjmutils.a;/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/libfmixml.a;/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/libfmizip.a;/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/libfmicapi.a;/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/ExpatEx/./libexpat.a;/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/Config.cmake/Minizip/libminizip.a;/srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/zlib/libz.a
-- outfile location is /srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/build/libfmilib.a
-- Configuring done
CMake Error at Config.cmake/jmutil.cmake:57 (add_library):
  Cannot find source file:

    /srv/scratch1/sources/OPENMODELICA_1_9_0_BETA/3rdParty/FMIL/src/Util/include/JM/jm_xml_callbacks.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
Call Stack (most recent call first):
  CMakeLists.txt:174 (include)

  • Index
  • » Users
  • » fabricesalvaire
  • » Profile
You are here: