android-nixpkgs icon indicating copy to clipboard operation
android-nixpkgs copied to clipboard

Build failure of build-tools-28-0-3

Open BatteredBunny opened this issue 11 months ago • 2 comments

Getting a build failure for build-tools-28-0-3 Removing lld from the postUnpack's for loop seems to fix it.

❯ nix log /nix/store/2jbfagq3qndwqkprgdglyrc757i5h1l5-build-tools-28-0-3-28.0.3.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/2jbfagq3qndwqkprgdglyrc757i5h1l5-build-tools-28-0-3-28.0.3.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/2fj05lybgc3i98z20ks4w6qhnz9v1z53-build-tools_r28.0.3-linux.zip
source root is /nix/store/03bm5vzkkl0m7cvd0hkka8fx42yk3b3r-build-tools-28-0-3-28.0.3
substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file '/nix/store/03bm5vzkkl0m7cvd0hkka8fx42yk3b3r-build-tools-28-0-3-28.0.3/apksigner')
substitute(): ERROR: file '/nix/store/03bm5vzkkl0m7cvd0hkka8fx42yk3b3r-build-tools-28-0-3-28.0.3/lld' does not exist
/nix/store/3qnm3nwjajgqa771dmi2dnwxrw0kzq5m-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context

BatteredBunny avatar Mar 07 '24 14:03 BatteredBunny

how did you get this to work?

Fish4203 avatar May 09 '24 12:05 Fish4203

https://github.com/tadfisher/android-nixpkgs/blob/2d8181caef279f19c4a33dc694723f89ffc195d4/pkgs/android/build-tools.nix#L33 Remove lld from here

BatteredBunny avatar May 09 '24 13:05 BatteredBunny