OpenModelica?

Murray Eisenberg murrayeisenberg at gmail.com
Sat Apr 7 20:13:47 UTC 2018


Indeed, a major hiccup in the installation (which I did _without_ using the +clang variant).

From /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/config.log :

config.status:752: creating Makefile
configure:4318: === configuring in OMCompiler (/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/OMCompiler)
configure:4381: running /bin/sh ./configure --disable-option-checking '--prefix=/opt/local'  '--disable-python-interface' '--disable-modelica3d' '--with-lapack=-llapack -lblas' '--without-omc' '--without-omlibrary' 'OMPCC=/opt/local/bin/gcc-mp-5 -fopenmp -mno-avx' 'GNUCXX=/opt/local/bin/g++-mp-5' '--with-omniORB=/opt/local' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' 'CPPFLAGS=-I/opt/local/include' '--with-ombuilddir=/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/build' --cache-file=/dev/null --srcdir=.
configure:4386: error: ./configure failed for OMCompiler

And from /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log :

:info:configure checking LAPACK/BLAS flags... configure: error: dgesv (LAPACK) linking failed using -llapack -lblas
:info:configure configure: error: ./configure failed for OMCompiler
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6" && ./configure --prefix=/opt/local --disable-python-interface --disable-modelica3d --with-lapack="-llapack -lblas" --without-omc --without-omlibrary OMPCC="/opt/local/bin/gcc-mp-5 -fopenmp -mno-avx" GNUCXX=/opt/local/bin/g++-mp-5 --with-omniORB=/opt/local 
:info:configure Exit code: 1
:error:configure Failed to configure openmodelica-devel, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/config.log
:error:configure Failed to configure openmodelica-devel: configure failure: command execution failed


Would it be appropriate to open a ticket http://trac.macports.org? <http://trac.macports.org/?> (I will post to the forum at openmodeler.org <http://openmodeler.org/>, in any case.)

> On 7 Apr2018, at 4:02 PM, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
> 
> 
> 
>> On Apr 7, 2018, at 12:54 PM, Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> wrote:
>> 
>> Ouch, yes, my disastrous typo in the repository name, sorry. (The first time I tried, without using "sudo su -“, I had copied the “echo rsync” command directly from the https://www.openmodelica.org/download/download-mac <https://www.openmodelica.org/download/download-mac> instructions. But the second time, using "sudo su -“ I just typed the command, clearly a mistake. 
>> 
>> Now the sync with that repository has completed successfully, I’m watching the long installation process proceed.
>> 
> 
> there may be some hiccups in this software yet to be discovered
> 
> I note it tries to link to both -stdlib=libc++ and -stdlib=libstdc++ on the link line, and that just can’t be good…
> 
> /usr/bin/clang++ -shared -Wl,-rpath,'@loader_path/../lib/x86_64-darwin17.5.0/omc/' -install_name @rpath/libomcruntime.dylib -o libomcruntime.dylib Error_omc.o Print_omc.o ErrorMessage.o systemimplmisc.o System_omc.o Lapack_omc.o Settings_omc.o UnitParserExt_omc.o unitparser.o IOStreamExt_omc.o Socket_omc.o ZeroMQ_omc.o getMemorySize.o is_utf8.o ptolemyio_omc.o SimulationResults_omc.o omc_communication.o omc_communication_impl.o Corba_omc.o -L 
> 
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_1.13.0~dev-866-gb1271a6/build/lib/x86_64-darwin17.5.0/omc/" -lOpenModelicaRuntimeC -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64   -lomcgc -lm -lpthread  -lstdc++ -Wl,-undefined -Wl,dynamic_lookup -llpsolve55 -lcolamd  -lzmq  -pipe -Os -stdlib=libc++ -arch x86_64 -stdlib=libstdc++ -std=c++11
> clang: warning: libstdc++ is deprecated; move to libc++ [-Wdeprecated]
> clang: warning: libstdc++ is deprecated; move to libc++ [-Wdeprecated]
> 
> 
> 
> Using any of the compiler variants provided is probably just wrong — if you want /usr/bin/clang++ don’t use any of the them, it appears. The clang variant gives you macports-clang-3.8.
> 
> Also, installing both gcc5 and gcc7 and libgcc6 and libgcc just seems nutty, so I added gcc6 and gcc7 to the fortran variants — but that has nothing to do with the above.
> 
> There are advantages to having your ports in the main repo, and having all of us look them over.
> 
> Ken

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180407/a37450f1/attachment.html>


More information about the macports-users mailing list