Skip to content

unknown RTS option: -xm20000000 #2656

@paulyoung

Description

@paulyoung

If I try to build clash-ghc using Nix, clash-prelude fails in the checkPhase with unknown RTS option: -xm20000000 when trying to run doctests and unittests.

I'm using an M1 Macbook Pro.

If I do the following in nix/overlay.nix the error goes away.

       clash-prelude =
-        hprev.callCabal2nixWithOptions
+        hprev.callCabal2nix
           "clash-prelude"
           ../clash-prelude
-          "--flag workaround-ghc-mmap-crash"
           { };

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 building clash-prelude in isolation, it doesn't help when building clash-ghc for some reason that I don't understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions