[MacPorts] #58646: gcc8 @8.3.0_4 +universal: does not build/install universal libraries

MacPorts noreply at macports.org
Wed Jun 26 19:36:55 UTC 2019


#58646: gcc8 @8.3.0_4 +universal: does not build/install universal libraries
------------------------+--------------------
  Reporter:  Ionic      |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  gcc8 gcc9  |
------------------------+--------------------

Comment (by Ionic):

 Hmm, yeah, that should be how it works. I did take a look at the logfile
 again and can see gcc8, libgcc, libgcc8 and libgcc9 being added as
 dependencies (like you said transitively). I can't see any arch check
 being carried out in the log file though.

 I ran `port -Nsvtd install OpenBLAS +universal+gcc9+lapack` to get a debug
 log. Base is doing... let's say... interesting things there.

 For instance, this:
 {{{
 DEBUG: epoch: in tree: 3 installed: 3
 DEBUG: libgcc 2.0_1 exists in the ports tree
 DEBUG: libgcc 2.0_1  is the latest installed
 DEBUG: libgcc 2.0_1  is active
 DEBUG: Merging existing variants '' into variants
 DEBUG: new fully merged portvariants: a52 + universal - mng + x11 +
 pulseaudio - faac + cups + mencoder_extras + sdl + xvid + esd + x264 +
 caca + fribidi + twolame + lirc + dv + aa + smb + dts + ipv6 + speex + osd
 +
 DEBUG: Changing to port directory:
 /opt/local/var/macports/sources/macports.rsync.ionic.de/release/ports/lang/libgcc
 DEBUG: OS darwin/13.4.0 (macOS 10.9) arch i386
 DEBUG: Sourcing PortGroup select 1.0 from
 /opt/local/var/macports/sources/macports.rsync.ionic.de/release/ports/_resources/port1.0/group/select-1.0.tcl
 DEBUG: universal_variant is false, so not adding the default universal
 variant
 DEBUG: Requested variant +a52 is not provided by port libgcc.
 DEBUG: Requested variant -universal is not provided by port libgcc.
 DEBUG: Requested variant +mng is not provided by port libgcc.
 DEBUG: Requested variant +x11 is not provided by port libgcc.
 DEBUG: Requested variant -pulseaudio is not provided by port libgcc.
 DEBUG: Requested variant +faac is not provided by port libgcc.
 DEBUG: Requested variant +cups is not provided by port libgcc.
 DEBUG: Requested variant +mencoder_extras is not provided by port libgcc.
 DEBUG: Requested variant +sdl is not provided by port libgcc.
 DEBUG: Requested variant +xvid is not provided by port libgcc.
 DEBUG: Requested variant +esd is not provided by port libgcc.
 DEBUG: Requested variant +x264 is not provided by port libgcc.
 DEBUG: Requested variant +caca is not provided by port libgcc.
 DEBUG: Requested variant +twolame is not provided by port libgcc.
 DEBUG: Requested variant +fribidi is not provided by port libgcc.
 DEBUG: Requested variant +smb is not provided by port libgcc.
 DEBUG: Requested variant +aa is not provided by port libgcc.
 DEBUG: Requested variant +dv is not provided by port libgcc.
 DEBUG: Requested variant +lirc is not provided by port libgcc.
 DEBUG: Requested variant +dts is not provided by port libgcc.
 DEBUG: Requested variant +speex is not provided by port libgcc.
 DEBUG: Requested variant +ipv6 is not provided by port libgcc.
 DEBUG: Requested variant +osd is not provided by port libgcc.
 DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
 DEBUG: Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Running callback portstartupitem::add_notes
 DEBUG: Finished running callback portstartupitem::add_notes
 DEBUG: No need to upgrade! libgcc 2.0_1 >= libgcc 2.0_1
 }}}

 or this:

 {{{
 DEBUG: epoch: in tree: 2 installed: 2
 DEBUG: libgcc9 9.1.0_2 exists in the ports tree
 DEBUG: libgcc9 9.1.0_2  is the latest installed
 DEBUG: libgcc9 9.1.0_2  is active
 DEBUG: Merging existing variants '-universal' into variants
 DEBUG: new fully merged portvariants: a52 + universal - mng + x11 +
 pulseaudio - faac + cups + mencoder_extras + sdl + xvid + esd + x264 +
 caca + fribidi + twolame + lirc + dv + aa + smb + dts + ipv6 + speex + osd
 +
 }}}

 `-universal` seems to come directly from cctools:

 {{{
 DEBUG: epoch: in tree: 0 installed: 0
 DEBUG: cctools 921_2 exists in the ports tree
 DEBUG: cctools 921_2 +llvm37 is the latest installed
 DEBUG: cctools 921_2 +llvm37 is active
 DEBUG: Merging existing variants '+llvm37-universal' into variants
 DEBUG: new fully merged portvariants: a52 + universal - mng + x11 +
 pulseaudio - faac + cups + mencoder_extras + sdl + xvid + x264 + esd +
 caca + fribidi + twolame + lirc + dv + aa + smb + dts + ipv6 + speex +
 llvm37 + osd +
 }}}

 But that's not how variant mangling is supposed to work... `+universal`
 should be getting passed down to all port dependencies (and ports be
 rebuilt). Maybe base master is broken?

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


More information about the macports-tickets mailing list