But now I found like in this bug:
https://github.com/MoonchildProductions/UXP/issues/1324
But in my case that is both when I try with the default compiler:
$ gcc --version
gcc (GCC) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(no warranty it will build Pale Moon obviously ) and when I try in .mozconfig:
export CC=/usr/bin/gcc-5
export CXX=/usr/bin/g++-5
export HOST_CC=/usr/bin/gcc-5
export HOST_CXX=/usr/bin/g++-5
which worked in the past, but perhaps that is too old now, it's an old build on my system, no longer in the AUR. Both stop at the same place though. And I'm not using hardened Gentoo either, although I suppose Artix does take some inspiration from Gentoo. I tried at git head in both Pale Moon and UXP repos then took UXP to:
$ git branch
* (HEAD detached at PM28.0.0a2_Unstable)
master
Same result still.
Code: Select all
58:01.83 In file included from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x86-shared/Assembler-x86-shared.h:17,
58:01.83 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x64/Assembler-x64.h:248,
58:01.83 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x86-shared/MacroAssembler-x86-shared.h:15,
58:01.83 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x64/MacroAssembler-x64.h:12,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/MacroAssembler.h:18,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/BaselineJIT.h:18,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/BaselineIC.h:20,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/MIR.h:21,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/AlignmentMaskAnalysis.cpp:8,
58:01.84 from /home/me/pmbuild/js/src/Unified_cpp_js_src8.cpp:2:
58:01.84 In member function ‘void js::jit::X86Encoding::BaseAssemblerX64::movq_mr(int32_t, js::jit::X86Encoding::RegisterID, js::jit::X86Encoding::RegisterID, int, js::jit::X86En
coding::RegisterID)’,
58:01.84 inlined from ‘void js::jit::Assembler::movq(const js::jit::Operand&, js::jit::Register)’ at /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x64/Assembler-x64.h:397:2
5:
58:01.84 /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x64/BaseAssembler-x64.h:596:13: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
58:01.84 596 | spew("movq " MEM_obs ", %s", ADDR_obs(offset, base, index, scale), GPReg64Name(dst));
58:01.84 | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58:01.84 In file included from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x86-shared/BaseAssembler-x86-shared.h:35,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x64/BaseAssembler-x64.h:10,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x86-shared/Assembler-x86-shared.h:17,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x64/Assembler-x64.h:248,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x86-shared/MacroAssembler-x86-shared.h:15,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x64/MacroAssembler-x64.h:12,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/MacroAssembler.h:18,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/BaselineJIT.h:18,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/BaselineIC.h:20,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/MIR.h:21,
58:01.84 from /home/me/pmsrc/Pale-Moon/platform/js/src/jit/AlignmentMaskAnalysis.cpp:8,
58:01.84 from /home/me/pmbuild/js/src/Unified_cpp_js_src8.cpp:2:
58:01.84 /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h: In function ‘void js::jit::Assembler::movq(const js::jit::Operand&, js::jit::Reg
ister)’:
58:01.85 /home/me/pmsrc/Pale-Moon/platform/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:46:32: note: format string is defined here
58:01.85 46 | #define MEM_obs MEM_o "(%s,%s,%d)"
58:01.85 | ^~
58:10.34 cc1plus: some warnings being treated as errors
58:11.24
58:11.24 In the directory /home/me/pmbuild/js/src
58:11.24 The following command failed to execute properly:
58:11.24 /usr/bin/g++ -std=gnu++11 -o Unified_cpp_js_src8.o -c -I/home/me/pmbuild/dist/system_wrappers -include /home/me/pmsrc/Pale-Moon/platform/config/gcc_hidden.h -DNDEB
UG=1 -DTRIMMED=1 -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -DJS_HAS_CTYPES -DDLL_PREFIX="lib" -DDLL_SUFFIX=".so" -DFFI_BUILDING -DMOZ_HAS_MOZGLUE -I/home/me/pmsrc/Pale-Moon
/platform/js/src -I/home/me/pmbuild/js/src -I/home/me/pmbuild/js/src/ctypes/libffi/include -I/home/me/pmsrc/Pale-Moon/platform/js/src/ctypes/libffi/src/x86 -I/home/me
/pmbuild/dist/include -I/home/me/pmbuild/dist/include/nspr -fPIC -DMOZILLA_CLIENT -include /home/me/pmbuild/js/src/js-confdefs.h -MD -MP -MF .deps/Unified_cpp_js_src8.o.pp
-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 -Wc++1z-compat -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=multistatement-macros -W
no-noexcept-type -flifetime-dse=1 -fno-rtti -fno-exceptions -fno-math-errno -msse2 -mfpmath=sse -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -Wno-shadow -Werror=fo
rmat -fno-strict-aliasing /home/me/pmbuild/js/src/Unified_cpp_js_src8.cpp
58:11.24 make[4]: *** [/home/me/pmsrc/Pale-Moon/platform/config/rules.mk:886: Unified_cpp_js_src8.o] Error 1
58:11.24 make[3]: *** [/home/me/pmsrc/Pale-Moon/platform/config/recurse.mk:71: js/src/target] Error 2
58:11.24 make[2]: *** [/home/me/pmsrc/Pale-Moon/platform/config/recurse.mk:33: compile] Error 2
58:11.24 make[1]: *** [/home/me/pmsrc/Pale-Moon/platform/config/rules.mk:494: default] Error 2
58:11.24 make: *** [client.mk:400: build] Error 2
58:11.26 325 compiler warnings present.