Closed Gabriella439 closed 5 years ago
@Gabriel439
static-haskell-nix
cachix, which means that I've built it successfully in the past.nix-store -qd $(nix-store -qR $(nix-build ./example.nix) | grep coreutils)
gives /nix/store/dpgwckqh1my76ap6i18q7y3w2qafplf0-coreutils-8.31.drv
(same .drv
as yours). I'm re-building it now with nix-store -r --check
to check whether re-building it fails on either NixOS or Ubuntu.nix (Nix) 2.0.4
)?nix-build
instead of nix build
, or run nix log /nix/store/dpgwckqh1my76ap6i18q7y3w2qafplf0-coreutils-8.31.drv
, so that we can see the full output, in particular what part of the test suite failed? It got truncated away in your last 10 log lines
.nix-store -r /nix/store/dpgwckqh1my76ap6i18q7y3w2qafplf0-coreutils-8.31.drv --check
succeeded on my Ubuntu 16.04 and my NixOS.
So I cannot reproduce at all, it seems to be working for me.
Here's the output from the failed test:
$ nix-store -r /nix/store/dpgwckqh1my76ap6i18q7y3w2qafplf0-coreutils-8.31.drv
...
FAIL: tests/id/zero
===================
uid=30001(nixbld1) gid=30000(nixbld) groups=30000(nixbld)
uid=30001(nixbld1) gid=30000(nixbld) groups=30000(nixbld),30000(nixbld)
--- gtmp1 2019-06-29 23:29:54.677078479 +0000
+++ gtmp3 2019-06-29 23:29:54.678078476 +0000
@@ -1,8 +1,4 @@
-30000
-
-nixbld
-
-30000
-
-nixbld
-
+30000
+nixbld
+30000
+nixbld
FAIL tests/id/zero.sh (exit status: 1)
...
@Gabriel439 That looks like some odd extra newlines.
What about question 3, what OS is this on, and with or without sandbox?
@nh2: It's on Linux, but without a sandbox, and with Nix version 2.1.1
Hmm, I don't really have an idea. I am not sure it's at all related to static-haskell-nix
. Could you find a nix-installed coreutils
obtained from cache.nixos.org
on your system (ideally the same version 8.31), get the .drv
file of it, and rebuild it locally with nix-store -r --check
, to see whether all coreutils fail for you, not only the one from static-haskell-nix
?
The only other instance of FAIL tests/id/zero.sh
I managed to google is in https://github.com/NixOS/nix/issues/512 as FAIL tests/id/zero
.
The sandbox is the difference. Once I enable the sandbox the build passes
@Gabriel439 You should probably file a nixpkgs issue then -- it would be good to get as much software build and test successfully also without sandbox as possible, especially fundamental things like coreutils.
Yeah, I think this issue is not static-haskell-nix
-specific
Here's the minimal reproduction:
This fails with: