Closed c0bw3b closed 4 years ago
I'm pretty sure that's not #49. It may, however, be something that I've fixed since -beta1. There's at least one potential issue with timestamps that I've fixed. Can you try this on the develop
branch and see if it persists?
I'm getting the same failure when building from the develop
branch
On 15 November 2019 22:14:03 GMT, Renaud notifications@github.com wrote:
I'm getting the same failure when building from the
develop
branch
Oh, drat :( I've started getting NixOS installed in a VM. Hopefully I'll be able to dig further into this next week.
OK, so I've found NixOS isn't straightforward. How are you building compactor
? Do have a default.nix
file you can share with me?
Yes indeed! I wanted to give you a heads up and my default.nix but then a week-end happened.. My bad.
Here is my default.nix I used to build from the develop branch. The SHA hash is computed over the whole content of the repo after unpacking the GH zip archive. It must be recomputed and changed if you push new commits, otherwise nix will silently used the previous sources already available in its store.
To build this I use:
nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}" --option build-use-sandbox true --keep-failed |& tee build.log
--option build-use-sandbox true
will make sure the build is sandboxed although is should be the default ; if nix complains that you are not a trusted user you should add nix.trustedUsers = [ "myusername" ];
to /etc/nixos/configuration.nix
(edit as root) then sudo nixos-rebuild switch
--keep-failed
will keep the directory where the build happened under /tmp/nix-build-compactor-something
so you can read the full test suite logstee
is just at your convenience to keep the full trace of the last buildI've reproduced this with an up-to-date Debian Sid. I'll investigate further.
Hello @banburybill
I've been testing the build of 1.0.0-beta1 on NixOS and I'm getting a failure similar to #49 The root cause may be different this time, but not sure. I've reproduced it on two different NixOS VMs and the failure happens on every build (ie not transient).
Deps versions are : boost 1.67 / libtins 4.2 / libpcap 1.9.0 / cbor-diag 0.5.6 / wireshark-cli 3.0.3 / tcpdump 4.9.2
Here is the test suite log :
(BTW the test suite log headers are still saying
0.1-dev
:) )On NixOS the build takes place in a chroot-like sandbox, so maybe I'm missing a silent dep needed to compute proper timestamps?
Let me know if I can provide more informations.