haskell.compiler.ghc{948,967,984,9101,9121,9122}: fix build with gcc15#447396
Merged
Conversation
9dd24a0 to
cd23427
Compare
Contributor
Author
|
sternenseemann
left a comment
Member
There was a problem hiding this comment.
No need to be so strict for 9.4.
- add patch from fedora (rebase of latest fix from upstream): https://gitlab.haskell.org/ghc/ghc/-/issues/25662 https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13863 ghc versions excluded from patch: 9.10.2 - has previous fix with `extern void* malloc(size_t);` 9.10.3 - has latest fix with `#include <stdlib.h>` 9.12.3 - has latest fix with `#include <stdlib.h>` Fixes build failure with gcc15, building utils/hp2ps/Utilities.c: ``` utils/hp2ps/Utilities.c:6:14: error: warning: conflicting types for built-in function ‘malloc’; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch] 6 | extern void* malloc(); | ^~~~~~ ... utils/hp2ps/Utilities.c:92:18: error: warning: conflicting types for built-in function ‘realloc’; expected ‘void *(void *, long unsigned int)’ [-Wbuiltin-declaration-mismatch] 92 | extern void *realloc(); | ^~~~~~~ ```
cd23427 to
2790c3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://gitlab.haskell.org/ghc/ghc/-/issues/25662
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13863
ghc versions excluded from patch:
9.10.2 - has previous fix with
extern void* malloc(size_t);9.10.3 - has latest fix with
#include <stdlib.h>9.12.3 - has latest fix with
#include <stdlib.h>Fixes build failure with gcc15, building utils/hp2ps/Utilities.c:
Tested with:
Part of fixes for gcc15 update:
#440456
Patch from fedora (rebase) is needed, because of previous fix attempts on same lines:
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13838
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13853
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13863
Could not find patch from "no fix" to "third fix" anywhere upstream.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.