[MacPorts] #57032: mozjs52 @52.6.0, mozjs60 @60.1.0: Target C compiler target CPU (unknown) does not match --target CPU (powerpc)

MacPorts noreply at macports.org
Sat Sep 11 22:04:58 UTC 2021


#57032: mozjs52 @52.6.0, mozjs60 @60.1.0: Target C compiler target CPU (unknown)
does not match --target CPU (powerpc)
-------------------------------+----------------------
  Reporter:  ballapete         |      Owner:  (none)
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.5.3
Resolution:                    |   Keywords:  powerpc
      Port:  mozjs52, mozjs60  |
-------------------------------+----------------------

Comment (by ballapete):

 I tried to build `mozjs60` on PPC Leopard by adding a line

 {{{
 onfigure.cflags-append -mone-byte-bool
 }}}

 in `Portfile`. Building fails because the processor type seems to be
 unknown:

 {{{
 checking whether cross compiling... no
 checking for the target C compiler... /opt/local/bin/gcc-mp-7
 checking whether the target C compiler can be used... no
 DEBUG: <truncated - see config.log for full output>
 DEBUG: | #elif __linux__
 DEBUG: | %KERNEL "Linux"
 DEBUG: | #elif _WIN32 || __CYGWIN__
 DEBUG: | %KERNEL "WINNT"
 DEBUG: | #elif __NetBSD__
 DEBUG: | %KERNEL "NetBSD"
 DEBUG: | #elif __APPLE__
 DEBUG: | %KERNEL "Darwin"
 DEBUG: | #endif
 DEBUG: | #if _MSC_VER || __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 DEBUG: | %ENDIANNESS "little"
 DEBUG: | #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 DEBUG: | %ENDIANNESS "big"
 DEBUG: | #endif
 DEBUG: Executing: `/opt/local/bin/gcc-mp-7 -std=gnu99 -E
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_mozjs60/mozjs60/work/.tmp/conftest.BnpqsB.c`
 DEBUG: COMPILER = gcc
 DEBUG: VERSION = 7.5.0
 DEBUG: STDC_VERSION = 199901L
 DEBUG: KERNEL = Darwin
 DEBUG: ENDIANNESS = big
 ERROR: Target C compiler target CPU (unknown) does not match --target CPU
 (powerpc)
 }}}

 although `GCC7` defines:

 {{{
 #define __POWERPC__ 1
 #define __PPC 1
 #define __PPC__ 1
 }}}

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


More information about the macports-tickets mailing list