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

Mac 10.9 installation error

Mac 10.9 installation error

Hi all,

I have been trying to install openmodelica on my mac. I installed macports, then executed:
sudo port install openmodelica-devel
this runs for a while but then I get the error:
--->  Building openmodelica-devel
Error: org.macports.build for port openmodelica-devel returned: command execution failed
Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port openmodelica-devel failed

This website errors when I try to upload the log so I add the last lines here:

--->  Cleaning dbus
--->  Fetching archive for jpeg
--->  Attempting to fetch jpeg-9_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/jpeg
--->  Attempting to fetch jpeg-9_1.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … s.org/jpeg
--->  Attempting to fetch jpeg-9_1.darwin_13.x86_64.tbz2 from http://packages.macports.org/jpeg
--->  Fetching distfiles for jpeg
--->  Attempting to fetch jpegsrc.v9.tar.gz from http://lil.fr.distfiles.macports.org/jpeg
--->  Attempting to fetch jpegsrc.v9.tar.gz from http://mse.uk.distfiles.macports.org/si … s.org/jpeg
--->  Verifying checksums for jpeg
--->  Extracting jpeg
--->  Applying patches to jpeg
--->  Configuring jpeg
--->  Building jpeg
--->  Staging jpeg into destroot
--->  Installing jpeg @9_1
--->  Activating jpeg @9_1
--->  Cleaning jpeg
--->  Fetching archive for tiff
--->  Attempting to fetch tiff-4.0.3_2.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/tiff
--->  Attempting to fetch tiff-4.0.3_2.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … s.org/tiff
--->  Attempting to fetch tiff-4.0.3_2.darwin_13.x86_64.tbz2 from http://packages.macports.org/tiff
--->  Fetching distfiles for tiff
--->  Attempting to fetch tiff-4.0.3.tar.gz from http://lil.fr.distfiles.macports.org/tiff
--->  Attempting to fetch tiff-4.0.3.tar.gz from http://dl.maptools.org/dl/libtiff/
--->  Attempting to fetch tiff-4.0.3.tar.gz from ftp://ftp.uk.FreeBSD.org/pub/FreeBSD/ports/distfiles/
--->  Verifying checksums for tiff
--->  Extracting tiff
--->  Applying patches to tiff
--->  Configuring tiff
--->  Building tiff
--->  Staging tiff into destroot
--->  Installing tiff @4.0.3_2
--->  Activating tiff @4.0.3_2
--->  Cleaning tiff
--->  Fetching archive for lcms
--->  Attempting to fetch lcms-1.19_5.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/lcms
--->  Attempting to fetch lcms-1.19_5.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … s.org/lcms
--->  Attempting to fetch lcms-1.19_5.darwin_13.x86_64.tbz2 from http://packages.macports.org/lcms
--->  Fetching distfiles for lcms
--->  Attempting to fetch lcms-1.19.tar.gz from http://lil.fr.distfiles.macports.org/lcms
--->  Attempting to fetch lcms-1.19.tar.gz from http://kent.dl.sourceforge.net/lcms
--->  Verifying checksums for lcms
--->  Extracting lcms
--->  Applying patches to lcms
--->  Configuring lcms
--->  Building lcms
--->  Staging lcms into destroot
--->  Installing lcms @1.19_5
--->  Activating lcms @1.19_5
--->  Cleaning lcms
--->  Fetching archive for libmng
--->  Attempting to fetch libmng-1.0.10_3.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libmng
--->  Attempting to fetch libmng-1.0.10_3.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … org/libmng
--->  Attempting to fetch libmng-1.0.10_3.darwin_13.x86_64.tbz2 from http://packages.macports.org/libmng
--->  Fetching distfiles for libmng
--->  Attempting to fetch libmng-1.0.10.tar.gz from http://lil.fr.distfiles.macports.org/libmng
--->  Attempting to fetch libmng-1.0.10.tar.gz from http://kent.dl.sourceforge.net/project/ … vel/1.0.10
--->  Verifying checksums for libmng
--->  Extracting libmng
--->  Applying patches to libmng
--->  Configuring libmng
--->  Building libmng
--->  Staging libmng into destroot
--->  Installing libmng @1.0.10_3
--->  Activating libmng @1.0.10_3
--->  Cleaning libmng
--->  Fetching archive for libpng
--->  Attempting to fetch libpng-1.5.17_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libpng
--->  Attempting to fetch libpng-1.5.17_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … org/libpng
--->  Attempting to fetch libpng-1.5.17_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/libpng
--->  Fetching distfiles for libpng
--->  Attempting to fetch libpng-1.5.17.tar.xz from http://lil.fr.distfiles.macports.org/libpng
--->  Attempting to fetch libpng-1.5.17.tar.xz from http://kent.dl.sourceforge.net/project/ … g15/1.5.17
--->  Verifying checksums for libpng
--->  Extracting libpng
--->  Configuring libpng
--->  Building libpng
--->  Staging libpng into destroot
--->  Installing libpng @1.5.17_0
--->  Activating libpng @1.5.17_0
--->  Cleaning libpng
--->  Fetching archive for qt4-mac
--->  Attempting to fetch qt4-mac-4.8.5_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/qt4-mac
--->  Attempting to fetch qt4-mac-4.8.5_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … rg/qt4-mac
--->  Attempting to fetch qt4-mac-4.8.5_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/qt4-mac
--->  Fetching distfiles for qt4-mac
--->  Attempting to fetch qt-everywhere-opensource-src-4.8.5.tar.gz from http://lil.fr.distfiles.macports.org/qt4-mac
--->  Attempting to fetch qt-everywhere-opensource-src-4.8.5.tar.gz from http://mse.uk.distfiles.macports.org/si … rg/qt4-mac
--->  Attempting to fetch libWebKitSystemInterfaceMavericks.a from http://lil.fr.distfiles.macports.org/qt4-mac
--->  Attempting to fetch libWebKitSystemInterfaceMavericks.a from http://mse.uk.distfiles.macports.org/si … rg/qt4-mac
--->  Verifying checksums for qt4-mac
--->  Extracting qt4-mac
--->  Applying patches to qt4-mac
--->  Configuring qt4-mac
--->  Building qt4-mac
--->  Staging qt4-mac into destroot
--->  Installing qt4-mac @4.8.5_0
--->  Activating qt4-mac @4.8.5_0
NOTE: Qt database plugins for mysql55, postgresql91, and sqlite2 are NOT installed by this port; they are installed by qt4-mac-*-plugin instead.
--->  Cleaning qt4-mac
--->  Fetching archive for qwt52
--->  Attempting to fetch qwt52-5.2.3_0+qt4.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/qwt52
--->  Attempting to fetch qwt52-5.2.3_0+qt4.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … .org/qwt52
--->  Attempting to fetch qwt52-5.2.3_0+qt4.darwin_13.x86_64.tbz2 from http://packages.macports.org/qwt52
--->  Fetching distfiles for qwt52
--->  Attempting to fetch qwt-5.2.3.tar.bz2 from http://lil.fr.distfiles.macports.org/qwt
--->  Attempting to fetch qwt-5.2.3.tar.bz2 from http://kent.dl.sourceforge.net/qwt
--->  Verifying checksums for qwt52
--->  Extracting qwt52
--->  Applying patches to qwt52
--->  Configuring qwt52
--->  Building qwt52
--->  Staging qwt52 into destroot
--->  Installing qwt52 @5.2.3_0+qt4
--->  Activating qwt52 @5.2.3_0+qt4
--->  Cleaning qwt52
--->  Fetching archive for openmodelica-devel
--->  Attempting to fetch openmodelica-devel-18153_0+qt.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/openmodelica-devel
--->  Attempting to fetch openmodelica-devel-18153_0+qt.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit … lica-devel
--->  Attempting to fetch openmodelica-devel-18153_0+qt.darwin_13.x86_64.tbz2 from http://packages.macports.org/openmodelica-devel
--->  Fetching distfiles for openmodelica-devel
--->  Attempting to fetch openmodelica_18153.orig.tar.gz from http://lil.fr.distfiles.macports.org/openmodelica-devel
--->  Attempting to fetch openmodelica_18153.orig.tar.gz from http://mse.uk.distfiles.macports.org/si … lica-devel
--->  Attempting to fetch openmodelica_18153.orig.tar.gz from http://fco.it.distfiles.macports.org/mi … lica-devel
--->  Attempting to fetch openmodelica_18153.orig.tar.gz from http://build.openmodelica.org/apt/pool/contrib/
--->  Verifying checksums for openmodelica-devel
--->  Extracting openmodelica-devel
--->  Configuring openmodelica-devel
--->  Building openmodelica-devel
Error: org.macports.build for port openmodelica-devel returned: command execution failed
Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port openmodelica-devel failed
macbookpro-03e6% vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
macbookpro-03e6% vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
macbookpro-03e6% openmodelica
zsh: command not found: openmodelica
macbookpro-03e6% vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
macbookpro-03e6% sudo port install openmodelica-devel configure.compiler=macports-gcc-4.4
Password:
Error: port lookup failed: too many nested evaluations (infinite loop?)
Error: Unable to execute port: upgrade omniorb failed
macbookpro-03e6% vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
macbookpro-03e6% sudo port install openmodelica-devel                                                                                                         
Password:
--->  Computing dependencies for openmodelica-devel
--->  Building openmodelica-devel
Error: org.macports.build for port openmodelica-devel returned: command execution failed
Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port openmodelica-devel failed
macbookpro-03e6% vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log

:info:build # Copy the library; not headers (as they are not used by the runtime system)
:info:build cp -Pp 3rdParty/lis-1.4.12/src/.libs/liblis.dylib* build/lib/omc/
: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_18153'
: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_18153'
: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_18153'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18153" && /usr/bin/make -j8 -w all
:info:build Exit code: 2
:error:build org.macports.build for port openmodelica-devel returned: command execution failed
:debug:build Error code: CHILDSTATUS 56640 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for openmodelica-devel: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log



Does anyone have a solution/advice for me?

Thank you!

Re: Mac 10.9 installation error

Post the complete log-file of the last command (to a pastebin or something). The tail of the log is useless.

Re: Mac 10.9 installation error

The complete log:
http://www.tygris.be/main.log

this time the log is for a different command though:
port install openmodelica-devel +clang

Thank you!

Re: Mac 10.9 installation error

This topic seems to have fixed my problem:

http://stackoverflow.com/questions/1962 … -mavericks

more specifically: sudo xcode-select --install

Thanks for the effort!

Re: Mac 10.9 installation error

Oops.. A new error when running:
port install openmodelica-devel +clang

I updated the log file:
http://www.tygris.be/main.log

I also tried: sudo port clean openmodelica-devel

Re: Mac 10.9 installation error

Then don't use the +clang variant. It seems the macports version of clang passes -export_dynamic which the linker does not recognize.

