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

c++ simulation runtime Installation

c++ simulation runtime Installation

Building the c++ simulation runtime with OpenModelica on Windows by "make -f Makefile.omdev.mingw runtimeCPPinstall" command, stop with following error:

make -f Makefile.omdev.mingw Makefile.sources
/e/OpenModelica.git/build/bin/omc.exe -n=1 MakeSources.mos
"
"
true
"E:/OpenModelica.git/OMCompiler/Compiler/boot"
"E:/OpenModelica.git/OMCompiler/Compiler"
"E:/OpenModelica.git/OMCompiler/Compiler/boot"

""
true
""

mv Makefile.sources.tmp Makefile.sources
mv: cannot stat 'Makefile.sources.tmp': No such file or directory
Makefile.common:143: recipe for target 'Makefile.sources' failed
make[5]: *** [Makefile.sources] Error 1
Makefile.common:22: recipe for target 'generate-files-in-steps' failed
make[4]: *** [generate-files-in-steps] Error 2
Makefile.common:17: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/e/OpenModelica.git/OMCompiler/Compiler/boot'
Makefile.omdev.mingw:454: recipe for target 'omc-bootstrapped' failed
make[2]: *** [omc-bootstrapped] Error 2
make[2]: Leaving directory '/e/OpenModelica.git/OMCompiler'

Is there any idea how to solve it?

Re: c++ simulation runtime Installation

rm /e/OpenModelica.git/build/bin/omc.exe and try again (or do git clean). There was a change to the bootstrapping interface recently, which causes this issue if you have an old omc that you compile through.

Re: c++ simulation runtime Installation

Thanks for your reply. I did it and error changes to:

