OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Build Failure
  • Category Packages
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version openwrt-21.02
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Daniel Santos - 02.09.2021

FS#4000 - firewall3: Build failure with -Werror and gcc 10

Occurs on today’s openwrt-21.02 branch.

/home/daniel/proj/embedded/openwrt/v21.02.y/build_dir/target-mipsel_24kc_musl/firewall-2021-03-23-61db17ed/options.c: In function ‘fw3_parse_options’:
/home/daniel/proj/embedded/openwrt/v21.02.y/build_dir/target-mipsel_24kc_musl/firewall-2021-03-23-61db17ed/options.c:1113:7: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
1113 | warn_elem(e, “has invalid value ‘%s’“, p);

    |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors

I’m behind on GCC development, but it looks like they’re generating some interesting warnings now after constant propagation.

Daniel Santos commented on 02.09.2021 06:49

Sorry, not familiar with Flyspray yet:

/home/daniel/proj/embedded/openwrt/v21.02.y/build_dir/target-mipsel_24kc_musl/firewall-2021-03-23-61db17ed/options.c: In function 'fw3_parse_options':
/home/daniel/proj/embedded/openwrt/v21.02.y/build_dir/target-mipsel_24kc_musl/firewall-2021-03-23-61db17ed/options.c:1113:7: error: '%s' directive argument is null [-Werror=format-overflow=]
 1113 |       warn_elem(e, "has invalid value '%s'", p);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing