snapweb: fails to cross build (NixOS 24.11)
Opened this issue · 2 comments
jwillikers commented
Describe the bug
It fails to build when cross-building.
error: builder for '/nix/store/dlpv8pzx9dn8gzq95i44k3l8a1amr0hx-snapweb-aarch64-unknown-linux-gnu-0.8.0.drv' failed with exit code 1;
last 25 log lines:
> node_modules/rimraf/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/resolve/bin/resolve: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/terser/bin/terser: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/terser/bin/uglifyjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/typescript/bin/tsc: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/typescript/bin/tsserver: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/update-browserslist-db/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/vite/bin/vite.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/which/bin/node-which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/babel-plugin-polyfill-corejs2/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/rc/cli.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/regjsparser/node_modules/jsesc/bin/jsesc: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> node_modules/regjsparser/bin/parser: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/z0ivg3dbal4sk5h0c7p1pfkxc7ff98ri-nodejs-20.18.0/bin/node"
> npm error code 1
> npm error path /build/source/node_modules/sharp
> npm error command failed
> npm error command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
> npm error sharp: Are you trying to install as a root or sudo user?
> npm error sharp: - For npm <= v6, try again with the "--unsafe-perm" flag
> npm error sharp: - For npm >= v8, the user must own the directory "npm install" is run in
> npm error sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
> npm error sharp: Installation error: EACCES: permission denied, mkdir '/nix/store/vk5vbgim9z4vj0m8wyxrflr9fbbyqsix-snapweb-0.8.0-npm-deps/_libvips'
> npm error Log files were not written due to an error writing to the directory: /nix/store/vk5vbgim9z4vj0m8wyxrflr9fbbyqsix-snapweb-0.8.0-npm-deps/_logs
> npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
For full logs, run 'nix log /nix/store/dlpv8pzx9dn8gzq95i44k3l8a1amr0hx-snapweb-aarch64-unknown-linux-gnu-0.8.0.drv'.
error: 1 dependencies of derivation '/nix/store/vng9an53lnii82n23m762xx2124cn677-unit-snapserver.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/whd5sksn1lj1hzjzmxlvydlyaq1y2gk0-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gcpsgi6myp2daa5sjcl93ww9zb02drfp-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/srsd63qwkv574hz67r03pds5694ync8d-nixos-system-piceiver-24.11.20241116.057f63b.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5ishda89c1j550hm49qw4b2jzawakxq6-ext4-fs.img.zst-aarch64-unknown-linux-gnu.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r06ppd7bli77iy689ks573969impcczk-nixos-sd-image-24.11.20241116.057f63b-aarch64-linux.img-aarch64-unknown-linux-gnu.drv' failed to build
nix failed with exit status 1.
error: Recipe `build` failed with exit code 1
Steps To Reproduce
Steps to reproduce the behavior:
- Fix
matio
,openslide
, andpoppler
to cross-compile. nix build .#pkgsCross.aarch64-multiplatform.snapweb
Expected behavior
Screenshots
Additional context
Metadata
Notify maintainers
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
ettom commented
Can you push your branch with the changes of step 1?
jwillikers commented
Can you push your branch with the changes of step 1?
Yeah, I've made the branch snapweb-cross-issue-357377
that incorporates those changes.