build/System.o: In function `omc_System_tmpTick':
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/System.c:1029: undefined reference to `SystemImpl_tmpTick'
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/System.c:1029: undefined reference to `SystemImpl_tmpTick'
build/ErrorExt.o: In function `omc_ErrorExt_addMessage':
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:240: undefined reference to `Error_addMessage'
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:240: undefined reference to `Error_addMessage'
build/ErrorExt.o: In function `omc_ErrorExt_updateCurrentComponent':
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:262: undefined reference to `ErrorImpl__updateCurrentComponent'
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:262: undefined reference to `ErrorImpl__updateCurrentComponent'
E:/OpenModelica.git/OMCompiler/Compiler/runtime/libomcruntime-boot.a(Error_omc.boot.o): In function `c_add_message':
E:\OpenModelica.git\OMCompiler\Compiler\runtime/errorext.cpp:393: undefined reference to `omc_Error_getCurrentComponent'
collect2.exe: error: ld returned 1 exit status
Makefile.common:186: recipe for target '/e/OpenModelica.git/build/lib/omc/libOpenModelicaCompiler.dll' failed
make[5]: *** [/e/OpenModelica.git/build/lib/omc/libOpenModelicaCompiler.dll] Error 1
make[5]: Leaving directory '/e/OpenModelica.git/OMCompiler/Compiler/boot'
Makefile.common:59: recipe for target 'bootstrap-from-tarball' failed
make[4]: *** [bootstrap-from-tarball] Error 2
make[4]: Leaving directory '/e/OpenModelica.git/OMCompiler/Compiler/boot'
Makefile.common:14: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/e/OpenModelica.git/OMCompiler/Compiler/boot'
Makefile.omdev.mingw:454: recipe for target 'omc-bootstrapped' failed
make[2]: *** [omc-bootstrapped] Error 2
make[2]: Leaving directory '/e/OpenModelica.git/OMCompiler'

real    5m43.289s
user    0m5.099s
sys     0m13.771s
Makefile.omdev.mingw:256: recipe for target 'omc' failed
make[1]: *** [omc] Error 2
make[1]: Leaving directory '/e/OpenModelica.git/OMCompiler'
Makefile.omdev.mingw:187: recipe for target 'runtimeCPPinstall' failed
make: *** [runtimeCPPinstall] Error 2

Re: c++ simulation runtime Installation

Did you do a git clean of all repositories? The Windows build is working, so a git clean should solve the problem...

Re: c++ simulation runtime Installation

When I clean whole repository, build folder is gone, and by running "make -f Makefile.omdev.mingw runtimeCPPinstall" again, it stops with this error:

-----------------------------------------------------------------------------------------------------------------------------------------
make -C OMCompiler -f Makefile.omdev.mingw OMBUILDDIR=/e/OpenModelica.git/build                                                                                                                 BUILDTYPE=Debug runtimeCPPinstall
make[1]: Entering directory '/e/OpenModelica.git/OMCompiler'
test -d 3rdParty/CMinpack
mkdir -p 3rdParty/CMinpack/build
(cd 3rdParty/CMinpack/build && test -f Makefile || CC="gcc" CXX="g++" CFLAGS="-g -O2 -falign-functions" CPPFLAGS="" /c/OMDEV/bin/cmake/bin/cmake -DCMAKE_VERBOSE_MAKEFILE:Bool=ON -D CMAKE_AR:String="ar" -DCMAKE_COLOR_MAKEFILE:Bool=OFF -DBUIL                                                                                                                D_SHARED_LIBS:Bool=OFF -DCMAKE_INSTALL_PREFIX:String=../install -DCMINPACK_LIB_I                                                                                                                NSTALL_DIR:String=../install .. -G "MSYS Makefiles")
test -f 3rdParty/CMinpack/build/libcminpack.a || make -C 3rdParty/CMinpack/build
test ! `uname` = Darwin || install_name_tool -id @rpath/libcminpack.a 3rdParty/C                                                                                                                Minpack/build/libcminpack.a
# copy dll/so to lib/omc/ folders
(rm -f /e/OpenModelica.git/build/lib/omc/libcminpack.a*)
(cp -af 3rdParty/CMinpack/build/libcminpack.a* /e/OpenModelica.git/build/lib/omc)
cp: cannot create regular file '/e/OpenModelica.git/build/lib/omc': No such file or directory
Makefile.common:237: recipe for target 'CMinpack' failed
make[1]: *** [CMinpack] Error 1
make[1]: Leaving directory '/e/OpenModelica.git/OMCompiler'
Makefile.omdev.mingw:187: recipe for target 'runtimeCPPinstall' failed
make: *** [runtimeCPPinstall] Error 2

--------------------------------------------------------------------------------------------------------------------------------------------------

For making build folder, I run "make -f Makefile.omdev.mingw -j8" but it also stops with following error:

build/System.o: In function `omc_System_tmpTick':
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/System.c:1029: undefined refe to `SystemImpl_tmpTick'
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/System.c:1029: undefined reference to `SystemImpl_tmpTick'
build/ErrorExt.o: In function `omc_ErrorExt_addMessage':
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:240: undefined reference to `Error_addMessage'
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:240: undefined reference to `Error_addMessage'
build/ErrorExt.o: In function `omc_ErrorExt_updateCurrentComponent':
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:262: undefined reference to `ErrorImpl__updateCurrentComponent'
E:\OpenModelica.git\OMCompiler\Compiler\boot/build/ErrorExt.c:262: undefined reference to `ErrorImpl__updateCurrentComponent'
E:/OpenModelica.git/OMCompiler/Compiler/runtime/libomcruntime-boot.a(Error_omc.boot.o): In function `c_add_message':
E:\OpenModelica.git\OMCompiler\Compiler\runtime/errorext.cpp:393: undefined reference to `omc_Error_getCurrentComponent'
collect2.exe: error: ld returned 1 exit status
Makefile.common:186: recipe for target '/e/OpenModelica.git/build/lib/omc/libOpe                                                                                                                nModelicaCompiler.dll' failed
make[5]: *** [/e/OpenModelica.git/build/lib/omc/libOpenModelicaCompiler.dll] Error 1
make[5]: Leaving directory '/e/OpenModelica.git/OMCompiler/Compiler/boot'
Makefile.common:59: recipe for target 'bootstrap-from-tarball' failed
make[4]: *** [bootstrap-from-tarball] Error 2
make[4]: Leaving directory '/e/OpenModelica.git/OMCompiler/Compiler/boot'
Makefile.common:14: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/e/OpenModelica.git/OMCompiler/Compiler/boot'
Makefile.omdev.mingw:454: recipe for target 'omc-bootstrapped' failed
make[2]: *** [omc-bootstrapped] Error 2
make[2]: Leaving directory '/e/OpenModelica.git/OMCompiler'

real    1m32.723s
user    0m5.623s
sys     0m17.906s
Makefile.omdev.mingw:256: recipe for target 'omc' failed
make[1]: *** [omc] Error 2
make[1]: Leaving directory '/e/OpenModelica.git/OMCompiler'
Makefile.omdev.mingw:37: recipe for target 'omc' failed
make: *** [omc] Error 2

Re: c++ simulation runtime Installation

After calling gitclean several times, It works. Thank you

Re: c++ simulation runtime Installation

I am running the cpp runtime test with, cd OpenModelica\testsuite\openmodelica\cppruntime and make command, but OMedit test is not working. Is there any idea to resolve it?

Equation mismatch: omc-diff says:
Failed '<' '"'
Line 7: Text differs:
expected: messages = "<message stream=\"other\"
type=\"warning\" text=\"Warning: unrecognized command line
options
got:      messages = ""

== 1 out of 1 tests failed
[openmodelica/cppruntime/omedit, time: 21]
make[1]: Leaving directory
'/e/OpenModelica.git/testsuite/openmodelica/cppruntime/omedit'

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