#3818 closed defect (fixed)
metis cannot compile on OSX (Xcode 7.3)
Reported by: | RexFuzzle | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build Environment | Version: | v1.10.0-dev-nightly |
Keywords: | osx, metis, source | Cc: |
Description
It seems something has changed in xcode from version 7.3 that causes metis not to compile when compiling omc from source. This problem has been fixed in the brew version of metis (https://github.com/Homebrew/homebrew-science/issues/3461) but is not working in the 3rd party submodule.
Change History (9)
comment:1 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Thanks for that, but it is a bit tricky to reverse the xcode update and I am trying to get it submitted to be a homebrew recipe which is impossible if it does not work with the latest xcode.
comment:4 by , 9 years ago
The usual way to deal with buggy compilers required for a particular package management system is to apply a patch to the sources. The way the metis package in homebrew dealt with it was to force the entire package to be compiled with gcc. Something you probably don't want to do for OMC (although it possibly works). And you can't really send the configure script two different compiler names.
comment:6 by , 9 years ago
I found: https://gitlab.nektar.info/nektar/nektar/commit/aaf3f280277eaf77034d98eb78aab72ada90955a and made a smilar adaption for OM (the limit that patch sets did not work for me though):
https://github.com/OpenModelica/OMCompiler-3rdParty/pull/6/files
comment:7 by , 9 years ago
Component: | Installation program → Build Environment |
---|---|
Milestone: | Future → 1.10.0 |
Resolution: | → fixed |
Status: | assigned → closed |
comment:8 by , 9 years ago
The fix proposed in the link from the earlier bug
In the earlier ticket https://trac.openmodelica.org/OpenModelica/ticket/3803 there was a link to this https://github.com/Homebrew/homebrew-science/issues/3461 where the proposed fix was a change to reduce MAX_JBUFS but that is not something that I have worked with at all personally.
So it seems their "fix" is to not use clang as the compiler for metis because the compiler is bad. So don't install XCode 7.3 since it is broken (ideally, bug Apple for a service pack).