Skip to content

aflplusplus: qemu: move to python3#150242

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
Mindavi:aflplusplus/python3
Dec 11, 2021
Merged

aflplusplus: qemu: move to python3#150242
Mic92 merged 1 commit intoNixOS:masterfrom
Mindavi:aflplusplus/python3

Conversation

@Mindavi
Copy link
Contributor

@Mindavi Mindavi commented Dec 11, 2021

Motivation for this change

QEMU 3.1 already had support for building with python3, so this should
be a change that doesn't have any effect on the produced binaries.

I checked with diffoscope and I don't see anything that has changed, so presumably this is all ok.

Python2 removal tracking issue: #148779

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

QEMU 3.1 already had support for building with python3, so this should
be a change that doesn't have any effect on the produced binaries.

Python2 removal tracking issue: NixOS#148779
@Mindavi
Copy link
Contributor Author

Mindavi commented Dec 11, 2021

cc @risicle

@Mic92
Copy link
Member

Mic92 commented Dec 11, 2021

Build fails for me, also for different reasons:

$ nix --experimental-features nix-command build --no-link --keep-going --option build-use-sandbox relaxed -f /home/joerg/.cache/nixpkgs-review/pr-150242/build.nix
error: builder for '/nix/store/9z5l87cv1j5hqw6rglz69pb8ajlsif56-aflplusplus-2.65c.drv' failed with exit code 1;
       last 10 log lines:
       > test/unittests/unit_maybe_alloc.c:5:10: fatal error: cmocka.h: No such file or directory
       >     5 | #include <cmocka.h>
       >       |          ^~~~~~~~~~
       > compilation terminated.
       > make: *** [GNUmakefile:374: test/unittests/unit_maybe_alloc.o] Error 1
       > make: Leaving directory '/build/source'
       > ./test.sh: line 1089: 1: not found
       > [*] all test cases completed.
       > [-] not all test cases were executed
       > [!] failure in tests :-(
       For full logs, run 'nix log /nix/store/9z5l87cv1j5hqw6rglz69pb8ajlsif56-aflplusplus-2.65c.drv'.

@Mic92
Copy link
Member

Mic92 commented Dec 11, 2021

@GrahamcOfBorg build aflplusplus

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Dec 11, 2021
@Mindavi
Copy link
Contributor Author

Mindavi commented Dec 11, 2021

The cmocka thing can probably be ignored, but the failure in the tests is not great :/. Not sure why that happens, it works on ofborg and on my machine, so it's some impurity somewhere.

@Mic92
Copy link
Member

Mic92 commented Dec 11, 2021

I build this on a 64 core machine. Maybe a parallelism issue?

@Mic92 Mic92 merged commit 757a72d into NixOS:master Dec 11, 2021
@Mic92
Copy link
Member

Mic92 commented Dec 11, 2021

It seems to build with less cores.

@risicle
Copy link
Contributor

risicle commented Dec 11, 2021

nixpkgs-review happy for me nixos x86_64

@Mindavi Mindavi deleted the aflplusplus/python3 branch December 11, 2021 14:54
@Mindavi
Copy link
Contributor Author

Mindavi commented Dec 11, 2021

Probably a race then, hydra builders won't get 64 cores typically I guess, so it'll be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants