[MacPorts] #66948: OpenBLAS @0.3.21_3: does not build universal on Apple Silicon Macs

MacPorts noreply at macports.org
Sun Jun 18 02:13:56 UTC 2023


#66948: OpenBLAS @0.3.21_3: does not build universal on Apple Silicon Macs
-----------------------+-------------------------
  Reporter:  kencu     |      Owner:  NicosPavlov
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  arm64
      Port:  openblas  |
-----------------------+-------------------------

Comment (by kencu):

 Oh oh -- it looks like our universal build of gcc12 arm64/x86_64 is not
 actually universal at all.

 At least, as far as I can see, the arm64 build of gcc12 has nothing x86_64
 in it:

 {{{
 % port -v installed | grep gcc
   gcc12 @12.3.0_0+stdlib_flag+universal (active)
 requested_variants='+universal' platform='darwin 22' archs='arm64 x86_64'
 date='2023-06-17T08:32:19-0700'
   gcc12-libcxx @12.3.0_0+clang14 (active) requested_variants=''
 platform='darwin 22' archs='noarch' date='2023-06-17T07:46:36-0700'
   gcc_select @0.1_10 (active) requested_variants='' platform='darwin 22'
 archs='noarch' date='2023-06-17T07:46:37-0700'
   libgcc @6.0_0+universal (active) requested_variants='+universal'
 platform='darwin 22' archs='arm64 x86_64' date='2023-06-17T08:11:23-0700'
   libgcc12 @12.3.0_0+stdlib_flag+universal (active)
 requested_variants='+universal' platform='darwin 22' archs='arm64 x86_64'
 date='2023-06-17T08:11:14-0700'
 }}}

 {{{
 % port contents gcc12 | grep x86_64
 }}}

 {{{
 % port contents gcc12 | grep bin/ | xargs file
 /opt/local/bin/arm64-apple-darwin22-c++-mp-12:        Mach-O 64-bit
 executable arm64
 /opt/local/bin/arm64-apple-darwin22-g++-mp-12:        Mach-O 64-bit
 executable arm64
 /opt/local/bin/arm64-apple-darwin22-gcc-12.3.0:       Mach-O 64-bit
 executable arm64
 /opt/local/bin/arm64-apple-darwin22-gcc-ar-mp-12:     Mach-O 64-bit
 executable arm64
 /opt/local/bin/arm64-apple-darwin22-gcc-mp-12:        Mach-O 64-bit
 executable arm64
 /opt/local/bin/arm64-apple-darwin22-gcc-nm-mp-12:     Mach-O 64-bit
 executable arm64
 /opt/local/bin/arm64-apple-darwin22-gcc-ranlib-mp-12: Mach-O 64-bit
 executable arm64
 /opt/local/bin/arm64-apple-darwin22-gfortran-mp-12:   Mach-O 64-bit
 executable arm64
 /opt/local/bin/c++-mp-12:                             Mach-O 64-bit
 executable arm64
 /opt/local/bin/cpp-mp-12:                             Mach-O 64-bit
 executable arm64
 /opt/local/bin/g++-mp-12:                             Mach-O 64-bit
 executable arm64
 /opt/local/bin/gcc-ar-mp-12:                          Mach-O 64-bit
 executable arm64
 /opt/local/bin/gcc-mp-12:                             Mach-O 64-bit
 executable arm64
 /opt/local/bin/gcc-nm-mp-12:                          Mach-O 64-bit
 executable arm64
 /opt/local/bin/gcc-ranlib-mp-12:                      Mach-O 64-bit
 executable arm64
 /opt/local/bin/gcov-dump-mp-12:                       Mach-O 64-bit
 executable arm64
 /opt/local/bin/gcov-mp-12:                            Mach-O 64-bit
 executable arm64
 /opt/local/bin/gcov-tool-mp-12:                       Mach-O 64-bit
 executable arm64
 /opt/local/bin/gfortran-mp-12:                        Mach-O 64-bit
 executable arm64
 /opt/local/bin/lto-dump-mp-12:                        Mach-O 64-bit
 executable arm64
 }}}

 and neither is libgcc12:

 {{{
 % port contents libgcc12 | grep dylib | xargs file
 /opt/local/lib/libgcc/libatomic.1.dylib:   Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libatomic.dylib:     Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libgcc_s.1.1.dylib:  Mach-O universal binary with 1
 architecture: [arm64:Mach-O 64-bit dynamically linked shared library
 arm64]
 /opt/local/lib/libgcc/libgcc_s.1.1.dylib (for architecture arm64):
 Mach-O 64-bit dynamically linked shared library arm64
 /opt/local/lib/libgcc/libgcc_s.dylib:      Mach-O universal binary with 1
 architecture: [arm64:Mach-O 64-bit dynamically linked shared library
 arm64]
 /opt/local/lib/libgcc/libgcc_s.dylib (for architecture arm64):  Mach-O
 64-bit dynamically linked shared library arm64
 /opt/local/lib/libgcc/libgfortran.5.dylib: Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libgfortran.dylib:   Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libgomp.1.dylib:     Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libgomp.dylib:       Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libitm.1.dylib:      Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libitm.dylib:        Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libobjc-gnu.4.dylib: Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libobjc-gnu.dylib:   Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libquadmath.0.dylib: Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libquadmath.dylib:   Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libssp.0.dylib:      Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libssp.dylib:        Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libstdc++.6.dylib:   Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libgcc/libstdc++.dylib:     Mach-O 64-bit dynamically
 linked shared library arm64
 /opt/local/lib/libstdc++.6.dylib:          Mach-O 64-bit dynamically
 linked shared library arm64
 }}}

 so someone has some work to do.

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


More information about the macports-tickets mailing list