[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 Aug 24 00:35:23 UTC 2019


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

Comment (by khepler):

 For what it's worth, the pre-processor macros to be checked are defined on
 lines 80 and 81 of
 `mozjs-52.6.0gnome1/python/mozbuild/mozbuild/configure/constants.py`:
 {{{
  71: # The order of those checks matter
  72: CPU_preprocessor_checks = OrderedDict((
  73:     ('x86', '__i386__ || _M_IX86'),
  74:     ('x86_64', '__x86_64__ || _M_X64'),
  75:     ('arm', '__arm__ || _M_ARM'),
  76:     ('aarch64', '__aarch64__'),
  77:     ('ia64', '__ia64__'),
  78:     ('s390x', '__s390x__'),
  79:     ('s390', '__s390__'),
  80:     ('ppc64', '__powerpc64__'),
  81:     ('ppc', '__powerpc__'),
  82:     ('Alpha', '__alpha__'),
  83:     ('hppa', '__hppa__'),
  84:     ('sparc64', '__sparc__ && __arch64__'),
  85:     ('sparc', '__sparc__'),
  86:     ('mips64', '__mips64'),
  87:     ('mips32', '__mips__'),
  88: ))
 }}}

 Setting the `'ppc64'` and `'ppc'` values to `'__powerpc64__ ||
 __POWERPC64__'` and `'__powerpc__ || __POWERPC__'` allows the configure
 script to succeed, but the build later fails trying to pass
 `-stdlib=libc++` to g++-mp-6:
 {{{
 ...
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/m
 ozjs52/work/mozjs-52.6.0gnome1/js/src/obj'
 make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/m
 ozjs52/work/mozjs-52.6.0gnome1/js/src/obj/mozglue/misc'
 mkdir -p '.deps/'
 make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/m
 ozjs52/work/mozjs-52.6.0gnome1/js/src/obj/memory/mozalloc'
 mkdir -p '.deps/'
 /opt/local/bin/g++-mp-6 -std=gnu++11 -o StackWalk.o -c
 -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG=1 -DTRIMMED=1
 -DIMPL_MFBT -DMOZ_HA
 S_MOZGLUE
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/work/mozjs
 -52.6.0gnome1/mozglue/misc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/m
 ozjs52/work/mozjs-52.6.0gnome1/js/src/obj/mozglue/misc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_
 tarballs_ports_lang_mozjs52/mozjs52/work/mozjs-52.6.0gnome1/js/src/obj/dist/include
 -I/opt/local/include/nspr        -fPIC  -DMOZILLA_CLIENT -incl
 ude
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/work/mozjs-52.6.0g
 nome1/js/src/obj/js/src/js-confdefs.h -MD -MP -MF .deps/StackWalk.o.pp
 -I/opt/local/include -Wall -Wc++11-compat -Wempty-body -Wignored-
 qualifiers
 -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits
 -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++14-compat
 -Wno-erro
 r=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-
 bounds -fno-lifetime-dse -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -m32 -fno-c
 ommon -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread
 -pipe  -g -O3 -fno-stack-protector -fomit-frame-pointer
 /opt/local/var/m
 acports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/work/mozjs-52.6.0gnome1/mozglue/misc/S
 tackWalk.cpp
 /opt/local/bin/g++-mp-6 -std=gnu++11 -o Unified_cpp_memory_mozalloc0.o -c
 -DNDEBUG=1 -DTRIMMED=1 -D_GNU_SOURCE -DIMPL_MFBT -DMOZ_HAS_MOZGLUE -I/o
 pt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/work/mozjs-52.6.0gnome1/
 memory/mozalloc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/work
 /mozjs-52.6.0gnome1/js/src/obj/memory/mozalloc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_
 ports_lang_mozjs52/mozjs52/work/mozjs-52.6.0gnome1/js/src/obj/xpcom
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.
 org_release_tarballs_ports_lang_mozjs52/mozjs52/work/mozjs-52.6.0gnome1/memory/build
 -I/opt/local/var/macports/build/_opt_local_var_macports_source
 s_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/work/mozjs-52.6.0gnome1/js/src/obj/dist/include
 -I/opt/local/include/nspr
 -fPIC  -DMOZILLA_CLIENT -include
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs
 52/mozjs52/work/mozjs-52.6.0gnome1/js/src/obj/js/src/js-confdefs.h -MD -MP
 -MF .deps/Unified_cpp_memory_mozalloc0.o.pp -I/opt/local/include -Wall -
 Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual
 -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-
 string
 s -Wno-invalid-offsetof -Wc++14-compat -Wno-error=maybe-uninitialized
 -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-lifetime-
 dse
 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -m32 -fno-common -stdlib=libc++ -fno-
 rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O3 -fno-stack-pr
 otector -fomit-frame-pointer
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs5
 2/mozjs52/work/mozjs-52.6.0gnome1/js/src/obj/memory/mozalloc/Unified_cpp_memory_mozalloc0.cpp
 g++-mp-6: error: unrecognized command line option '-stdlib=libc++'
 g++-mp-6: error: unrecognized command line option '-stdlib=libc++'
 make[3]: *** [Unified_cpp_memory_mozalloc0.o] Error 1
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mo
 zjs52/work/mozjs-52.6.0gnome1/js/src/obj/memory/mozalloc'
 make[3]: *** [StackWalk.o] Error 1
 make[2]: *** [memory/mozalloc/target] Error 2
 make[2]: make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_m
 ozjs52/mozjs52/work/mozjs-52.6.0gnome1/js/src/obj/mozglue/misc'
 *** Waiting for unfinished jobs....
 make[2]: *** [mozglue/misc/target] Error 2
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mo
 zjs52/work/mozjs-52.6.0gnome1/js/src/obj'
 make[1]: *** [compile] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mo
 zjs52/work/mozjs-52.6.0gnome1/js/src/obj'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs
 52/work/mozjs-52.6.0gnome1/js/src/obj'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/w
 ork/mozjs-52.6.0gnome1/js/src/obj" && /usr/bin/make -j2 -w all
 Exit code: 2
 Error: Failed to build mozjs52: command execution failed
 DEBUG: Error code: CHILDSTATUS 99258 2
 DEBUG: Backtrace: command execution failed
 DEBUG:     while executing
 DEBUG: "system {*}$notty {*}$nice $fullcmdstring"
 DEBUG:     invoked from within
 DEBUG: "command_exec build"
 DEBUG:     (procedure "portbuild::build_main" line 8)
 DEBUG:     invoked from within
 DEBUG: "$procedure $targetname"
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_mozjs52/mozjs52/main.log
 for
  details.
 }}}

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


More information about the macports-tickets mailing list