Past day or so I’ve worked on getting Coder building on my M1 mac and finally got it building. (Branch on my fork)
However, when I went back to test on linux builds I got strange errors
❯ nix build .#packages.x86_64-linux.coder
warning: Git tree '/Users/cmp/src/infra' is dirty
error: build of '/nix/store/d0yqvc27iz2nh3mpwp17ldjxdkxs6xa3-coder-2.0.2.drv' on 'ssh://cmp@nix.gorgon-basilisk.ts.net' failed: builder for '/nix/store/d0yqvc27iz2nh3mpwp17ldjxdkxs6xa3-coder-2.0.2.drv' failed with exit code 1;
last 10 log lines:
> 5: 0xe9d0d5 [node]
> 6: 0xeb1519 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
> 7: 0xe8dcaa v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
> 8: 0xe8f054 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
> 9: 0xe6f75d v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
> 10: 0x1257a5b v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
> 11: 0x16a2179 [node]
> ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command was killed with SIGABRT (Aborted): vite build
> ELIFECYCLE Command failed with exit code 1.
> /nix/store/fzb9wy1yz0hn69vxw12954szvrjnjjgk-stdenv-linux/setup: line 144: pop_var_context: head of shell_variables not a function context
For full logs, run 'nix log /nix/store/d0yqvc27iz2nh3mpwp17ldjxdkxs6xa3-coder-2.0.2.drv'.
error: builder for '/nix/store/d0yqvc27iz2nh3mpwp17ldjxdkxs6xa3-coder-2.0.2.drv' failed with exit code 1;
last 10 log lines:
> 5: 0xe9d0d5 [node]
> 6: 0xeb1519 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
> 7: 0xe8dcaa v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
> 8: 0xe8f054 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
> 9: 0xe6f75d v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
> 10: 0x1257a5b v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
> 11: 0x16a2179 [node]
> ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command was killed with SIGABRT (Aborted): vite build
> ELIFECYCLE Command failed with exit code 1.
> /nix/store/fzb9wy1yz0hn69vxw12954szvrjnjjgk-stdenv-linux/setup: line 144: pop_var_context: head of shell_variables not a function context
For full logs, run 'nix log /nix/store/d0yqvc27iz2nh3mpwp17ldjxdkxs6xa3-coder-2.0.2.drv'.
I’ve been working off a private flake I have with all the same changes as the package changes in my fork.
Was hoping to see if someone could replicate the issue on their side or point out anything obviously wrong.
It works fine on aarch64-darwin
and x86_64-darwin
but fails on both aarch64-linux
and x86_64-linux
on two separate systems (both VMs). The issue is clearly within the pnpm build
line of the preBuild
, but what exactly is causing the issue is unclear to me.
In theory, this should work because the Coder project has built a binary for Linux and it also works when using Darwin for me. I don’t think there is something specific to my environment messing with this, but would appreciate help making sure.