[MacPorts] #64952: Can Macports base be built as universal? configure: error: C preprocessor "/lib/cpp" fails sanity check

MacPorts noreply at macports.org
Fri Apr 8 14:48:54 UTC 2022


#64952: Can Macports base be built as universal? configure: error: C preprocessor
"/lib/cpp" fails sanity check
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  base          |    Version:  2.7.2
Resolution:  invalid       |   Keywords:  powerpc, leopard, ppc64
      Port:                |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:1 ryandesign]:
 > Yes, MacPorts installers have always (since the introduction of Macs
 witth Intel processors) been built universal.
 >
 > Instead of specifying `-arch` flags manually within `CC` and `CXX`, use
 the configure argument `--with-universal-archs="ppc ppc64"`.
 >
 > If that fails, attach the config.log so we can see why it failed.

 Apparently it fails to produce universal binaries. I configured as
 `./configure --with-universal-archs="ppc ppc64" --with-
 curlprefix=/opt/bootstrap`, compiled, and then checked a couple of
 resulting ones:


 {{{
 36-109:MacPorts-2.7.2 svacchanda$ file
 /opt/local/libexec/macports/bin/tclsh8.5
 /opt/local/libexec/macports/bin/tclsh8.5: Mach-O executable ppc
 36-109:MacPorts-2.7.2 svacchanda$ lipo -info
 /opt/local/libexec/macports/lib/libtclstub8.5.a
 input file /opt/local/libexec/macports/lib/libtclstub8.5.a is not a fat
 file
 Non-fat file: /opt/local/libexec/macports/lib/libtclstub8.5.a is
 architecture: ppc7400
 }}}

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


More information about the macports-tickets mailing list