[MacPorts] #64390: Possible to build ports on 10.6.8 as universal (x86_64 + ppc64) after restoring PPC assembler?

MacPorts noreply at macports.org
Thu Jan 13 03:55:52 UTC 2022


#64390: Possible to build ports on 10.6.8 as universal (x86_64 + ppc64) after
restoring PPC assembler?
-----------------------------+--------------------
  Reporter:  barracuda156    |      Owner:  (none)
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  base            |    Version:  2.7.1
Resolution:                  |   Keywords:
      Port:  powerpc, ppc64  |
-----------------------------+--------------------

Comment (by barracuda156):

 Replying to [comment:1 ryandesign]:

 Thank you!

 I have been able to build a port for x86_64 + ppc now:


 {{{
 svacchanda$ port -v installed libffi
 The following ports are currently installed:
   libffi @3.4.2_2+universal (active) requested_variants='+universal'
 platform='darwin 10' archs='ppc x86_64' date='2022-01-13T11:49:20+0800'
 }}}

 The problematic part is forcing Apple `gcc-4.2` in place of default LLVM.

 This version works:


 {{{
 svacchanda$ /usr/bin/gcc-4.2 -v
 Using built-in specs.
 Target: i686-apple-darwin10
 Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-
 checking --enable-werror --prefix=/usr --mandir=/share/man --enable-
 languages=c,objc,c++,obj-c++ --program-transform-
 name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-
 darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-
 darwin10 --target=i686-apple-darwin10 --with-gxx-include-
 dir=/include/c++/4.2.1
 Thread model: posix
 gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
 }}}

 This version, which is a default, does not:


 {{{
 svacchanda$ gcc -v
 Using built-in specs.
 Target: i686-apple-darwin10
 Configured with:
 /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/src/configure --disable-
 checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2
 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-
 prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-
 slibdir=/usr/lib --build=i686-apple-darwin10 --enable-
 llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/dst-
 llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin10-
 --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-
 include-dir=/usr/include/c++/4.2.1
 Thread model: posix
 gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
 }}}

 Using `compiler.blacklist-append llvm-4.2` in port file did not help. So
 what I did is: `sudo port -v install libffi +universal
 configure.compiler=gcc-4.2`

 Can I make a global setting enforcing Apple `gcc-4.2` (not llvm-4.2), and
 perhaps specifically for ppc/ppc64, and not for x86_64?

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


More information about the macports-tickets mailing list