Я хочу скомпилировать nodejs самостоятельно. Но построить не удалось. Кто-нибудь может помочь?
ОС: Ubuntu 24.10GCC: 14.2.0
узел: node-v20.9.0 отсюда
Python: 3.11. 0
процесс сборки
PATH=/usr/local/Python-3.11.0/bin:$PATH ./configure --prefix=/usr/local/node-v20.9.0
make -j 64
варианты сборки
-msign-return-address=all -pthread -Wno-unused-parameter -Wno-return-type -fno-strict-aliasing -O3 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++17 -MMD -MF /home/benchmark/repos/node-v20.9.0/out/Release/.deps//home/benchmark/repos/node-v20.9.0/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/heap/cppgc/process-heap-statistics.o.d.raw -c
сообщение об ошибке
In file included from ../deps/v8/src/heap/cppgc/process-heap-statistics.h:9,
from ../deps/v8/src/heap/cppgc/process-heap-statistics.cc:5:
../deps/v8/src/heap/cppgc/stats-collector.h: In member function ‘void cppgc::internal::StatsCollector::ForAllAllocationObservers(Callback)’:
../deps/v8/src/heap/cppgc/stats-collector.h:401:48: error: cannot convert ‘std::vector::iterator’ to ‘const char*’
401 | std::remove(allocation_observers_.begin(), allocation_observers_.end(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
| |
| std::vector::iterator
Подробнее здесь: https://stackoverflow.com/questions/793 ... -const-cha
Мобильная версия