-
Notifications
You must be signed in to change notification settings - Fork 164
Update flake #3112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rowanG077
wants to merge
23
commits into
master
Choose a base branch
from
nix-ghc-minor-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+152
−222
Open
Update flake #3112
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
788d332
Update flake
rowanG077 24e7d90
Update nix haskell overlays
rowanG077 6db0636
doctest <0.4 -> <0.5
rowanG077 b068030
GA: Update GHC matrix for nix jobs
rowanG077 2f1d9cf
flake: Use ghc 9.10.3
rowanG077 d29e895
clash-ghc: Remove Opt_LlvmTBAA from unwanted
rowanG077 6c7a1a3
Add changelog
rowanG077 64f09f4
Flake: Fix renamed packages
rowanG077 7bb110c
flake: Fix lib.optional usage
rowanG077 0636cc0
Bump CI versions
DigitalBrains1 36b1f97
clash-ffi: Remove seemingly wrong buildable guards
rowanG077 ac5d7ca
clash-ffi: Make ffi_interface-tests a proper test-suite
rowanG077 af906b8
nix: Make clash-ffi work including tests
rowanG077 e38f41b
ci: Remove conditional test run for clash-ffi
rowanG077 adf764c
Revert "clash-ffi: Remove seemingly wrong buildable guards"
DigitalBrains1 2bfa624
Revert "ci: Remove conditional test run for clash-ffi"
DigitalBrains1 0dbddc3
GitLab CI: Enable `clash-ffi` on GHC 9.10.3
DigitalBrains1 fdbb7b8
Unneeded clause in overlay-ghc98.nix
DigitalBrains1 7304cb0
Make `clash-ffi` buildable on GHC 9.10
DigitalBrains1 7866f56
Nix: Mark clash-ffi broken on the GHC version it does not work on
DigitalBrains1 8f9ba76
Finalize handling of GHC issue in clash-ffi
DigitalBrains1 32b4294
update flake.lock
rowanG077 66efc21
Fix test running for natnormalise and extra plugins
rowanG077 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
changelog/2025-12-24T10_24_56+01_00_remove_Opt_LlvmTBAAe_unwanted
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| clash-ghc: Remove "Opt_LlvmTBAA" from unwanted flags. See [#2508](https://github.com/clash-lang/clash-compiler/issues/2823). |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,15 +76,15 @@ library | |
| Clash.FFI.VPI.Port | ||
| Clash.FFI.VPI.Port.Direction | ||
| Clash.FFI.VPI.Reg | ||
| -- TODO: remove this once https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406 | ||
| -- is fixed | ||
| if impl(ghc < 9.8.3) || impl(ghc == 9.10.1) | ||
| -- GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406 | ||
| if impl(ghc < 9.8.3) || impl(ghc == 9.10.1) || impl(ghc > 9.10.2) | ||
| buildable: True | ||
| else | ||
| buildable: False | ||
|
|
||
| executable ffi-interface-tests | ||
| test-suite ffi-interface-tests | ||
| import: common-options | ||
| type: exitcode-stdio-1.0 | ||
| default-extensions: | ||
| DataKinds | ||
| RankNTypes | ||
|
|
@@ -113,9 +113,8 @@ executable ffi-interface-tests | |
| , tasty | ||
| , tasty-hunit | ||
| , tasty-smallcheck | ||
| -- TODO: remove this once https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406 | ||
| -- is fixed | ||
| if impl(ghc < 9.8.3) || impl(ghc == 9.10.1) | ||
| -- GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406 | ||
| if impl(ghc < 9.8.3) || impl(ghc == 9.10.1) || impl(ghc > 9.10.2) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not |
||
| buildable: True | ||
| else | ||
| buildable: False | ||
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because GHC 9.10.2 has the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course we could do
and just ignore the fact that 9.10.1 would actually work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, perhaps we should reverse the logic and do:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're thinking nobody will be trying 9.8.3 anymore? In that case, it would indeed match everything in practice.
What happened to 9.8.3? :-) Do you know why it was pulled from GHCup? I couldn't find anything at a really quick glance, and my dinner is cooling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can just leave the logic as is, but update the comment to specify which GHCs are affected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me! What do we do with
I'm not sure what it suggests we do, but I think it's saying: once GHC 9.8 and GHC 9.10 both have received a minor version update that fixes the bug, remove this stanza. I wonder whether that would even be a good idea.
Also, after reading the discussion about 9.8.3 I linked to in my previous message, I doubt there will ever be another 9.8 release.
You wrote the comment; what did you intend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I meant that when a fix was released, we should properly fix the bounds. The original version didn’t allow building on e.g. GHC 9.12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I've updated the comments from
to
I note that in
.ci/build.shthe phrasing was a bit different:clash-compiler/.ci/build.sh
Lines 42 to 44 in d0f65c4
I think it'll be quite a while before we can actually put it back into tests; I suppose that will be once we drop 9.8 support from Clash. In the interest of clarity and maintainability, I've rewritten it a bit so it doesn't duplicate shell code and is easier to grok.
Are you satisfied with how it is now, @christiaanb ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@christiaanb Just pinging you again on this PR so it doesn't slip through the cracks. If you are not satisfied yet please let us know.