-
Notifications
You must be signed in to change notification settings - Fork 155
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
unknown RTS option: -xm20000000
#2656
Comments
I spoke too soon. While the build succeeds, actually trying to use
|
I made an additional change to clash-ghc =
let
unmodified =
- hprev.callCabal2nixWithOptions
+ hprev.callCabal2nix
"clash-ghc"
- ../clash-ghc
- "--flag workaround-ghc-mmap-crash" {
+ ../clash-ghc {
inherit (hfinal) clash-lib clash-prelude;
};
|
To clarify, what I meant here is that I have the flake in this repository as an input to my own flake. |
Thanks for the bug report and the steps to work around it! It would seem the We had not realised this. We'll need to make it such that the flag is only passed on x86_64. |
Thanks! I’ll probably use a fork in the meantime. I think Rosetta should also allow people to work around this by doing something like: …
let
supportedSystems = [
flake-utils.lib.system.aarch64-darwin
flake-utils.lib.system.x86_64-darwin
];
in
flake-utils.lib.eachSystem supportedSystems (system:
let
pkgs = import nixpkgs {
system:
if system == flake-utils.lib.system.aarch64-darwin
then flake-utils.lib.system.x86_64-darwin
else system;
};
… |
Should be fixed with #2657. I run aarch64 but didn't use nix flakes so I didn't hit this before. |
…#2659) Fixes #2656 (cherry picked from commit 22b3a58) Co-authored-by: Rowan Goemans <[email protected]>
If I try to build
clash-ghc
using Nix,clash-prelude
fails in thecheckPhase
withunknown RTS option: -xm20000000
when trying to rundoctests
andunittests
.I'm using an M1 Macbook Pro.
If I do the following in
nix/overlay.nix
the error goes away.I've tried to override this using various Nix mechanisms (e.g.
override
,overrideAttrs
, a custom overlay,pkgs.haskell.lib.dontCheck
) and while some of these work when buildingclash-prelude
in isolation, it doesn't help when buildingclash-ghc
for some reason that I don't understand.The text was updated successfully, but these errors were encountered: