You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failure building pkgsCross.aarch64-android-prebuilt.bash #147084
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: cross-compilationBuilding packages on a different platform than they will be used on
# a list of nixpkgs attributes affected by the problemattribute: [pkgsCross.aarch64-android-prebuilt.bash]# a list of nixos modules affected by the problemmodule:
I think I figured out the cause of the error. With hardening enabled, bionic uses different header files that use inline functions instead of prototypes, and this causes the getcwd() redefinition error. Also, the pkg-config package's autoconf script doesn't enable -Werror=implicit-function-declaration during ./configure, but does enable it when compiling, and this causes a build failure because pthread.h doesn't contain pthread_cond_timedwait_monotonic.
I know this can't be merged as-is because it disables hardening on all platforms instead of just Android, but I don't know enough about Nix yet to figure out the right way to fix this.
At first I thought this was fixed by #192630. The issue being fixed there is the same incompatible getcwd declaration as is described here. The fix there is a bit different. However, then I noticed this is about aarch64-android-prebuilt.bash and that package still fails to build - but with a different error:
error: infinite recursion encountered
at /home/exarkun/Work/PrivateStorage/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:295:14:
294| args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)];
295| inherit stdenv;
| ^
296|
So I don't know if #192630 really fixed the specific build error described here or not.
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: cross-compilationBuilding packages on a different platform than they will be used on
Activity
io12 commentedon Dec 8, 2021
I think I figured out the cause of the error. With hardening enabled, bionic uses different header files that use inline functions instead of prototypes, and this causes the
getcwd()redefinition error. Also, thepkg-configpackage's autoconf script doesn't enable-Werror=implicit-function-declarationduring./configure, but does enable it when compiling, and this causes a build failure becausepthread.hdoesn't containpthread_cond_timedwait_monotonic.This patch fixes it:
I know this can't be merged as-is because it disables hardening on all platforms instead of just Android, but I don't know enough about Nix yet to figure out the right way to fix this.
Thanks!
exarkun commentedon Nov 16, 2022
At first I thought this was fixed by #192630. The issue being fixed there is the same incompatible
getcwddeclaration as is described here. The fix there is a bit different. However, then I noticed this is about aarch64-android-prebuilt.bash and that package still fails to build - but with a different error:So I don't know if #192630 really fixed the specific build error described here or not.