Chromium Android build troubles...

407 views
Skip to first unread message

Ted Larson

unread,
Jun 17, 2025, 6:51:32 PM6/17/25
to Chromium-dev

I have been trying to get an Android build of Chromium to go to completion using these instructions here:

It's blowing up with this error - looks like it is failing to build V8

ninja: Entering directory `out/Default'
[3/28844] ACTION //v8:run_mksnapshot_d...toolchain/android:android_clang_arm64)
FAILED: gen/v8/src/builtins/builtins-effects.cc gen/v8/embedded.S snapshot_blob.bin
python3 ../../v8/tools/run.py ./clang_x64_v8_arm64/mksnapshot --turbo_instruction_scheduling --stress-turbo-late-spilling --target_os=android --target_arch=arm64 --embedded_src gen/v8/embedded.S --predictable --no-use-ic --builtins-effects-src gen/v8/src/builtins/builtins-effects.cc --turbo-elide-frames --embedded_variant Default --random-seed 314159265 --startup_blob snapshot_blob.bin --native-code-counters --concurrent-builtin-generation --concurrent-turbofan-max-threads=0 --verify-heap
Return code is -5
[10/28844] CXX obj/components/viz/service/service/compositor_frame_sink_impl.o
ninja: build stopped: subcommand failed.

It's interesting also because the system log is throwing this at the same time:
[9415835.830972] traps: V8 DefaultWorke[3175233] trap int3 ip:5bf95e06329d sp:77c1f17fe450 error:0 in mksnapshot[5bf959ff5000+448e000]

I used the instructions at the top of this post, so I am using that build configuration.  I suspect it's something wrong with my machine setup.  I don't think I am running out of memory or threads.  Any ideas of what to look at?

Thanks,

-Ted


Slava K

unread,
Jul 7, 2025, 11:15:40 AM7/7/25
to Chromium-dev, Ted Larson
Hello,

I'm having the exact same issue/error since last month; last successful build for me was on June 6th.  Ted, have you found a fix?  Does anyone have a solution?  Please help.

Thank you,

Slava

I O

unread,
Aug 26, 2025, 1:04:26 PM8/26/25
to Chromium-dev, Slava K, Ted Larson
Hi, 

In my case the solution was :
debug builds needs extra args.gn parmateres
  - v8_enable_debugging_features = false
  - v8_dcheck_always_on = false

for both release and debug "include_both_v8_snapshots = false" in args.gn.

The mksnapshot SEGFAULT-ed when executing "build step: __v8_run_mksnapshot_default___build_toolchain_android_android_clang_arm64__rule "./gen/v8/src/builtins/builtins-effects.cc""
Hope it helps.
Reply all
Reply to author
Forward
0 new messages