Skip to content

[Backport release-25.05] bfr: fix broken build because of stricter GCC default checks - #412956

Merged
Aleksanaa merged 1 commit into
release-25.05from
backport-410835-to-release-25.05
Jun 1, 2025
Merged

Aleksanaa merged 1 commit into
release-25.05from
backport-410835-to-release-25.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Jun 1, 2025

Copy link
Copy Markdown
Contributor

Bot-based backport to release-25.05, triggered by a label in #410835.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-committer, if you find that it is not acceptable, leave a comment.

GCC now complains if `main` has no explicitly declared return type.
Because `bfr`s `configure` script uses a very minimal C application
to check whether GCC works _at all_ (literally: `main(){return(0);}`),
this caused configure failures.

Another issue with the `configure` script is that it logs the compiler
errors for its checks to `configure.log` (and not to stdout or stderr),
which means that the root cause wasn't logged during the failed nix
build.

I added a patch that rewires the compiler error file descriptor so
that it will simply log to stderr and another patch that fixes the
missing return type in the C example.

Unfortunately, it looks like the server isn't serving the source
files anymore (and finding an official upstream repo which I could
send a PR to seems... non-trivial).

(cherry picked from commit 58e77c0)
@github-actions github-actions Bot added 4.workflow: backport This targets a stable branch 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 1, 2025
@nix-owners
nix-owners Bot requested a review from pSub June 1, 2025 14:17
@Aleksanaa
Aleksanaa merged commit f44c56b into release-25.05 Jun 1, 2025
@wolfgangwalther
wolfgangwalther deleted the backport-410835-to-release-25.05 branch June 1, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants