Hello. I’m a beginner in Nix and just hacking my way around through it. I’ve encountered this error when trying to cross-compile newlib
in armv7l-hf-multiplatform
:
nix build nixpkgs#pkgsCross.armv7l-hf-multiplatform.newlib
error: builder for '/nix/store/6i775isfk13apd1cw7zcbwg54y5bc77x-newlib-armv7l-unknown-linux-gnueabihf-4.3.0.20230120.drv' failed with exit code 2;
last 10 log lines:
> Try 'cp --help' for more information.
> make[4]: *** [Makefile:4504: arm/nano.specs] Error 1
> make[4]: Leaving directory '/build/newlib-4.3.0.20230120/armv7l-unknown-linux-gnueabihf/libgloss'
> make[3]: *** [Makefile:4071: all-recursive] Error 1
> make[3]: Leaving directory '/build/newlib-4.3.0.20230120/armv7l-unknown-linux-gnueabihf/libgloss'
> make[2]: *** [Makefile:1096: all] Error 2
> make[2]: Leaving directory '/build/newlib-4.3.0.20230120/armv7l-unknown-linux-gnueabihf/libgloss'
> make[1]: *** [Makefile:9529: all-target-libgloss] Error 2
> make[1]: Leaving directory '/build/newlib-4.3.0.20230120'
> make: *** [Makefile:880: all] Error 2
For full logs, run 'nix log /nix/store/6i775isfk13apd1cw7zcbwg54y5bc77x-newlib-armv7l-unknown-linux-gnueabihf-4.3.0.20230120.drv'.
Though it builds successfully when trying it on arm-embedded
as also referred in: https://github.com/NixOS/nixpkgs/issues/188817
nix build nixpkgs#pkgsCross.arm-embedded.newlib && ls -lhLs result/
total 8.0K
4.0K dr-xr-xr-x 4 root root 4.0K Jan 1 1970 arm-none-eabi
4.0K dr-xr-xr-x 3 root root 4.0K Jan 1 1970 share
Can someone shed a light of what’s going on? Thanks!