Compile 9.4 under Debian 11

25 views
Skip to first unread message

Thorsten

unread,
Sep 8, 2021, 9:52:39 AM9/8/21
to v8-users
Hi,

I'm trying to compile 9.4.146.13 under a freshly installed Debian 11 system.

I've installed the depot_tools and did a "gclient sync".

Anyway it fails very quickly (see below). What did I forget?

Thanks!

$ gm x64.release
# mkdir -p out/x64.release
# echo > out/x64.release/args.gn << EOF
is_component_build = false
is_debug = false
target_cpu = "x64"
use_goma = false
v8_enable_backtrace = true
v8_enable_disassembler = true
v8_enable_object_print = true
v8_enable_verify_heap = true
dcheck_always_on = false
EOF
# gn gen out/x64.release
Done. Made 174 targets from 98 files in 320ms
# autoninja -C out/x64.release d8
ninja: Entering directory `out/x64.release'
ninja: error: '../../src/init/vm-cage.cc', needed by 'obj/v8_base_without_compiler/vm-cage.o', missing and no known rule to make it
Error! - V8 compilation finished with errors.



Jakob Kummerow

unread,
Sep 8, 2021, 11:14:35 AM9/8/21
to v8-users
Looks like something's messed up in your checkout. The 9.4.146.13 tag has no src/init/vm-cage.cc, and its BUILD.gn files don't refer to it, so I don't know why your ninja thinks it needs it.

I'd try git checkout -f 9.4.146.13; gclient sync; gm x64.release. If that doesn't help, rm -rf out/x64.release and try again.

Thorsten

unread,
Sep 9, 2021, 6:58:23 AM9/9/21
to v8-users
I've cloned the v8-repo again and it's working now. Thanks!

No idea what I've done ...
Reply all
Reply to author
Forward
0 new messages