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

openblas: fix aarch64 build #58589

Merged
merged 1 commit into from Apr 7, 2019
Merged

openblas: fix aarch64 build #58589

merged 1 commit into from Apr 7, 2019

Conversation

markuskowa
Copy link
Member

@markuskowa markuskowa commented Mar 30, 2019

Motivation for this change

Fixes #56949

Attempt to fix the openblas breakage on aarch64
#56216

If we are not cross compiling then openblas expects:

  • on x86_64 NO_BINARY_MODE=
  • on aarch64 NO_BINARY_MODE=0

using the toString to translate the value for NO_BINARY_MODE is wrong here
since mkMakeFlagValue is supposed to translate bools to string in the right way.

Needs backport to 19.03

CC @dtzWill

See also: ZHF 19.03, #56826

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nix-review --run "nix-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@markuskowa
Copy link
Member Author

markuskowa commented Mar 30, 2019

@GrahamcOfBorg build openblas
@GrahamcOfBorg build arpack

@markuskowa
Copy link
Member Author

This fix is really ugly but it works now on arm and x86. Any suggestions?

@markuskowa markuskowa changed the title [WIP] openblas: fix aarch64 build openblas: fix aarch64 build Mar 31, 2019
vdemeester pushed a commit to vdemeester/nixpkgs that referenced this pull request Apr 7, 2019
@xeji xeji merged commit fa28a83 into NixOS:master Apr 7, 2019
vcunat added a commit that referenced this pull request Apr 7, 2019
@markuskowa markuskowa deleted the fix-openblas branch April 7, 2019 15:07
@aanderse aanderse mentioned this pull request May 12, 2019
10 tasks
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.

openblas: build broken on aarch64 (master & release 19.03)
4 participants