Opened 4 years ago

Closed 4 years ago

#6218 closed defect (duplicate)

OMEdit 1.16.0-2 fails to build

Reported by: Adam Dershowitz Owned by: somebody
Priority: high Milestone: Future
Component: *unknown* Version:
Keywords: Cc:

Description

I'm trying to build openmodelica-stable on a Mac, and it fails to build. I'm getting an error related to a 3rd party library:

:info:build [ 74%] Building C object src/kinsol/CMakeFiles/sundials_kinsol_shared.dir/kinsol_spbcgs.c.o
:info:build cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/sundials/build/src/kinsol" && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -DBUILD_SUNDIALS_LIBRARY -Dsundials_kinsol_shared_EXPORTS -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/build/include/omc/c/suitesparse/Include" -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/sundials/include" -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/sundials/build/include" -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/sundials/src/kinsol/." -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/sundials/src/kinsol/../sundials"  -pipe -Os -arch x86_64 -fno-stack-protector -lm -L /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/build/lib/x86_64-darwin16.3.0/omc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -fPIC   -o CMakeFiles/sundials_kinsol_shared.dir/kinsol_spbcgs.c.o   -c "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/sundials/src/kinsol/kinsol_spbcgs.c"
:info:build  /opt/local/bin/gfortran-mp-5 -I. -I. -I./MUMPS/src -I./MUMPS/libseq -I./MUMPS/include -O3 -pipe -c MUMPS/src/dmumps_part2.F  -fno-common -o .libs/dmumps_part2.o
:info:build clang: warning: -lm: 'linker' input unused
:info:build clang: warning: argument unused during compilation: '-L/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/build/lib/x86_64-darwin16.3.0/omc'
:info:build clang: warning: -lm: 'linker' input unused
:info:build clang: warning: argument unused during compilation: '-L/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/build/lib/x86_64-darwin16.3.0/omc'
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -pipe -Os -arch x86_64 -fno-stack-protector -lm -L /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/build/lib/x86_64-darwin16.3.0/omc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -Wl,-undefined -Wl,dynamic_lookup -compatibility_version 2.0.0 -current_version 2.0.0 -o libsundials_ida.2.0.0.dylib -install_name "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/sundials/build/src/ida/"libsundials_ida.2.dylib CMakeFiles/sundials_ida_shared.dir/ida.c.o CMakeFiles/sundials_ida_shared.dir/ida_io.c.o CMakeFiles/sundials_ida_shared.dir/ida_ic.c.o CMakeFiles/sundials_ida_shared.dir/ida_direct.c.o CMakeFiles/sundials_ida_shared.dir/ida_band.c.o CMakeFiles/sundials_ida_shared.dir/ida_dense.c.o CMakeFiles/sundials_ida_shared.dir/ida_sparse.c.o CMakeFiles/sundials_ida_shared.dir/ida_spils.c.o CMakeFiles/sundials_ida_shared.dir/ida_spbcgs.c.o CMakeFiles/sundials_ida_shared.dir/ida_spgmr.c.o CMakeFiles/sundials_ida_shared.dir/ida_sptfqmr.c.o CMakeFiles/sundials_ida_shared.dir/ida_bbdpre.c.o CMakeFiles/sundials_ida_shared.dir/ida_klu.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_nvector.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_math.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_direct.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_band.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_dense.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_iterative.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_sparse.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_spbcgs.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_spgmr.c.o CMakeFiles/sundials_ida_shared.dir/__/sundials/sundials_sptfqmr.c.o -lklu -lamd -lcolamd -lbtf 
:info:build depbase=`echo pcr_interface.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
:info:build 	/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/clang -DHAVE_CONFIG_H   -I./include -I./include -I/opt/local/include -I/opt/local/include -DLARGE_CONFIG -DTHREAD_LOCAL_ALLOC   -fexceptions -Wall -Wextra -pipe -Os -arch x86_64 -fno-stack-protector -fno-strict-aliasing -MT pcr_interface.lo -MD -MP -MF $depbase.Tpo -c -o pcr_interface.lo pcr_interface.c &&\
:info:build 	mv -f $depbase.Tpo $depbase.Plo
:info:build f951: Fatal Error: Reading module 'dmumps_ooc' at line 1518 column 22: Unexpected EOF
:info:build compilation terminated.
:info:build make[4]: *** [dmumps_part2.lo] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/Ipopt/ThirdParty/Mumps'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/OMCompiler/3rdParty/Ipopt'
:info:build make[2]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_1.11.0~dev.beta2-1-g2284775/build/lib/x86_64-darwin16.3.0/omc/libipopt.la] Error 2
:info:build make[2]: *** Waiting for unfinished jobs....

I've attached the full log as well.
Any suggestions are appreciated.

Thanks,

Attachments (1)

OM_1.16.0~2-g9e481a4.log (10.0 MB ) - added by Adam Dershowitz 4 years ago.

Change History (5)

by Adam Dershowitz, 4 years ago

Attachment: OM_1.16.0~2-g9e481a4.log added

comment:1 by Andreas Heuermann, 4 years ago

Resolution: wontfix
Status: newclosed

Closing this ticket because it is out of date. If it is still relevant please open a new ticket.

comment:2 by Adam Dershowitz, 4 years ago

I'm not sure why this was closed, as it is still an issue. It's clear that OM is unfortunately stopping any support on Mac computers. But, my understanding is that was for versions after 1.16.x.

comment:3 by Andreas Heuermann, 4 years ago

Resolution: wontfix
Status: closedreopened

Sorry, I was closing some tickets that are older than a few years and related to OSX compilation, reopening this ticket.

comment:4 by Andreas Heuermann, 4 years ago

Resolution: duplicate
Status: reopenedclosed

But now that I looked at it, it seems that this is a duplicate of https://trac.openmodelica.org/OpenModelica/ticket/6306 and adpro want's to solve that.

Note: See TracTickets for help on using tickets.