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

Fix cross-compilation of firefox for powerpc64le-unknown-linux-musl (take two) #254641

Open
wants to merge 11 commits into
base: staging
Choose a base branch
from

Conversation

ashkitten
Copy link
Contributor

Description of changes

depends on #233470 with an additional fixup patch

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/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

alyssais and others added 11 commits September 11, 2023 19:19
Previously, the multibitdepth cmake invocations didn't use cmakeFlags.
This meant that they didn't get the flags added by stdenv for cross
compilation, and so they didn't cross compile.  To fix this, add
cmakeCommonFlags into cmakeFlags, and then add all the non-common
flags to cmakeFlagsArray after the multibitdepth stuff has been built.

As a consequence of this change, we also no longer need to disable asm
for RISC-V.
autotools seems to have issues around vsnprintf when compiling with fortification on powerpc64-musl. this problem doesn't appear on other platforms, or when using cmake.
@ashkitten ashkitten requested a review from mweinelt as a code owner September 11, 2023 23:41
@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 501+ 10.rebuild-darwin: 2501-5000 10.rebuild-linux: 501+ 10.rebuild-linux: 5001+
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants