Open deciduously opened 3 days ago
Another flavor of failure:
Running `/Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/release/build/typenum-5c1762979595e15e/build-script-main`
Running `rustc --crate-name typenum --edition=2018 /Users/benlovy/.tangram/artifacts/dir_0115xgjb20dcckpkp10gt7tb0cvkzm8h0gzzk3eq2p34e41aeg9qn0/typenum-1.17.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("const-generics", "force_unix_path_separator", "i128", "no_std", "scale-info", "scale_info", "strict"))' -C metadata=bcf84b14fa7625ff -C extra-filename=-bcf84b14fa7625ff --out-dir /Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/aarch64-apple-darwin/release/deps --target aarch64-apple-darwin -C linker=cc -C strip=debuginfo -L dependency=/Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/aarch64-apple-darwin/release/deps -L dependency=/Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/release/deps --cap-lints allow -v --cfg 'feature="folded_multiply"'`
Compiling subtle v2.6.1
Running `rustc --crate-name subtle --edition=2018 /Users/benlovy/.tangram/artifacts/dir_0115xgjb20dcckpkp10gt7tb0cvkzm8h0gzzk3eq2p34e41aeg9qn0/subtle-2.6.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("const-generics", "core_hint_black_box", "default", "i128", "nightly", "std"))' -C metadata=4ede02e8e6667127 -C extra-filename=-4ede02e8e6667127 --out-dir /Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/aarch64-apple-darwin/release/deps --target aarch64-apple-darwin -C linker=cc -C strip=debuginfo -L dependency=/Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/aarch64-apple-darwin/release/deps -L dependency=/Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/release/deps --cap-lints allow -v`
error: couldn't read /Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/aarch64-apple-darwin/release/build/typenum-5ef8f1658b4a1e84/out/op.rs: No such file or directory (os error 2)
--> /Users/benlovy/.tangram/artifacts/dir_0115xgjb20dcckpkp10gt7tb0cvkzm8h0gzzk3eq2p34e41aeg9qn0/typenum-1.17.0/src/lib.rs:72:5
|
72 | include!(concat!(env!("OUT_DIR"), "/op.rs"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `typenum` (lib) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name typenum --edition=2018 /Users/benlovy/.tangram/artifacts/dir_0115xgjb20dcckpkp10gt7tb0cvkzm8h0gzzk3eq2p34e41aeg9qn0/typenum-1.17.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("const-generics", "force_unix_path_separator", "i128", "no_std", "scale-info", "scale_info", "strict"))' -C metadata=bcf84b14fa7625ff -C extra-filename=-bcf84b14fa7625ff --out-dir /Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/aarch64-apple-darwin/release/deps --target aarch64-apple-darwin -C linker=cc -C strip=debuginfo -L dependency=/Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/aarch64-apple-darwin/release/deps -L dependency=/Users/benlovy/.tangram/tmp/069a08ekfnwz133796hwvmzv58/output/target/release/deps --cap-lints allow -v --cfg 'feature="folded_multiply"'` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
-> the process did not exit successfully
Building without parallel jobs and using an "unsafe" checksum to allow the build script to access network:
Running `/Users/benlovy/.tangram/tmp/069a0d4wfss118dj2x2evsht54/output/target/release/build/tangram_server-8be5cb5105c0df9d/build-script-build`
error: failed to run custom build command for `tangram_server v0.0.0 (/Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/packages/server)`
Caused by:
process didn't exit successfully: `/Users/benlovy/.tangram/tmp/069a0d4wfss118dj2x2evsht54/output/target/release/build/tangram_server-8be5cb5105c0df9d/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-env-changed=DASH_AARCH64_LINUX
cargo:rerun-if-env-changed=DASH_X86_64_LINUX
cargo:rerun-if-env-changed=ENV_AARCH64_LINUX
cargo:rerun-if-env-changed=ENV_X86_64_LINUX
cargo:rerun-if-changed=../../bun.lockb
bun install v1.1.30 (7996d06b)
--- stderr
EACCES: Permission denied while installing @tangramdotdev/cli
EACCES: Permission denied while installing @tangramdotdev/compiler
EACCES: Permission denied while installing @tangramdotdev/runtime
EACCES: Permission denied while installing tangram
error: Unexpected installing wrappy (copying files from cache to destination)
// .. truncated
error: Unexpected installing nth-check (copying files from cache to destination)
error: FileNotFound installing @vscode/vsce (opening cache/package/version dir)
error: Unexpected installing yallist (copying files from cache to destination)
error: Unexpected installing tmp (copying files from cache to destination)
error: FileNotFound installing @esbuild/darwin-arm64 (opening cache/package/version dir)
error: Unexpected installing asynckit (copying files from cache to destination)
error: Unexpected installing supports-color (copying files from cache to destination)
error: Unexpected installing jwa (copying files from cache to destination)
error: Unexpected installing combined-stream (copying files from cache to destination)
error: Unexpected installing htmlparser2 (copying files from cache to destination)
error: Unexpected installing domhandler (copying files from cache to destination)
error: Unexpected installing xml2js (copying files from cache to destination)
error: Unexpected installing semver (copying files from cache to destination)
AccessDenied: Failed to open node_modules folder for minimatch in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/vscode-languageclient/node_modules
AccessDenied: Failed to open node_modules folder for @types/node in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/bun-types/node_modules
AccessDenied: Failed to open node_modules folder for minimatch in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/glob/node_modules
AccessDenied: Failed to open node_modules folder for semver in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/parse-semver/node_modules
AccessDenied: Failed to open node_modules folder for brace-expansion in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/vscode-languageclient/node_modules/minimatch/node_modules
AccessDenied: Failed to open node_modules folder for @types/node in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/@types/ws/node_modules
AccessDenied: Failed to open node_modules folder for undici-types in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/bun-types/node_modules/@types/node/node_modules
AccessDenied: Failed to open node_modules folder for @azure/abort-controller in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/@azure/core-auth/node_modules
AccessDenied: Failed to open node_modules folder for @azure/abort-controller in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/@azure/core-client/node_modules
AccessDenied: Failed to open node_modules folder for @azure/core-rest-pipeline in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/@azure/core-client/node_modules
AccessDenied: Failed to open node_modules folder for @azure/abort-controller in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/@azure/core-rest-pipeline/node_modules
AccessDenied: Failed to open node_modules folder for @azure/abort-controller in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/@azure/core-util/node_modules
AccessDenied: Failed to open node_modules folder for brace-expansion in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/glob/node_modules/minimatch/node_modules
AccessDenied: Failed to open node_modules folder for lru-cache in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/path-scurry/node_modules
AccessDenied: Failed to open node_modules folder for undici-types in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/@types/ws/node_modules/@types/node/node_modules
AccessDenied: Failed to open node_modules folder for jws in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/jsonwebtoken/node_modules
AccessDenied: Failed to open node_modules folder for ms in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/debug/node_modules
AccessDenied: Failed to open node_modules folder for jwa in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/jsonwebtoken/node_modules/jws/node_modules
AccessDenied: Failed to open node_modules folder for emoji-regex in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/string-width-cjs/node_modules
AccessDenied: Failed to open node_modules folder for strip-ansi in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/string-width-cjs/node_modules
AccessDenied: Failed to open node_modules folder for ansi-regex in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/strip-ansi-cjs/node_modules
AccessDenied: Failed to open node_modules folder for ansi-styles in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi/node_modules
AccessDenied: Failed to open node_modules folder for ansi-styles in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi-cjs/node_modules
AccessDenied: Failed to open node_modules folder for string-width in error: Failed to link @biomejs/biome: EPERM
error: Failed to link typescript: EPERM
/Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi-cjs/node_modules
AccessDenied: Failed to open node_modules folder for strip-ansi in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi-cjs/node_modules
AccessDenied: Failed to open node_modules folder for ansi-regex in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules
AccessDenied: Failed to open node_modules folder for color-convert in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/node_modules
AccessDenied: Failed to open node_modules folder for emoji-regex in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi-cjs/node_modules/string-width/node_modules
AccessDenied: Failed to open node_modules folder for ansi-regex in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules
AccessDenied: Failed to open node_modules folder for color-name in /Users/benlovy/.tangram/artifacts/dir_016mr59p9neh8k89hqscr3y20hrrd7k8nx91xpm1cq30vg1a43nsg0/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/node_modules/color-convert/node_modules
error: FileNotFound installing @vscode/vsce-sign-darwin-arm64 (opening cache/package/version dir)
thread 'main' panicked at packages/server/build.rs:103:10:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
-> the process did not exit successfully
No crate issues, but permission issues at the end. Also, the build should not require network permissions to run, we should have acquired everything we need before this process begins.
NixOS has been trying to create a bun
module to generate node_modules
, and they are running into similar issues.
https://github.com/NixOS/nixpkgs/issues/255890#issuecomment-2308881422
Both astro/vite use cache directories inside node_modules (specifically node_modules/.astro and node_modules/.vite) during the build, which means that the node_modules directory needs to be writeable as well.
The definition provided in #279 should correctly build Tangram-in-Tangram. The build currently fails to compile, with subsequent runs failing on different subcrates. Here is an example error: