13 Sep 2025 |
kfiz | So I've been pulling in wl-clipboard - which as discussed above pulls in wayland - directly via an option in my neovim config. That was the reason for my build failures. neovim package itself builds fine. | 13:04:25 |
| oak 🏳️🌈♥️ changed their profile picture. | 09:45:45 |
| RichInOverdraft removed their profile picture. | 16:44:37 |
| validitymaiden set a profile picture. | 17:31:45 |
| validitymaiden changed their profile picture. | 17:32:26 |
14 Sep 2025 |
Randy Eckenrode | I made a note of the two ld64 PRs. emily, are there any others planned? I probably won’t update my branch with the patches until I do the ld64 update. | 00:34:11 |
Randy Eckenrode | * I made a note of the two ld64 PRs. @emilazy:matrix.org, are there any others planned? I probably won’t update my branch with the patches until I do the ld64 update, but I want to make sure I have all the fixes. | 00:34:24 |
emily | for ld64? that's all I'm running with | 00:35:11 |
emily | there's other PRs in the pipeline but not ld64 ones | 00:35:23 |
| dran1x joined the room. | 03:26:10 |
| Emma [it/its] joined the room. | 08:39:49 |
🐰 xiaoxiangmoe | Is there any gcc alias for clang in macos nix? | 13:40:28 |
🐰 xiaoxiangmoe | Some app by node-gyp relies on gcc, such as tree-sitter | 13:41:28 |
🐰 xiaoxiangmoe | * Some app by node-gyp relies on gcc command, but use clang parameters, such as tree-sitter | 13:42:20 |
Randy Eckenrode | We typically patch those builds not to hardcode a compiler. | 13:43:02 |
Randy Eckenrode | Or using something like cc${stdenv.cc.targetPrefix} . | 13:48:26 |
Randy Eckenrode | * Or using something like ${stdenv.cc.targetPrefix}cc . | 13:49:38 |
🐰 xiaoxiangmoe | npm error path /private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter
npm error command failed
npm error command sh -c node-gyp-build
npm error make: 进入目录“/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter/build”
npm error TOUCH Release/obj.target/node_modules/node-addon-api/node_addon_api_except.stamp
npm error CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
npm error make: 离开目录“/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter/build”
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.4.2
npm error gyp info using node@22.19.0 | darwin | arm64
npm error gyp info find Python using Python version 3.13.7 found at "/nix/store/i8r431v9g2hwh9g0kkp2lrgd426szgnq-python3-3.13.7/bin/python3"
npm error gyp info spawn /nix/store/i8r431v9g2hwh9g0kkp2lrgd426szgnq-python3-3.13.7/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/.home/Library/Caches/node-gyp/22.19.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/private/tmp/nix-build-code-oss-1.104.0.drv-0/.home/Library/Caches/node-gyp/22.19.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/private/tmp/nix-build-code-oss-1.104.0.drv-0/.home/Library/Caches/node-gyp/22.19.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../vendor/tree-sitter/lib/src/lib.c:1:
npm error In file included from ../vendor/tree-sitter/lib/src/./alloc.c:1:
npm error ../vendor/tree-sitter/lib/src/./alloc.h:8:10: fatal error: 'stdbool.h' file not found
npm error 8 | #include <stdbool.h>
npm error | ^~~~~~~~~~~
npm error 1 error generated.
npm error make: *** [tree_sitter.target.mk:128:Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o] 错误 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/lib/build.js:219:23)
npm error gyp ERR! System Darwin 24.5.0
npm error gyp ERR! command "/nix/store/3scj3c1qxh5iclf8jy5hbl9pki40y77n-nodejs-22.19.0/bin/node" "/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter
npm error gyp ERR! node -v v22.19.0
npm error gyp ERR! node-gyp -v v11.4.2
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /private/tmp/nix-build-code-oss-1.104.0.drv-0/cache/_logs/2025-09-14T13_54_19_466Z-debug-0.log
ERR Process exited with code: 1
npm error code 1
npm error path /private/tmp/nix-build-code-oss-1.104.0.drv-0/source
npm error command failed
npm error command sh -c node build/npm/postinstall.js
npm error A complete log of this run can be found in: /private/tmp/nix-build-code-oss-1.104.0.drv-0/cache/_logs/2025-09-14T13_53_42_754Z-debug-0.log
| 13:55:02 |
🐰 xiaoxiangmoe | I encountered a very weird error, by compile vscode | 13:55:28 |
🐰 xiaoxiangmoe | I added llvmPackages_17.clang in nativeBuildInputs, it also not works | 13:56:26 |
emily | we already have a tree-sitter package, try devendoring it | 13:56:36 |
🐰 xiaoxiangmoe | By I need node-tree-sitter | 13:58:13 |
🐰 xiaoxiangmoe | npm error ../vendor/tree-sitter/lib/src/./alloc.h:8:10: fatal error: 'stdbool.h' file not found npm error 8 | #include <stdbool.h> npm error | ^~~~~~~~~~~ npm error 1 error generated.
This shouldn't be, I already added
llvmPackages.clang
llvmPackages.libcxx
llvmPackages.libclang
cctools
cctools.libtool
| 14:00:35 |
Randy Eckenrode | That happens when you use an unwrapped compiler. | 14:01:08 |
Randy Eckenrode | Also, which LLVM versions are being dropped? Doesn’t that includr LLVM 17? | 14:01:44 |
Randy Eckenrode | * | 14:01:51 |
emily | yes | 14:01:54 |
🐰 xiaoxiangmoe | Oh, I see
gcc-alias-by-clang = runCommand "gcc-alias-by-clang" { } ''
mkdir -p $out/bin
ln -s ${clang.cc}/bin/clang $out/bin/gcc
ln -s ${clang.cc}/bin/clang++ $out/bin/g++
'';
I added gcc-alias-by-clang | 14:01:57 |
K900 | This is insane | 14:02:15 |
K900 | What the fuck are you doing that requires this | 14:02:20 |