bnoordhuis / v8-cmake

The V8 JavaScript engine, but built with CMake instead of GN - WIP
BSD 3-Clause "New" or "Revised" License
183 stars 53 forks source link

run "cmake:debug" directive,but show "c++: internal compiler error Killed (program cc1plus)" #47

Closed RalapChen closed 3 years ago

RalapChen commented 3 years ago

I'm going to run the instructions on vscode. Running to 14%, there is an error, but I don't know how to solve it, can you help to solve it? I think the execution command may be too long, but I do not know how to solve it. Thank you for your. The error pattern is as follows. image

RalapChen commented 3 years ago

error info:

[build] FAILED: /usr/bin/c++ -DV8_CONCURRENT_MARKING -DV8_HAVE_TARGET_OS -DV8_OS_WINX64 -DV8_TARGET_ARCH_X64 -DV8_TARGET_OS_LINUX -I. -I../v8 -Igenerated -g -fno-exceptions -std=gnu++14 -MD -MT CMakeFiles/v8_compiler.dir/v8/src/compiler/js-heap-broker.cc.o -MF CMakeFiles/v8_compiler.dir/v8/src/compiler/js-heap-broker.cc.o.d -o CMakeFiles/v8_compiler.dir/v8/src/compiler/js-heap-broker.cc.o -c ../v8/src/compiler/js-heap-broker.cc [build] c++: internal compiler error: Killed (program cc1plus) [build] Please submit a full bug report, [build] with preprocessed source if appropriate. [build] See file:///usr/share/doc/gcc-5/README.Bugs for instructions. [build] ninja: build stopped: subcommand failed. [build] Build finished with exit code 1 [main] Failed to prepare executable target with name 'undefined'

bnoordhuis commented 3 years ago

That internal compiler error almost certainly means the compiler needed too much memory and was killed by the kernel's oom killer. You should find a note in the output of dmesg.

RalapChen commented 3 years ago

That internal compiler error almost certainly means the compiler needed too much memory and was killed by the kernel's oom killer. You should find a note in the output of dmesg.

It is up and running, thank you. What do I do next after the run is successful

image

RalapChen commented 3 years ago

I know how to use it. I can debug it successfully. Thank you

image