Skip to content
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

range-v3: Fix the AArch64 build by disabling the tests #78447

Merged
merged 1 commit into from Jan 25, 2020

Conversation

primeos
Copy link
Member

@primeos primeos commented Jan 24, 2020

See #75210 (review)

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@primeos primeos mentioned this pull request Jan 24, 2020
10 tasks
@primeos primeos self-assigned this Jan 24, 2020
@jonringer
Copy link
Contributor

@GrahamcOfBorg build range-v3

@primeos
Copy link
Member Author

primeos commented Jan 24, 2020

Note: Don't merge this yet - this is only an experimental attempt. If someone has an AArch64 setup feel free to take this PR over ;)

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Jan 25, 2020

Looks like doCheck does nothing, try cmakeFlags = optional stdenv.isAarch64 "-DRANGE_V3_TESTS=OFF";
https://github.com/ericniebler/range-v3/blob/master/CMakeLists.txt#L57

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Jan 25, 2020

running tests
check flags: -j64 -l64 SHELL=/nix/store/q4116dsmdsab1wgnzdknlpfmxsx897cn-bash-4.4-p23/bin/bash VERBOSE=y test
make: *** No rule to make target 'test'.  Stop.
builder for '/nix/store/vg4d0qp130mx6gfxj1599vbff58iksyf-range-v3-0.10.0.drv' failed with exit code 2
error: build of '/nix/store/vg4d0qp130mx6gfxj1599vbff58iksyf-range-v3-0.10.0.drv' failed

Okay, doCheck should be disabled too

Another reference for working AArch64 builds:
https://git.alpinelinux.org/aports/tree/community/range-v3/APKBUILD

Co-Authored-By: Ilya Fedin <fedin-ilja2010@ya.ru>
@primeos primeos changed the title range-v3: Disable on AArch64 due to internal compiler errors range-v3: Fix the AArch64 build by disabling the tests Jan 25, 2020
@primeos
Copy link
Member Author

primeos commented Jan 25, 2020

Cool, builds on AArch64 now :)

@primeos primeos merged commit b070035 into NixOS:master Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants