Menu

#89 [barrage] Fail to build in RISC-V

None
closed-fixed
None
5
2022-03-03
2021-12-23
avimitin
No

Barrage fail to build main.o and main.c file. It reports that cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]. My current work around is to use sed to delete -Wno-format in CFLAGS variable in the src/Makefile.

This is because main.o is built with an additional -Wno-format, which disables -Wformat, but that still leave the -Werror=format-security around.

It will be convenient to build if you can delete the build flag for the main.o file. Thanks for your work.

Discussion

  • Michael Speck

    Michael Speck - 2022-03-03
    • status: open --> closed-fixed
    • Group: -->
     
  • Michael Speck

    Michael Speck - 2022-03-03

    hm, not sure why I use all this warning restrictions anyway... I removed all flags except -Wall and properly fixed the warning it suppressed. thanks for pointing out.

     

Log in to post a comment.

MongoDB Logo MongoDB