Bug 511974 - Valgrind fails to build with GCC 16 (x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-Wno-alloc-size-larger-than=18446744073709551615’)
Summary: Valgrind fails to build with GCC 16 (x86_64-pc-linux-gnu-gcc: error: unrecogn...
Status: RESOLVED DUPLICATE of bug 511972
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.24 GIT
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-11 23:41 UTC by Sam James
Modified: 2025-11-11 23:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James 2025-11-11 23:41:30 UTC
With GCC trunk (see r16-5128-g5b276d38c2fdd7), -Wno-alloc-size-larger-than=XYZ is rejected, as it doesn't make sense, and I get a build failure for Valgrind trunk:
```
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-Wno-alloc-size-larger-than=18446744073709551615’
make[5]: *** [Makefile:3519: accounting-accounting.o] Error 1
```

commit ca61eb9faf603e08146f3f4273c942bcf467fc84
Author:     Paul Floyd <pjfloyd@wanadoo.fr>
AuthorDate: Mon Oct 13 20:50:10 2025 +0200
Commit:     Paul Floyd <pjfloyd@wanadoo.fr>
CommitDate: Mon Oct 13 20:50:10 2025 +0200

    configure: correct the value for -Wno-alloc-size-larger-than

commit ed4463ff3f1b5d15a5ad8962b36e525e6a89cfb4
Author:     Paul Floyd <pjfloyd@wanadoo.fr>
AuthorDate: Mon Oct 13 13:02:52 2025 +0200
Commit:     Paul Floyd <pjfloyd@wanadoo.fr>
CommitDate: Mon Oct 13 13:02:52 2025 +0200

    configure: hard code -Wno-alloc-size-larger-than=2147483647

    Should be OK for both 32bit and 64bit.
    Remove AC_GCC_WARNING_SUBST_NO_VAL - always need to set a value.
Comment 1 Sam James 2025-11-11 23:41:36 UTC

*** This bug has been marked as a duplicate of bug 511972 ***