Compiling js-52 on lfs-20190503-systemd (that is, with gcc-9.1), I get the
attached log (attached, since if lines are broken, it is a mess. Even without
breaking lines, actually, but slightly less). Can somebody confirm this?

I wrote this message with the full log attached, and it is to big. So I retry
with just the end of the log.

Note that it seems to be a false -Werror=format positive, as seen also by
xry111 for systemd-242 in lfs ticket #4456. Since -Werror=format is hardcoded
in several files (and not configurable), a work around for js52 is:

grep -rl -- '-Werror=format' |
   xargs sed -i 's/-Werror=format/-Wno-error=format/'

Pierre

In file included from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x86-shared/Assembler-x86-shared.h:17,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x64/Assembler-x64.h:248,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x86-shared/MacroAssembler-x86-shared.h:15,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x64/MacroAssembler-x64.h:12,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/MacroAssembler.h:18,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BaselineJIT.h:18,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BaselineIC.h:20,
                 from /sources/js52/mozjs-52.2.1gnome1/js/src/jit/MIR.h:21,
                 from /sources/js52/mozjs-52.2.1gnome1/js/src/jit/LIR.h:20,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/RegisterAllocator.h:13,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BacktrackingAllocator.h:14,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BacktrackingAllocator.cpp:7,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/js/src/Unified_cpp_js_src8.cpp:2:
In member function ‘void 
js::jit::X86Encoding::BaseAssemblerX64::movq_mr(int32_t, 
js::jit::X86Encoding::RegisterID, js::jit::X86Encoding::RegisterID, int, 
js::jit::X86Encoding::RegisterID)’,
    inlined from ‘void js::jit::Assembler::movq(const js::jit::Operand&, 
js::jit::Register)’ at 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x64/Assembler-x64.h:397:25:
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x64/BaseAssembler-x64.h:596:13: 
error: ‘%s’ directive argument is null [-Werror=format-overflow=]
  596 |         spew("movq       " MEM_obs ", %s", ADDR_obs(offset, base, 
index, scale), GPReg64Name(dst));
      |         
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x86-shared/BaseAssembler-x86-shared.h:35,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x64/BaseAssembler-x64.h:10,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x86-shared/Assembler-x86-shared.h:17,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x64/Assembler-x64.h:248,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x86-shared/MacroAssembler-x86-shared.h:15,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x64/MacroAssembler-x64.h:12,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/MacroAssembler.h:18,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BaselineJIT.h:18,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BaselineIC.h:20,
                 from /sources/js52/mozjs-52.2.1gnome1/js/src/jit/MIR.h:21,
                 from /sources/js52/mozjs-52.2.1gnome1/js/src/jit/LIR.h:20,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/RegisterAllocator.h:13,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BacktrackingAllocator.h:14,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/BacktrackingAllocator.cpp:7,
                 from 
/sources/js52/mozjs-52.2.1gnome1/js/src/js/src/Unified_cpp_js_src8.cpp:2:
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:
 In function ‘void js::jit::Assembler::movq(const js::jit::Operand&, 
js::jit::Register)’:
/sources/js52/mozjs-52.2.1gnome1/js/src/jit/x86-shared/AssemblerBuffer-x86-shared.h:46:32:
 note: format string is defined here
   46 | #define MEM_obs   MEM_o   "(%s,%s,%d)"
      |                                ^~
cc1plus: some warnings being treated as errors
make[3]: *** [/sources/js52/mozjs-52.2.1gnome1/config/rules.mk:953: 
Unified_cpp_js_src8.o] Error 1
make[3]: Leaving directory '/sources/js52/mozjs-52.2.1gnome1/js/src/js/src'
make[2]: *** [/sources/js52/mozjs-52.2.1gnome1/config/recurse.mk:71: 
js/src/target] Error 2
make[2]: Leaving directory '/sources/js52/mozjs-52.2.1gnome1/js/src'
make[1]: *** [/sources/js52/mozjs-52.2.1gnome1/config/recurse.mk:33: compile] 
Error 2
make[1]: Leaving directory '/sources/js52/mozjs-52.2.1gnome1/js/src'
make: *** [/sources/js52/mozjs-52.2.1gnome1/config/rules.mk:523: default] Error 
2
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to