haskellPackages: fixes for pkgsCross.aarch64-android-prebuilt#355543
haskellPackages: fixes for pkgsCross.aarch64-android-prebuilt#355543maralorn merged 4 commits intoNixOS:haskell-updatesfrom
Conversation
There was a problem hiding this comment.
Otherwise
$ nix-build -A pkgsCross.aarch64-android-prebuilt.haskell.packages.ghc910.primitive
...
aarch64-unknown-linux-android-ld: error: attempted static link of dynamic object /nix/store/dc4sk70a32x7qzvqr81rq9036cslrlw3-libiconv-aarch64-unknown-linux-android-1.17/lib/libiconv.so
<no location info>: error:
`aarch64-unknown-linux-android-ld' failed in phase `Merge objects'. (Exit code: 1)
There was a problem hiding this comment.
These errors have to be in the commit msg
There was a problem hiding this comment.
Otherwise
$ nix-build -A pkgsCross.aarch64-android-prebuilt.haskell.packages.ghc910.attoparsec
...
RPATH of binary /nix/store/g6ncgk2b04mv722hh2jgfbixyawbwabv-attoparsec-aarch64-unknown-linux-android-0.14.4/lib/ghc-9.10.1/lib/aarch64-android-ghc-9.10.1-inplace/libHSattoparsec-0.14.4-GkMCGqk5eKArKmd1r9IB7-ghc9.10.1.so contains a forbidden reference to /build/
There was a problem hiding this comment.
I'd actually note that this problem (/build leaking into rpaths` exists in a comment next to the default here. This is not really something we'd expect to be the case forever, a bug somewhere even.
There was a problem hiding this comment.
This fell through the cracks. Added a note as part of #414317
maralorn
left a comment
There was a problem hiding this comment.
I cannot claim, that I really get what’s going on here, but this looks reasonable.
I don’t think this affects any hydra jobs, does it? If so this can go straight to master imo.
2c16113 to
e95a274
Compare
|
After rebasing the builds now fail much earlier, I'll circle back to this in a few weeks |
e95a274 to
01a2489
Compare
01a2489 to
4caa6c2
Compare
4caa6c2 to
219685e
Compare
Fixes build of `pkgsCross.aarch64-android-prebuilt.haskell.packages.ghc910.primitive`:
```
aarch64-unknown-linux-android-ld: error: attempted static link of dynamic object /nix/store/dc4sk70a32x7qzvqr81rq9036cslrlw3-libiconv-aarch64-unknown-linux-android-1.17/lib/libiconv.so
<no location info>: error:
`aarch64-unknown-linux-android-ld' failed in phase `Merge objects'. (Exit code: 1)
```
Fixes build of `pkgsCross.aarch64-android-prebuilt.haskell.packages.ghc910.attoparsec`: ``` RPATH of binary /nix/store/g6ncgk2b04mv722hh2jgfbixyawbwabv-attoparsec-aarch64-unknown-linux-android-0.14.4/lib/ghc-9.10.1/lib/aarch64-android-ghc-9.10.1-inplace/libHSattoparsec-0.14.4-GkMCGqk5eKArKmd1r9IB7-ghc9.10.1.so contains a forbidden reference to /build/ ```
219685e to
2e79a5a
Compare
Causes infinite recursion According to @alexfmpe unnecessary since: NixOS/nixpkgs#355543
Causes infinite recursion According to @alexfmpe unnecessary since: NixOS/nixpkgs#355543
Causes infinite recursion According to @alexfmpe unnecessary since: NixOS/nixpkgs#355543
Allows building a ton of non-TH libs under haskell.packages.910.
Libs needing TH fail with
The build of 9.8 fails due to some ghc bug somewhere when parsing the quadruple as if it was a triple. Still looking into it
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.