[MacPorts] #53110: libomp and clang-3.8 fail on Lion

MacPorts noreply at macports.org
Wed Dec 21 21:53:40 CET 2016


#53110: libomp and clang-3.8 fail on Lion
--------------------------------+-------------------
  Reporter:  RobK88             |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.3.5
Resolution:                     |   Keywords:
      Port:  libomp, clang-3.8  |
--------------------------------+-------------------

Comment (by eborisch):

 How's this look for fixing this?

 {{{#!diff
 @@ -67,8 +67,19 @@ if {${subport} ne ${name}} {

  cmake.out_of_source     yes

 -# According to documentation builds with clang >= 3.3
 -compiler.blacklist-append {clang < 500} *gcc*
 +# According to documentation builds with clang >= 3.3, but macports-
 clang-3.x
 +# for x >= 8 depend on this port. Avoid circular dependencies.
 +if {[vercmp $xcodeversion 5.0] >= 0} {
 +    # Use the system compiler and have no extra build deps.
 +    configure.compiler          clang
 +} else {
 +    # Install a clang from MP that we can use to build.
 +    compiler.whitelist          macports-clang-3.7 \
 +                                macports-clang-3.6 \
 +                                macports-clang-3.5 \
 +                                macports-clang-3.4 \
 +                                macports-clang-3.3
 +}

  default_variants        +universal
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53110#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list