[MacPorts] #64116: libarchive @3.5.2: ld: library not found for -lgomp

MacPorts noreply at macports.org
Fri Dec 3 05:04:56 UTC 2021


#64116: libarchive @3.5.2: ld: library not found for -lgomp
-------------------------+--------------------------
  Reporter:  catap       |      Owner:  tobypeterson
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:  snowleopard
      Port:  libarchive  |
-------------------------+--------------------------

Comment (by kencu):

 well, I should look more before I comment I guess.

 It is trying to build with

 {{{
 /opt/local/bin/clang-mp-3.7
 }}}

 and {{{clang-3.7}}} does support the {{{-fopenmp}}} flag, but most likely
 it only does it correctly when building with {{{-stdlib=libc++}}} if the
 {{{openmp}}} variant is selected, which we do not do by default.

 https://github.com/macports/macports-
 ports/blob/f2ec6c01a76b9dc42576908cc812247a6de10399/lang/llvm-3.7/Portfile#L449

 So clang-3.7 is therefore most likely trying to support openmp but doing
 it wrong, it appears, and {{{clang-3.7}}} is probably passing the
 {{{-lgomp}}} itself internally, if we were to dig in a bit on what it does
 when the openmp variant is not selected, vs what clang-3.7 does when the
 openmp variant is selected.

 In any event, the right thing to do is probably to force openmp off for
 the build unless it is (someday) specifically turned on by some general
 openmp fix in MacPorts.

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


More information about the macports-tickets mailing list