nodenv / node-build

Install NodeJS versions
MIT License
268 stars 80 forks source link

Build fails on macOS M1: No such file or directory #840

Closed AlexCzar closed 10 months ago

AlexCzar commented 10 months ago

On macOS M1 a build started with the command TMPDIR=chache node-build --compile -v 21.1.0 ./ fails with the following error:

clang: error: unable to make temporary file: No such file or directory
make[1]: *** [/Users/username/tmp/chache/node-build.20231102113833.66123.DxCw1D/node-v21.1.0/out/Release/obj.target/openssl/deps/openssl/config/archs/darwin64-arm64-cc/asm_avx2/crypto/bn/armv8-mont.o] Error 1
make: *** [node] Error 2

BUILD FAILED (OS X 13.6 using node-build 4.9.129)
AlexCzar commented 10 months ago

I'm not sure, what exactly is going on, but turns out the culprit isn't macOS or node-build, but instead a combination of macOS, node-build and rust uutils, I switched to built-in coreutils and the build works successfully.