Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22276

building nodejs from source failed: cannot convert std::vector to const char *

$
0
0

OS: ubuntu 24.10GCC: 14.2.0node: node-v20.9.0 from herePython: 3.11.0

building process

PATH=/usr/local/Python-3.11.0/bin:$PATH ./configure --prefix=/usr/local/node-v20.9.0make -j 64

build options

 -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

error message

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<cppgc::internal::StatsCollector::AllocationObserver*>::iterator’ to ‘const char*’  401 |         std::remove(allocation_observers_.begin(), allocation_observers_.end(),      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~      |                                                |      |                                                std::vector<cppgc::internal::StatsCollector::AllocationObserver*>::iterator

Viewing all articles
Browse latest Browse all 22276

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>