Skip to content

No -Werror on non-debug builds, check 32 bit build in CI#9101

Merged
sangbida merged 4 commits into
ElementsProject:masterfrom
rustyrussell:no-Werror-non-devbuilds
May 5, 2026
Merged

No -Werror on non-debug builds, check 32 bit build in CI#9101
sangbida merged 4 commits into
ElementsProject:masterfrom
rustyrussell:no-Werror-non-devbuilds

Conversation

@rustyrussell
Copy link
Copy Markdown
Contributor

This delayed the previous release, as 32 bit didn't build and this was only caught in the docker build phase of release. And future version of gcc add new warnings, which stops build entirely for users, so avoid -Werror for them

@rustyrussell rustyrussell added this to the 26.06 milestone Apr 30, 2026
@rustyrussell rustyrussell force-pushed the no-Werror-non-devbuilds branch 3 times, most recently from 170fc62 to 43815e7 Compare April 30, 2026 04:26
Otherwise, we can break people's builds if they upgrade compiler, for example.

Yet we still want -Werror for developers, and CI.

Changelog-Changed: Build: We no longer use `-Werror` by default, unless --enable-debugbuild is set.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the no-Werror-non-devbuilds branch 3 times, most recently from b3327e0 to b1b1b47 Compare April 30, 2026 08:50
This broke the recent docker upload in the release.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the no-Werror-non-devbuilds branch from b1b1b47 to 2397adc Compare April 30, 2026 09:04
It would need to run under uv.  I noticed it failing while debugging the 32-bit CI build,
but it fails everywhere.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
They're misleading otherwise.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@daywalker90 daywalker90 linked an issue May 4, 2026 that may be closed by this pull request
@madelinevibes madelinevibes added the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label May 4, 2026
Copy link
Copy Markdown
Collaborator

@sangbida sangbida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Thanks for this :)

@sangbida sangbida merged commit 2599c09 into ElementsProject:master May 5, 2026
86 of 89 checks passed
@madelinevibes madelinevibes removed the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build error v26.04.1 with GCC 16.1.1

3 participants