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

php fails to cross compile on riscv64 #310933

Open
onny opened this issue May 11, 2024 · 0 comments
Open

php fails to cross compile on riscv64 #310933

onny opened this issue May 11, 2024 · 0 comments
Labels
0.kind: bug 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 6.topic: riscv64

Comments

@onny
Copy link
Contributor

onny commented May 11, 2024

Describe the bug

Cross compilation fails with

Installing build environment:     /nix/store/yrr8ii7rq2h62wiw06bv4b4nibj4g72s-php-riscv64-unknown-linux-gnu-8.2.19/lib/build/
Installing helper programs:       /nix/store/yrr8ii7rq2h62wiw06bv4b4nibj4g72s-php-riscv64-unknown-linux-gnu-8.2.19/bin/
Installing PEAR environment:      /nix/store/yrr8ii7rq2h62wiw06bv4b4nibj4g72s-php-riscv64-unknown-linux-gnu-8.2.19/lib/php/
mkdir: cannot create directory '/nix/store/yrr8ii7rq2h62wiw06bv4b4nibj4g72s-php-riscv64-unknown-linux-gnu-8.2.19/bin': File exists
  program: phpize
  program: php-config
Installing man pages:             /nix/store/yrr8ii7rq2h62wiw06bv4b4nibj4g72s-php-riscv64-unknown-linux-gnu-8.2.19/share/man/man1/
Installing PHP CLI man page:      /nix/store/yrr8ii7rq2h62wiw06bv4b4nibj4g72s-php-riscv64-unknown-linux-gnu-8.2.19/share/man/man1/
Installing PHP CGI man page:      /nix/store/yrr8ii7rq2h62wiw06bv4b4nibj4g72s-php-riscv64-unknown-linux-gnu-8.2.19/share/man/man1/
  page: phpize.1
Generating phar.phar
Skipping phar.phar generating during cross compilation
/nix/store/h3bhzvz9ipglcybbcvkxvm4vg9lwvqg4-bash-5.2p26/bin/bash: line 1: /build/php-8.2.19/sapi/cli/php: cannot execute binary file: Exec fo>
make[1]: *** [Makefile:451: install-pear-installer] Error 126
make: *** [Makefile:456: install-pear] Error 2
make: *** Waiting for unfinished jobs....

Steps To Reproduce

Steps to reproduce the behavior:

  1. cd nixpkgs
  2. nix build .#pkgsCross.riscv64.php

Expected behavior

Builds without error

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

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

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.9, NixOS, 23.11 (Tapir), 23.11.20240509.9a9960b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a 👍 reaction to issues you find important.

@onny onny added 0.kind: bug 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 6.topic: riscv64 labels May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 6.topic: riscv64
Projects
None yet
Development

No branches or pull requests

1 participant