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

NodeJS 14 flake does not build on MacOS Sonoma (./gyp-mac-tool: /usr/bin/env: bad interpreter: Operation not permitted) #261817

Closed
ostrolucky opened this issue Oct 18, 2023 · 1 comment
Labels
0.kind: bug Something is broken 0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin 6.topic: nodejs

Comments

@ostrolucky
Copy link
Contributor

Describe the bug

NodeJS 14.x does not build

❯ NIXPKGS_ALLOW_INSECURE=1 nix shell nixpkgs\#nodejs-14_x --impure
error: builder for '/nix/store/15g22p82hr8m4ip0058bbwkixw0nc72b-nodejs-14.21.3.drv' failed with exit code 2;
       last 10 log lines:
       >   clang++ -o /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest-printers.o ../deps/googletest/src/gtest-printers.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DICU_NO_USER_DATA_OVERRIDE' '-D_DARWIN_USE_64_BIT_INODE=1' '-DGTEST_HAS_POSIX_RE=0' '-DGTEST_LANG_CXX11=1' -I/nix/store/lj8i972fkxn4q6j9sr8xwr0dhy4nx0p4-zlib-1.3-dev/include -I/nix/store/gcwjgxnvllki8x93g71h0l60m65rrl3g-libuv-1.46.0-dev/include -I/nix/store/3q7qmakqjq2d8kcsqpfcbf22hwj4vlx9-openssl-1.1.1w-dev/include -I/nix/store/7s8bqcnx0bsd50027xdcwja11f46j9ig-icu4c-73.2-dev/include -I../deps/googletest -I../deps/googletest/include  -O3 -gdwarf-2 -mmacosx-version-min=10.13 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/.deps//private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest-printers.o.d.raw   -c
       >   clang++ -o /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest-test-part.o ../deps/googletest/src/gtest-test-part.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DICU_NO_USER_DATA_OVERRIDE' '-D_DARWIN_USE_64_BIT_INODE=1' '-DGTEST_HAS_POSIX_RE=0' '-DGTEST_LANG_CXX11=1' -I/nix/store/lj8i972fkxn4q6j9sr8xwr0dhy4nx0p4-zlib-1.3-dev/include -I/nix/store/gcwjgxnvllki8x93g71h0l60m65rrl3g-libuv-1.46.0-dev/include -I/nix/store/3q7qmakqjq2d8kcsqpfcbf22hwj4vlx9-openssl-1.1.1w-dev/include -I/nix/store/7s8bqcnx0bsd50027xdcwja11f46j9ig-icu4c-73.2-dev/include -I../deps/googletest -I../deps/googletest/include  -O3 -gdwarf-2 -mmacosx-version-min=10.13 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/.deps//private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest-test-part.o.d.raw   -c
       >   clang++ -o /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest-typed-test.o ../deps/googletest/src/gtest-typed-test.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DICU_NO_USER_DATA_OVERRIDE' '-D_DARWIN_USE_64_BIT_INODE=1' '-DGTEST_HAS_POSIX_RE=0' '-DGTEST_LANG_CXX11=1' -I/nix/store/lj8i972fkxn4q6j9sr8xwr0dhy4nx0p4-zlib-1.3-dev/include -I/nix/store/gcwjgxnvllki8x93g71h0l60m65rrl3g-libuv-1.46.0-dev/include -I/nix/store/3q7qmakqjq2d8kcsqpfcbf22hwj4vlx9-openssl-1.1.1w-dev/include -I/nix/store/7s8bqcnx0bsd50027xdcwja11f46j9ig-icu4c-73.2-dev/include -I../deps/googletest -I../deps/googletest/include  -O3 -gdwarf-2 -mmacosx-version-min=10.13 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/.deps//private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest-typed-test.o.d.raw   -c
       >   clang++ -o /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest.o ../deps/googletest/src/gtest.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DICU_NO_USER_DATA_OVERRIDE' '-D_DARWIN_USE_64_BIT_INODE=1' '-DGTEST_HAS_POSIX_RE=0' '-DGTEST_LANG_CXX11=1' -I/nix/store/lj8i972fkxn4q6j9sr8xwr0dhy4nx0p4-zlib-1.3-dev/include -I/nix/store/gcwjgxnvllki8x93g71h0l60m65rrl3g-libuv-1.46.0-dev/include -I/nix/store/3q7qmakqjq2d8kcsqpfcbf22hwj4vlx9-openssl-1.1.1w-dev/include -I/nix/store/7s8bqcnx0bsd50027xdcwja11f46j9ig-icu4c-73.2-dev/include -I../deps/googletest -I../deps/googletest/include  -O3 -gdwarf-2 -mmacosx-version-min=10.13 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/.deps//private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest/deps/googletest/src/gtest.o.d.raw   -c
       >   rm -f /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/libgtest_main.a && ./gyp-mac-tool filter-libtool libtool  -static -o /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/libgtest_main.a /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/obj.target/gtest_main/deps/googletest/src/gtest_main.o
       > /nix/store/zqx1fik7mcyg1037s015kfbw2zq0qhqn-bash-5.2-p15/bin/bash: ./gyp-mac-tool: /usr/bin/env: bad interpreter: Operation not permitted
       > make[1]: *** [deps/googletest/gtest_main.target.mk:159: /private/tmp/nix-build-nodejs-14.21.3.drv-0/node-v14.21.3/out/Release/libgtest_main.a] Error 126
       > make[1]: *** Waiting for unfinished jobs....
       > rm 573bc1063de21e422684176821c19c6be6dd6358.intermediate
       > make: *** [Makefile:109: node] Error 2
       For full logs, run 'nix log /nix/store/15g22p82hr8m4ip0058bbwkixw0nc72b-nodejs-14.21.3.drv'.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Have latest Mac OS beta version (in my case it's Version 14.1 Beta (23B5067a))
  2. Run NIXPKGS_ALLOW_INSECURE=1 nix shell nixpkgs\#nodejs-14_x --impure

Notify maintainers

@goibhniu @gilligan @cko @marsam

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: `"aarch64-darwin"`
 - host os: `Darwin 23.1.0, macOS 14.1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixpkgs"`
 - channels(gostrolucky): `"darwin, home-manager"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
@ostrolucky ostrolucky added the 0.kind: bug Something is broken label Oct 18, 2023
@liketechnik
Copy link
Member

The error message ./gyp-mac-tool: /usr/bin/env: bad interpreter: Operation not permitted is the same as in #261820. Closing this in favor of it, since it has more details.

@liketechnik liketechnik closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
@liketechnik liketechnik added 6.topic: darwin Running or building packages on Darwin 6.topic: nodejs 0.kind: build failure A package fails to build labels Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin 6.topic: nodejs
Projects
None yet
Development

No branches or pull requests

2 participants