Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#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 Adeel Asghar, 9 years ago

Owner: changed from Adeel Asghar to Martin Sjölund
Status: newassigned

comment:2 by Martin Sjölund, 9 years ago

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).

comment:3 by RexFuzzle, 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 Martin Sjölund, 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:5 by RexFuzzle, 9 years ago

Ok, thank you, will have to try something else.

comment:6 by Martin Sjölund, 9 years ago

comment:7 by Martin Sjölund, 9 years ago

Component: Installation programBuild Environment
Milestone: Future1.10.0
Resolution: fixed
Status: assignedclosed

comment:8 by Adam Dershowitz, 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.

comment:9 by Martin Sjölund, 7 years ago

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.