Closed TchaikaBtc closed 8 months ago
Can you share how you installed node?
Using Windows installer https://nodejs.org/en/download
Yea thats what I do also, will see if @kasperisager has any ideas
@TchaikaBtc Could you try enabling verbose output:
npx bare-dev configure --verbose
# C:\Program Files\CMake\bin\cmake.EXE -S C:\Users\Tchaika\Work\pear\bare -B C:\Users\Tchaika\Work\pear\bare\build -G Visual Studio 17 2022 -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -DCMAKE_MODULE_PATH=C:/Users/Tchaika/AppData/Roaming/npm/node_modules/bare-dev/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=x64 -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_LIBRARY_ARCHITECTURE=x64
-- Selecting Windows SDK version 10.0.22621.0 to target Windows .
-- Mirroring drive qogbhqbcxknrpeotyz7hk4x3mxuf6d9mhb1dxm6ms5sdn6hh1uso into C:/Users/Tchaika/Work/pear/bare/prebuilds
-- summary of build options:
Install prefix: C:/Program Files/bare
Target system: Windows
Compiler:
C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe (MSVC)
CFLAGS: /DWIN32 /D_WINDOWS
--
-- No build type selected, default to: Release
-- Use the C++ compiler to compile (MI_USE_CXX=ON)
--
-- Library base name: mimalloc
-- Version : 2.1
-- Build type : release
-- C++ Compiler : C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe
-- Compiler flags : /Zc:__cplusplus
-- Compiler defines : MI_WIN_NOREDIRECT=1
-- Link libraries : psapi;shell32;user32;advapi32;bcrypt
-- Build targets : shared
--
CMake Error at test/fixtures/CMakeLists.txt:9 (execute_process):
execute_process failed command indexes:
1: "Child return code: 1"
-- Configuring incomplete, errors occurred!
error: spawn() failed
Ah, it's the test fixture configuration that's failing! The original error message also mentions test/fixtures/CMakeLists.txt:9
. To configure the tests you actually need bare
in your path, it's a bit, ehr, recursive.
Try doing npm i -g bare-runtime
and then run the configuration again.
We should add that to the readme 👍
It's working. Thank you 👍
Pleasure! I'll add prebuilds for the test addon and check them in to fix that.
I am getting error while building bare from source on Windows machine
versions: node: v20.11.0 npm: 10.4.0 bare-dev: 0.7.14
Steps:
npx bare-dev vendor sync
npx bare-dev configure [--debug]
Step 3 produces error: