Skip to content

ci: build GNU findutils in C17 mode - #939

Merged
sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:gnu-build-c17
Oct 31, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:gnu-build-c17

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

ubuntu-latest is now Ubuntu 26.04, whose compiler defaults to C23. There _GL_ATTRIBUTE_NODISCARD expands to [[__nodiscard__]], which the pinned gnulib places after __THROW in fts_.h, so the GNU findutils build fails in gl/lib/fts.c:

config.h:2628:34: error: expected ',' or ';' before '[' token

No result JSON is produced and the "Run GNU findutils tests" job has been failing on main since 2026-10-29 (last green run was on ubuntu-24.04).

Force -std=gnu17 when configuring GNU findutils in util/build-gnu.sh.

ubuntu-latest is now Ubuntu 26.04, whose compiler defaults to C23. There
_GL_ATTRIBUTE_NODISCARD expands to [[__nodiscard__]], which the pinned
gnulib places after __THROW in fts_.h, and the build fails in gl/lib/fts.c.
Force -std=gnu17 so the GNU testsuite job builds again.
Copilot AI balanced review requested due to automatic review settings October 31, 2026 21:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.79%. Comparing base (d71f324) to head (ffcb878).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #939   +/-   ##
=======================================
  Coverage   92.79%   92.79%           
=======================================
  Files          37       37           
  Lines        8038     8038           
  Branches      403      403           
=======================================
  Hits         7459     7459           
  Misses        437      437           
  Partials      142      142           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed

codspeed Bot commented Oct 31, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 15 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 20 untouched benchmarks


Comparing sylvestre:gnu-build-c17 (ffcb878) with main (d71f324)

Open in CodSpeed

@sylvestre
sylvestre merged commit d57fc41 into uutils:main Oct 31, 2026
34 checks passed
@sylvestre
sylvestre deleted the gnu-build-c17 branch November 2, 2026 19:31
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.

2 participants