Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#3818 closed defect (fixed)

metis cannot compile on OSX (Xcode 7.3)

Reported by: RexFuzzle Owned by: sjoelund.se
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 Changed 8 years ago by adeas31

  • Owner changed from adeas31 to sjoelund.se
  • Status changed from new to assigned

comment:2 Changed 8 years ago by sjoelund.se

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 Changed 8 years ago by RexFuzzle

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 Changed 8 years ago by sjoelund.se

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 Changed 8 years ago by RexFuzzle

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

comment:6 Changed 8 years ago by sjoelund.se

comment:7 Changed 8 years ago by sjoelund.se

  • Component changed from Installation program to Build Environment
  • Milestone changed from Future to 1.10.0
  • Resolution set to fixed
  • Status changed from assigned to closed

comment:8 Changed 8 years ago by dersh

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 Changed 6 years ago by sjoelund.se

  • Milestone 1.10.0 deleted

Milestone deleted

Note: See TracTickets for help on using tickets.