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

Build failure: pkgsCross.xxxx.stow #321182

Closed
fabian-thomas opened this issue Jun 20, 2024 · 2 comments · Fixed by #322091
Closed

Build failure: pkgsCross.xxxx.stow #321182

fabian-thomas opened this issue Jun 20, 2024 · 2 comments · Fixed by #322091

Comments

@fabian-thomas
Copy link
Contributor

Steps To Reproduce

Steps to reproduce the behavior:

  1. Build pkgsCross.xxxx.stow. E.g.:
    nix-build -I nixpkgs=channel:nixpkgs-unstable '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.stow

Build log

checking for perl... no
checking for perl5... no
configure: error: Perl not found; check your $PATH.

Additional context

The problem occurs because adding perl to buildInputs does not add it to nativeBuildInputs for cross compilation. I'm not entirely sure if perl is needed to build the derivation, but adding perl to nativeBuildInputs solves the problem:

nativeBuildInputs = [ perl ];
buildInputs = with perlPackages; [ perl IOStringy TestOutput ];

Note that this issue might exist for other packages too.

Related forum post: https://discourse.nixos.org/t/cross-compiling-perl-packages-like-stow-riscv-aarch/39221

Notify maintainers

@sarcasticadmin

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.0-47-generic, Ubuntu, 22.04.4 LTS (Jammy Jellyfish), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.2`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a 👍 reaction to issues you find important.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/cross-compiling-perl-packages-like-stow-riscv-aarch/39221/2

@sarcasticadmin
Copy link
Member

Thanks for report this Ill look into it shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants