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

MacPorts noreply at macports.org
Wed Apr 6 11:52:46 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:  new
 Priority:  Normal                   |  Milestone:
Component:  base                     |    Version:  2.7.2
 Keywords:  powerpc, leopard, ppc64  |       Port:
-------------------------------------+--------------------
 I tried configuring with `./configure --prefix=/opt/bootstrap --with-
 applications-dir=/opt/bootstrap/Applications --without-startupitems
 CC='gcc-4.2 -arch ppc -arch ppc64' CXX='g++-4.2 -arch ppc -arch ppc64'` on
 Leopard, and that failed:

 {{{
 configure: running /bin/sh ./configure '--cache-file=/dev/null'
 '--disable-option-checking'  '--prefix=/opt/bootstrap/libexec/macports'
 '--enable-threads' '--without-startupitems' 'CC=gcc-4.2 -arch ppc -arch
 ppc64' 'CXX=g++-4.2 -arch ppc -arch ppc64' '--srcdir=.' 'CC=gcc-4.2 -arch
 ppc -arch ppc64 -std=gnu99' in vendor/tcl/unix
 checking whether to use symlinks for manpages... no
 checking whether to compress the manpages... no
 checking whether to add a package name suffix for the manpages... no
 checking for gcc... gcc-4.2 -arch ppc -arch ppc64 -std=gnu99
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc-4.2 -arch ppc -arch ppc64 -std=gnu99 accepts -g...
 yes
 checking for gcc-4.2 -arch ppc -arch ppc64 -std=gnu99 option to accept
 ANSI C... none needed
 checking for inline... inline
 checking how to run the C preprocessor... /lib/cpp
 configure: error: C preprocessor "/lib/cpp" fails sanity check
 See `config.log' for more details.
 configure: error: configure failed for vendor/tcl/unix
 }}}

 If it cannot work, not a big deal, but if there is a correct way to
 configure it, please let me know.

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


More information about the macports-tickets mailing list