Re: Mac 10.9 installation error

Hi,

I solved it by opening the Xcode app!

Kind regards

Re: Mac 10.9 installation error

I also have problems installing OpenModelica on OS X 10.9, but it seem to be a different problem. This is what I get:

Error: 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_18299/config.log
Error: org.macports.configure for port openmodelica-devel returned: configure failure: command execution failed
Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Here is the full main.log: http://pastebin.com/AQHBkTRg
and here is the full config.log: http://pastebin.com/GNaNV8u3

The failing entry in main.log is this

Code:


:info:configure checking LAPACK/BLAS flags... configure: error: dgesv (LAPACK) linking failed using -llapack -lblas

Re: Mac 10.9 installation error

I have also tried building with +rml argument, but then I get

Code:


:info:configure checking for rml includefiles in /opt/local... configure: error: rml headers not found

even though rml-mmc was detected as a dependency and being built and installed by macports

Update:
Indeed, the rml package does not contain any headers

Code:


[nils@elMaco:~]$ port contents rml-mmc
Port rml-mmc contains:
  /opt/local/bin/rml
  /opt/local/bin/rmlc
  /opt/local/lib/rml.x86-darwin

Re: Mac 10.9 installation error

Did you install the XCode command/line tools and run xcode-select? lapack and blas are included in OSX

Re: Mac 10.9 installation error

Yup, I have the command line tools installed. LAPACK is available here

Code:


/usr/local/lib/liblapack.a
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib

and blas

Code:


/usr/local/lib/libblas.a
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib

Re: Mac 10.9 installation error

I don't have access to any mac right now, but I am pretty sure the system version of lapack and blas are located under /usr/lib/liblapack.dylib... If you have installed broken lapack and blas, you will need to remedy it yourself current/smile
I have added a variant in the Portfile +openblas. That will compile a local lapack/blas for OpenModelica that should work better.

Re: Mac 10.9 installation error

Actually I have /usr/lib/liblapack.dylib and /usr/lib/libblas.dylib
I searched for the libraries using spotlight

Code:


mdfind -name liblapack

and this did not list those files, but I have them

There are 0 guests and 0 other users also viewing this topic