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

Unable to install openmodelica-devel

Unable to install openmodelica-devel

After several weeks, i decided to update my running openmodelica-devel install. I am on osX 10.6 with macports 2.04. (Openmodelica package make some error when executing the simulation: ld: duplicate symbol ___inline_isinff already detailed in a bug report)
I get errors when trying to install openmodelica-devel:
- first i got a _globaljmpbuf error, so i uninstall macports and i make a fresh macports 2.04 install.
- i have now the folowwing error (last lines of the generated main.log):

:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_11448/OMShell/OMShellGUI'
:info:build /opt/local/bin/g++-mp-4.4 -headerpad_max_install_names  -Xarch_x86_64 -mmacosx-version-min=10.6 -o ../bin/OMShell.app/Contents/MacOS/OMShell commandcompletion.o omc_communication.o omc_communicator.o omcinteractiveenvironment.o oms.o main.o moc_commandcompletion.o moc_omc_communicator.o moc_oms.o qrc_oms.o     /opt/local/lib/libomniORB4.a /opt/local/lib/libomnithread.a -lpthread -L/opt/local/lib -lQtXml -lQtGui -lQtCore
:info:build g++-mp-4.4: unrecognized option '-Xarch_x86_64'
:info:build ld: can't write output file: ../bin/OMShell.app/Contents/MacOS/OMShell
:info:build collect2: ld returned 1 exit status
:info:build make[2]: *** [../bin/OMShell.app/Contents/MacOS/OMShell] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_11448/OMShell/OMShellGUI'
:info:build make[1]: *** [OMShell] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_11448/OMShell/OMShellGUI'
:info:build make: *** [omshell] Error 2
:info:build make: *** Waiting for unfinished jobs....
:info:build thread.cpp: In member function 'bool Semaphore::Post()':
:info:build thread.cpp:184: warning: comparison between signed and unsigned integer expressions
:info:build thread.cpp: In member function 'bool Semaphore::Post(unsigned int)':
:info:build thread.cpp:206: warning: comparison between signed and unsigned integer expressions
:info:build thread.cpp:208: warning: comparison between signed and unsigned integer expressions
:info:build ld: can't write output file: SampleClient/client
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [client] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_11448/SimulationRuntime/interactive'
:info:build make: *** [interactive] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_11448'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_11448" && /usr/bin/make -j2 -w all omlibrary " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for openmodelica-devel): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for openmodelica-devel is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log


It seems like macports 2.04 create a new user macports and it makes some problems even if i use sudo to become root.

Re: Unable to install openmodelica-devel

I made the latest build as a binary:
http://build.openmodelica.org/omc/build … -11449.dmg

I think 11448 still had some issues as I had been neglecting OSX builds for so long. But I never saw an error like this. Maybe try "port clean openmodelica-devel"?

Re: Unable to install openmodelica-devel

Thanks, i'll try this binary version! I hope this will solve my problem.

I already made port clean command (each time i got a problem).

Re: Unable to install openmodelica-devel

Unfortunately, it does not work current/sad.

openmodelica is installed in /opt/openmodelica and when i try to use omc i got the following error:
terminate called after throwing an instance of '__gnu_cxx::__concurrence_lock_error'
  what():  __gnu_cxx::__concurrence_lock_error
Abort trap

When i try to launch OMShell i get:
dyld: Library not loaded: /opt/openmodelica/lib/libreadline.6.2.dylib
  Referenced from: /opt/openmodelica/bin/./OMShell-terminal
  Reason: image not found
Trace/BPT trap

With macports i can install package openmodelica, but not openmodelica-devel. In the first case, omc command fails to execute the simulation, but the other steps work well (checkModel, instantiateModel).

Re: Unable to install openmodelica-devel

Hopefully it works with last devel build with default variant: @11454_0+qt

Thanks for all!

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