Facing error while cross-compiling Chromium for RISC-V64.

668 views
Skip to first unread message

Sharath

unread,
Dec 29, 2025, 10:45:08 AM12/29/25
to Chromium-dev
Hi Team,

I am attempting to build the Chromium browser for a RISC-V64 architecture board running Ubuntu 22.04 with a Wayland desktop environment.
I am cross-compiling from an Ubuntu 22.04 x86-64 platform.

Below are the steps I have followed:

# Update package lists
sudo apt-get update

# Install depot-tools and add to PATH
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PWD/depot_tools:$PATH
source ~/.bashrc

# Fetch the Chromium source code
mkdir chromium && cd chromium
fetch --nohooks chromium
cd src/

# Install build dependencies
./build/install-build-deps.sh

# Configure build arguments for RISC-V64 with Wayland
gn args out/riscv64-wayland

The build arguments I'm using are:

target_os = "linux"
target_cpu = "riscv64"
use_ozone = true
ozone_platform_wayland = true
angle_use_wayland = true
is_debug = false
symbol_level = 0
is_component_build = false
ffmpeg_branding = "Chromium"
proprietary_codecs = false
cflags_cc = [ "-Wno-error=deprecated-declarations" ]
use_siso = false

# Install sysroot for RISC-V64
./build/linux/sysroot_scripts/install-sysroot.py --arch=riscv64

# Sync dependencies and generate build files
gclient sync
gn gen out/riscv64-wayland

# Build Chromium
autoninja -C out/riscv64-wayland chrome

During the ninja build step, I'm encountering the following error:

ninja: Entering directory `out/riscv64-wayland'
[3/82260] CXX obj/base/base/process_metrics_posix.o
FAILED: obj/base/base/process_metrics_posix.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/base/base/process_metrics_posix.o.d -DBASE_IMPLEMENTATION -DIS_RAW_PTR_IMPL -DUSE_SYMBOLIZE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-22-init-17020-gbd1bd178-2\" -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_INSTRUMENTED_WITH_ASAN=0 -DCR_LIBCXX_REVISION=9d1abf977e3d2ce03f6cc22513412408a932d9ac -DCR_SYSROOT_KEY=20250129T203412Z-1 -DDCHECK_ALWAYS_ON=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLOG_EXPORT= -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUSE_LIBCXX_MODULES -I../.. -Igen -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -I../../third_party/zlib -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wgnu -Wno-gnu-anonymous-struct -Wno-gnu-conditional-omitted-operand -Wno-gnu-include-next -Wno-gnu-label-as-value -Wno-gnu-redeclared-enum -Wno-gnu-statement-expression -Wno-gnu-zero-variadic-macro-arguments -Wno-zero-length-array -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-thread-safety-reference-return -Wno-nontrivial-memcall -Wno-uninitialized-const-pointer -Wexit-time-destructors -Wshadow -Werror -fno-delete-null-pointer-checks -fno-strict-overflow -fno-ident -fno-math-errno -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../clang-crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -Wa,--crel,--allow-experimental-crel -fcomplete-member-pointers --target=riscv64-linux-gnu -mabi=lp64d -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -Xclang -fmodule-file-home-is-cwd -Xclang -fmodules-cache-path=/not_exist_dummy_dir --warning-suppression-mappings=../../build/config/warning_suppression.txt -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -g0 -fsanitize=array-bounds -fsanitize-trap=array-bounds -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Xclang -add-plugin -Xclang raw-ptr-plugin -Xclang -plugin-arg-raw-ptr-plugin -Xclang check-raw-ptr-to-stack-allocated -Xclang -plugin-arg-raw-ptr-plugin -Xclang disable-check-raw-ptr-to-stack-allocated-error -Xclang -plugin-arg-raw-ptr-plugin -Xclang raw-ptr-exclude-path=../../third_party/dawn/ -Xclang -plugin-arg-raw-ptr-plugin -Xclang raw-ptr-exclude-path=../../build/config/clang/chrome/test/fuzzing/webidl_fuzzing/ -Xclang -plugin-arg-raw-ptr-plugin -Xclang check-raw-ptr-fields -Xclang -plugin-arg-raw-ptr-plugin -Xclang check-span-fields -Xclang -plugin-arg-raw-ptr-plugin -Xclang check-raw-ref-fields -DUNSAFE_BUFFERS_BUILD -Wunsafe-buffer-usage -Wno-error=unsafe-buffer-usage -Xclang -add-plugin -Xclang unsafe-buffers -Xclang -plugin-arg-unsafe-buffers -Xclang ../../build/config/unsafe_buffers_paths.txt -Wimplicit-int-conversion -Wshorten-64-to-32 -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare -Wglobal-constructors -isystem../../build/linux/debian_trixie_riscv64-sysroot/usr/include/glib-2.0 -isystem../../build/linux/debian_trixie_riscv64-sysroot/usr/include/sysprof-6 -isystem../../build/linux/debian_trixie_riscv64-sysroot/usr/lib/riscv64-linux-gnu/glib-2.0/include -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-nullability-completeness -std=c++23 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystemgen/third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include --sysroot=../../build/linux/debian_trixie_riscv64-sysroot -fvisibility-inlines-hidden -fbuiltin-module-map -fmodules -fno-implicit-module-maps -fno-implicit-modules -Xclang -fmodules-local-submodule-visibility -Wno-modules-ambiguous-internal-linkage -Wno-modules-import-nested-redundant -Xclang -fmodules-disable-diagnostic-validation -Wno-module-import-in-extern-c -fmodule-map-file=gen/build/modules/linux/module.modulemap -fmodule-map-file=gen/third_party/libc++/src/include/module.modulemap -fmodule-file=_Builtin_float=obj/build/modules/linux/_Builtin_float/module.pcm -fmodule-file=_Builtin_intrinsics=obj/build/modules/linux/_Builtin_intrinsics/module.pcm -fmodule-file=_Builtin_inttypes=obj/build/modules/linux/_Builtin_inttypes/module.pcm -fmodule-file=_Builtin_iso646=obj/build/modules/linux/_Builtin_iso646/module.pcm -fmodule-file=_Builtin_limits=obj/build/modules/linux/_Builtin_limits/module.pcm -fmodule-file=_Builtin_stdalign=obj/build/modules/linux/_Builtin_stdalign/module.pcm -fmodule-file=_Builtin_stdarg=obj/build/modules/linux/_Builtin_stdarg/module.pcm -fmodule-file=_Builtin_stdatomic=obj/build/modules/linux/_Builtin_stdatomic/module.pcm -fmodule-file=_Builtin_stdbool=obj/build/modules/linux/_Builtin_stdbool/module.pcm -fmodule-file=_Builtin_stdcountof=obj/build/modules/linux/_Builtin_stdcountof/module.pcm -fmodule-file=_Builtin_stddef=obj/build/modules/linux/_Builtin_stddef/module.pcm -fmodule-file=_Builtin_stddef_wint_t=obj/build/modules/linux/_Builtin_stddef_wint_t/module.pcm -fmodule-file=_Builtin_stdint=obj/build/modules/linux/_Builtin_stdint/module.pcm -fmodule-file=_Builtin_stdnoreturn=obj/build/modules/linux/_Builtin_stdnoreturn/module.pcm -fmodule-file=_Builtin_unwind=obj/build/modules/linux/_Builtin_unwind/module.pcm -fmodule-file=ptrauth=obj/build/modules/linux/ptrauth/module.pcm -fmodule-file=std=obj/build/modules/linux/std/module.pcm -fmodule-file=std_complex_h=obj/build/modules/linux/std_complex_h/module.pcm -fmodule-file=std_core=obj/build/modules/linux/std_core/module.pcm -fmodule-file=std_ctype_h=obj/build/modules/linux/std_ctype_h/module.pcm -fmodule-file=std_errno_h=obj/build/modules/linux/std_errno_h/module.pcm -fmodule-file=std_fenv_h=obj/build/modules/linux/std_fenv_h/module.pcm -fmodule-file=std_float_h=obj/build/modules/linux/std_float_h/module.pcm -fmodule-file=std_inttypes_h=obj/build/modules/linux/std_inttypes_h/module.pcm -fmodule-file=std_math_h=obj/build/modules/linux/std_math_h/module.pcm -fmodule-file=std_private_mbstate_t=obj/build/modules/linux/std_private_mbstate_t/module.pcm -fmodule-file=std_stdatomic_h=obj/build/modules/linux/std_stdatomic_h/module.pcm -fmodule-file=std_string_h=obj/build/modules/linux/std_string_h/module.pcm -fmodule-file=std_tgmath_h=obj/build/modules/linux/std_tgmath_h/module.pcm -fmodule-file=std_uchar_h=obj/build/modules/linux/std_uchar_h/module.pcm -fmodule-file=std_wctype_h=obj/build/modules/linux/std_wctype_h/module.pcm -fmodule-file=sys_stage1=obj/build/modules/linux/sys_stage1/module.pcm -fmodule-file=sys_stage2=obj/build/modules/linux/sys_stage2/module.pcm -c ../../base/process/process_metrics_posix.cc -o obj/base/base/process_metrics_posix.o
../../base/process/process_metrics_posix.cc:122:27: error: 'mallinfo' is deprecated [-Werror,-Wdeprecated-declarations]
  122 |   struct mallinfo minfo = mallinfo();
      |                           ^
../../build/linux/debian_trixie_riscv64-sysroot/usr/include/malloc.h:114:48: note: 'mallinfo' has been explicitly marked deprecated here
  114 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
      |                                                ^
../../build/linux/debian_trixie_riscv64-sysroot/usr/include/malloc.h:32:30: note: expanded from macro '__MALLOC_DEPRECATED'
   32 | # define __MALLOC_DEPRECATED __attribute_deprecated__
      |                              ^
../../build/linux/debian_trixie_riscv64-sysroot/usr/include/riscv64-linux-gnu/sys/cdefs.h:510:51: note: expanded from macro '__attribute_deprecated__'
  510 | # define __attribute_deprecated__ __attribute__ ((__deprecated__))
      |                                                   ^
1 error generated.
[16/82260] CXX clang_x64/obj/third_party/perfetto/src/trace_processor/importers/proto/minimal/track_event_tokenizer.o
ninja: build stopped: subcommand failed.


Could someone please assist me in resolving this issue during the cross-compilation of Chromium for the RISC-V64 architecture?
It would be really helpful if you share some build steps for chromium for riscv64.

Thank you in advance for your assistance.

Best regards,
Sharath

Nico Weber

unread,
Dec 29, 2025, 10:54:40 AM12/29/25
to sharath.g...@gmail.com, Chromium-dev
Hi,

The short answer is that riscv generally isn't a supported build configuration. (We might have a bot that builds cronet for riscv, but not the whole browser.) So you're likely to run into all kinds of issues.

For this particular problem, https://issues.chromium.org/issues/40177365 has some background.

This here https://source.chromium.org/chromium/chromium/src/+/main:base/process/process_metrics_posix.cc;l=115?q=mallinfo2%20f:base%2F%20f:process_me attempts to use mallinfo2 if the glibc in your sysroot is new enough (>= 2.33). It looks like you're using the Debian Trixie sysroot, which according to https://packages.debian.org/source/trixie/glibc should be 2.41, so it should work. You'd have to figure out why mallinfo2 isn't being used in that file.

(Or, if you'd prefer to paper over the problem, you could also set `treat_warnings_as_errors = false` in your args.gn. That's not recommended, of course. It looks like you tried this with `cflags_cc = [ "-Wno-error=deprecated-declarations" ]`, but cflags_cc can't be set in args.gn.)

Good luck,
Nico

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/87d06151-d181-4bfc-a371-91e1a555c213n%40chromium.org.

Levi Zim

unread,
Dec 29, 2025, 10:54:06 PM12/29/25
to Chromium-dev, Sharath
Hi,

Please add treat_warnings_as_errors=false to your GN args as the unofficial chromium RISC-V port is currently not warning-free.
Here is the configuration I use in my downstream CI:  https://github.com/riscv-forks/chromium-riscv/blob/main/.github/workflows/ci.yml 

Some of the RISC-V support patches haven't made it into the Chromium source tree, so you will need to apply them manually.
For reference, here is the current two patches necessary for passing the build:
 # Sandbox
 git fetch https://chromium.googlesource.com/chromium/src refs/changes/20/4935120/11 && git cherry-pick FETCH_HEAD
 # Swiftshader
 git -C third_party/swiftshader fetch https://swiftshader.googlesource.com/SwiftShader refs/changes/29/75929/2 && git -C third_party/swiftshader cherry-pick FETCH_HEAD


Could someone please assist me in resolving this issue during the cross-compilation of Chromium for the RISC-V64 architecture?
It would be really helpful if you share some build steps for chromium for riscv64.

Thank you in advance for your assistance.

Best regards,
Sharath

Best regards,
Levi 

Sharath

unread,
Jan 5, 2026, 6:28:57 AMJan 5
to Chromium-dev, Levi Zim, Sharath

Hi Nico Weber and Levi Zim,

Thank you for your replies.

Following your recommended steps, I successfully applied the Git patches and cross-compiled Chromium for riscv64. I then transferred the build directory to the riscv64 board and launched the browser. While Chromium starts successfully, I encounter issues loading websites, receiving "can't open this page" and "Aw, Snap!" errors. Additionally, the Customize and Control menu is non-functional.

Aw-snap.png         page-load.png
For reference, here are the terminal logs from the browser launch:

riscv64@Ubuntu-riscv64:~/riscv64-wayland$ ./chrome
[1:1:0105/151345.527501:ERROR:content/app/content_main_runner_impl.cc:432] Failed to initialize cpuinfo
[1635:1635:0105/151345.527490:ERROR:content/app/content_main_runner_impl.cc:432] Failed to initialize cpuinfo
[1627:1627:0105/151345.742044:ERROR:ui/ozone/platform/wayland/host/wayland_seat.cc:91] Not implemented reached in static void ui::WaylandSeat::OnName(void *, wl_seat *, const char *).
[1627:1627:0105/151345.744558:ERROR:ui/ozone/platform/wayland/host/wayland_zwp_linux_dmabuf.cc:392] Not implemented reached in static void ui::WaylandZwpLinuxDmabuf::OnTrancheFlags(void *, zwp_linux_dmabuf_feedback_v1 *, uint32_t).
[1627:1627:0105/151346.534041:ERROR:chrome/browser/startup/startup_launch_manager.cc:98] Not implemented reached in virtual void StartupLaunchManager::UpdateLaunchOnStartup(std::optional<StartupLaunchMode>).
[1664:1664:0105/151346.825397:ERROR:content/app/content_main_runner_impl.cc:432] Failed to initialize cpuinfo
WARN: SystemInfo_vulkan.cpp:197 (HasKhronosValidationLayer): Vulkan validation layers are missing
[1627:1627:0105/151347.993698:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[1627:1627:0105/151348.064790:ERROR:ui/ozone/platform/wayland/host/wayland_screen.cc:461] Not implemented reached in virtual bool ui::WaylandScreen::IsScreenSaverActive() const.
[1627:1627:0105/151350.032560:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[1627:1627:0105/151350.614463:ERROR:ui/ozone/platform/wayland/host/xdg_toplevel.cc:281] Not implemented reached in static void ui::XdgToplevel::OnConfigureBounds(void *, xdg_toplevel *, int32_t, int32_t).
[1664:1672:0105/151353.510012:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[0105/151353.849208:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0105/151353.849656:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002af4bb0494
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002af4bb0494 Builtins_CreateClosureHandler
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc11fc8 arg3=0x3fffc11fa8 arg4=0x8
Received signal 11 SEGV_MAPERR 00000c800067
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002afad5e068 sandbox::CrashSIGSYS_Handler()
#5 0x002afad61306 sandbox::Trap::SigSys()
#6 0x003fce182800 ([vdso]+0x7ff)
#7 0x003fcd77170e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc109b8 arg3=0x3fffc10998 arg4=0x8
[1627:1627:0105/151401.544372:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[1627:1627:0105/151401.544544:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[0105/151401.850398:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0105/151401.850591:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002af4bb0494
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002af4bb0494 Builtins_CreateClosureHandler
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc11fe8 arg3=0x3fffc11fc8 arg4=0x8
Received signal 11 SEGV_MAPERR 00000e800067
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002afad5e068 sandbox::CrashSIGSYS_Handler()
#5 0x002afad61306 sandbox::Trap::SigSys()
#6 0x003fce182800 ([vdso]+0x7ff)
#7 0x003fcd77170e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc109d8 arg3=0x3fffc109b8 arg4=0x8
[0105/151413.538192:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0105/151413.538540:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002af4bb0494
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002af4bb0494 Builtins_CreateClosureHandler
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc11fe8 arg3=0x3fffc11fc8 arg4=0x8
Received signal 11 SEGV_MAPERR 00000e800067
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002afad5e068 sandbox::CrashSIGSYS_Handler()
#5 0x002afad61306 sandbox::Trap::SigSys()
#6 0x003fce182800 ([vdso]+0x7ff)
#7 0x003fcd77170e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc109d8 arg3=0x3fffc109b8 arg4=0x8
[0105/151421.261616:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0105/151421.261944:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002af4bb0494
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002af4bb0494 Builtins_CreateClosureHandler
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc11fe8 arg3=0x3fffc11fc8 arg4=0x8
Received signal 11 SEGV_MAPERR 00000e800067
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002afad5e068 sandbox::CrashSIGSYS_Handler()
#5 0x002afad61306 sandbox::Trap::SigSys()
#6 0x003fce182800 ([vdso]+0x7ff)
#7 0x003fcd77170e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc109d8 arg3=0x3fffc109b8 arg4=0x8
[1627:1627:0105/151424.073443:ERROR:ui/ozone/platform/wayland/host/wayland_window.cc:683] Not implemented reached in virtual void ui::WaylandWindow::SetWindowIcons(const gfx::ImageSkia &, const gfx::ImageSkia &).
[0105/151437.675354:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0105/151437.675745:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002af4bb0494
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002af4bb0494 Builtins_CreateClosureHandler
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc11fe8 arg3=0x3fffc11fc8 arg4=0x8
Received signal 11 SEGV_MAPERR 00000e800067
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002afad5e068 sandbox::CrashSIGSYS_Handler()
#5 0x002afad61306 sandbox::Trap::SigSys()
#6 0x003fce182800 ([vdso]+0x7ff)
#7 0x003fcd77170e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc109d8 arg3=0x3fffc109b8 arg4=0x8
[1627:1627:0105/151444.145063:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[1627:1627:0105/151444.145240:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[1627:1627:0105/151444.145353:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[0105/151444.452894:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0105/151444.453277:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002af4bb0494
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002af4bb0494 Builtins_CreateClosureHandler
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc11fe8 arg3=0x3fffc11fc8 arg4=0x8
Received signal 11 SEGV_MAPERR 00000e800067
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002afad5e068 sandbox::CrashSIGSYS_Handler()
#5 0x002afad61306 sandbox::Trap::SigSys()
#6 0x003fce182800 ([vdso]+0x7ff)
#7 0x003fcd77170e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc109d8 arg3=0x3fffc109b8 arg4=0x8


Could you please advise on the specific steps required to resolve these runtime issues?

Thank you for your continued support.

Best regards,  
Sharath.K

Levi Zim

unread,
Jan 5, 2026, 7:24:05 AMJan 5
to Chromium-dev, Sharath, Levi Zim
Hi, 

On Monday, January 5, 2026 at 7:28:57 PM UTC+8 Sharath wrote:

Hi Nico Weber and Levi Zim,

Thank you for your replies.

Following your recommended steps, I successfully applied the Git patches and cross-compiled Chromium for riscv64. I then transferred the build directory to the riscv64 board and launched the browser. While Chromium starts successfully, I encounter issues loading websites, receiving "can't open this page" and "Aw, Snap!" errors. Additionally, the Customize and Control menu is non-functional.

Aw-snap.png         page-load.png

Note that the SIGILL here does not necessarily mean an illegal instruction, it could also be a failing assertion or an unreachable assertion.
Just in case the SIGILL is real, you may need to check the RISC-V ISA string of your board.
Currently the build targets rv64gc.
 
For reference, here are the terminal logs from the browser launch:

riscv64@Ubuntu-riscv64:~/riscv64-wayland$ ./chrome
[1:1:0105/151345.527501:ERROR:content/app/content_main_runner_impl.cc:432] Failed to initialize cpuinfo
[1635:1635:0105/151345.527490:ERROR:content/app/content_main_runner_impl.cc:432] Failed to initialize cpuinfo
[1627:1627:0105/151345.742044:ERROR:ui/ozone/platform/wayland/host/wayland_seat.cc:91] Not implemented reached in static void ui::WaylandSeat::OnName(void *, wl_seat *, const char *).
[1627:1627:0105/151345.744558:ERROR:ui/ozone/platform/wayland/host/wayland_zwp_linux_dmabuf.cc:392] Not implemented reached in static void ui::WaylandZwpLinuxDmabuf::OnTrancheFlags(void *, zwp_linux_dmabuf_feedback_v1 *, uint32_t).
[1627:1627:0105/151346.534041:ERROR:chrome/browser/startup/startup_launch_manager.cc:98] Not implemented reached in virtual void StartupLaunchManager::UpdateLaunchOnStartup(std::optional<StartupLaunchMode>).
[1664:1664:0105/151346.825397:ERROR:content/app/content_main_runner_impl.cc:432] Failed to initialize cpuinfo
WARN: SystemInfo_vulkan.cpp:197 (HasKhronosValidationLayer): Vulkan validation layers are missing
[1627:1627:0105/151347.993698:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[1627:1627:0105/151348.064790:ERROR:ui/ozone/platform/wayland/host/wayland_screen.cc:461] Not implemented reached in virtual bool ui::WaylandScreen::IsScreenSaverActive() const.
[1627:1627:0105/151350.032560:ERROR:chrome/browser/glic/public/glic_keyed_service.cc:437] Not implemented reached in virtual bool glic::GlicKeyedService::IsWindowShowing() const. IsWindowShowing not implemented for multi-instance.
[1627:1627:0105/151350.614463:ERROR:ui/ozone/platform/wayland/host/xdg_toplevel.cc:281] Not implemented reached in static void ui::XdgToplevel::OnConfigureBounds(void *, xdg_toplevel *, int32_t, int32_t).
[1664:1672:0105/151353.510012:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[0105/151353.849208:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0105/151353.849656:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002af4bb0494
#0 0x002af8d9a4c4 base::debug::CollectStackTrace()
#1 0x002af8d82a1e base::debug::StackTrace::StackTrace()
#2 0x002af8d9a372 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fce182800 ([vdso]+0x7ff)
#4 0x002af4bb0494 Builtins_CreateClosureHandler

It appears that chromium crashed in V8 code. Since riscv64 V8 support is seperated maintained, it can lag behind sometimes.
So such breakage or even failing the compilation is not completely unexpected.
You can search riscv related CLs in https://chromium-review.googlesource.com that may address it.
Alternatively, you may try to debug it by lanuching chromium with gdb.

[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffc11fc8 arg3=0x3fffc11fa8 arg4=0x8

The seccomp-bpf failures can be safely ignored. It is not related to the crash but actually a crash nested inside a crash.
For more context, see https://issues.chromium.org/issues/40278566
 

Levi Zim

unread,
Jan 15, 2026, 10:51:38 PMJan 15
to Chromium-dev, Sharath, Levi Zim
It turns out it is a true illegal instruction error caused by a typo in the code.

The fix is https://chromium-review.googlesource.com/c/v8/v8/+/7484947 .

Sharath

unread,
Jan 20, 2026, 5:04:28 AMJan 20
to Chromium-dev, Levi Zim, Sharath
Hi Levi Zim,
 
I applied the v8 fix that you suggested  https://chromium-review.googlesource.com/c/v8/v8/+/7484947 and integrated the five riscv related patches from (https://build.opensuse.org/package/show/home:Andreas_Schwab:riscv:chromium/chromium).
 
The Build is successful, browser launches and displays the initial load bar for about five seconds, but then crashes with an "Aw, Snap!" error.

google-lauch-bar.png   Awsnap.png

 
Below mentioned logs are from launching the browser from terminal:-

./../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb78328 arg3=0x3fffb78308 arg4=0x8
[3342:3350:0120/140327.868691:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[0120/140340.569560:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0120/140340.570300:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002ae0e6d3e4
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae0e6d3e4 Builtins_DeoptimizationEntry_Eager
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb79938 arg3=0x3fffb79918 arg4=0x8
Received signal 11 SEGV_MAPERR 000003800067
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae7ae871a sandbox::CrashSIGSYS_Handler()
#5 0x002ae7aeb9ba sandbox::Trap::SigSys()
#6 0x003fdb9fa800 ([vdso]+0x7ff)
#7 0x003fdb12770e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb78328 arg3=0x3fffb78308 arg4=0x8
[3342:3350:0120/140342.132054:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[3342:3350:0120/140343.111510:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[3305:3324:0120/140351.215968:ERROR:google_apis/gcm/engine/registration_request.cc:290] Registration response error message: DEPRECATED_ENDPOINT
[3342:3350:0120/140405.800071:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[3305:3324:0120/140405.801469:ERROR:google_apis/gcm/engine/connection_factory_impl.cc:434] Failed to connect to MCS endpoint with error -202
[0120/140434.586235:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0120/140434.586409:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002ae0e6d3e4
#0 0x002ae5b6fb50 [3342:3350:0120/140434.763793:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae0e6d3e4 Builtins_DeoptimizationEntry_Eager
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb79938 arg3=0x3fffb79918 arg4=0x8
Received signal 11 SEGV_MAPERR 000003800067
#0 0x002ae5b6fb50 [3342:3350:0120/140435.195275:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[3342:3350:0120/140435.282089:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
base::debug::CollectStackTrace()
#1 0x002ae5b57f10 [3342:3350:0120/140435.398273:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae7ae871a sandbox::CrashSIGSYS_Handler()
#5 0x002ae7aeb9ba sandbox::Trap::SigSys()
#6 0x003fdb9fa800 ([vdso]+0x7ff)
#7 0x003fdb12770e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb78328 arg3=0x3fffb78308 arg4=0x8
[3342:3350:0120/140436.406389:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[0120/140458.064645:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0120/140458.065367:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002ae0e6d3e4
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae0e6d3e4 Builtins_DeoptimizationEntry_Eager
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb79938 arg3=0x3fffb79918 arg4=0x8
Received signal 11 SEGV_MAPERR 000003800067
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae7ae871a sandbox::CrashSIGSYS_Handler()
#5 0x002ae7aeb9ba [3342:3350:0120/140459.163854:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
sandbox::Trap::SigSys()
#6 0x003fdb9fa800 ([vdso]+0x7ff)
#7 0x003fdb12770e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb78328 arg3=0x3fffb78308 arg4=0x8
[3342:3350:0120/140500.390303:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[0120/140515.408672:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0120/140515.408830:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002ae0e6d3e4
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae0e6d3e4 Builtins_DeoptimizationEntry_Eager
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb79938 arg3=0x3fffb79918 arg4=0x8
Received signal 11 SEGV_MAPERR 000003800067
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae7ae871a sandbox::CrashSIGSYS_Handler()
#5 0x002ae7aeb9ba [3342:3350:0120/140516.582339:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
sandbox::Trap::SigSys()
#6 0x003fdb9fa800 ([vdso]+0x7ff)
#7 0x003fdb12770e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb78328 arg3=0x3fffb78308 arg4=0x8
[3342:3350:0120/140517.453316:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[0120/140523.851463:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0120/140523.851619:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002ae0e6d3e4
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae0e6d3e4 Builtins_DeoptimizationEntry_Eager
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb79808 arg3=0x3fffb797e8 arg4=0x8
Received signal 11 SEGV_MAPERR 000000800067
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae7ae871a sandbox::CrashSIGSYS_Handler()
#5 0x002ae7aeb9ba sandbox::Trap::SigSys()
#6 0x003fdb9fa800 ([vdso]+0x7ff)
#7 0x003fdb12770e setitimer
[end of stack trace]
../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb781f8 arg3=0x3fffb781d8 arg4=0x8
[3342:3350:0120/140647.264830:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[3305:3324:0120/140647.266198:ERROR:google_apis/gcm/engine/connection_factory_impl.cc:434] Failed to connect to MCS endpoint with error -202
[3305:3324:0120/140736.843740:ERROR:google_apis/gcm/engine/registration_request.cc:290] Registration response error message: DEPRECATED_ENDPOINT

Can you please help me to resolve this issue?
 
Regards,
Sharath. K

Levi Zim

unread,
Jan 21, 2026, 9:26:06 AMJan 21
to Chromium-dev, Sharath, Levi Zim
Hi Sharath,

On Tuesday, January 20, 2026 at 6:04:28 PM UTC+8 Sharath wrote:
Hi Levi Zim,
 
I applied the v8 fix that you suggested  https://chromium-review.googlesource.com/c/v8/v8/+/7484947 and integrated the five riscv related patches from (https://build.opensuse.org/package/show/home:Andreas_Schwab:riscv:chromium/chromium).
Only riscv-swiftshader.patch and riscv-sandbox.patch from your provided links to the SUSE source repo are necessary. 
 
The Build is successful, browser launches and displays the initial load bar for about five seconds, but then crashes with an "Aw, Snap!" error.' 

google-lauch-bar.png   Awsnap.png

 
Below mentioned logs are from launching the browser from terminal:-

./../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall nr=0x67 arg1=0x0 arg2=0x3fffb78328 arg3=0x3fffb78308 arg4=0x8
[3342:3350:0120/140327.868691:ERROR:net/socket/ssl_client_socket_impl.cc:918] handshake failed; returned -1, SSL error code 1, net_error -202
[0120/140340.569560:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0120/140340.570300:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Received signal 4 <unknown> 002ae0e6d3e4
#0 0x002ae5b6fb50 base::debug::CollectStackTrace()
#1 0x002ae5b57f10 base::debug::StackTrace::StackTrace()
#2 0x002ae5b6f9fe base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x003fdb9fa800 ([vdso]+0x7ff)
#4 0x002ae0e6d3e4 Builtins_DeoptimizationEntry_Eager'

This again is a crash in V8. I have talked to the maintainers of the V8 RISC-V port and they fixed it in  https://chromium-review.googlesource.com/c/v8/v8/+/7498990 .
Please apply it to fix you build.

Best regards,
Levi

Sharath

unread,
Jan 23, 2026, 1:08:28 AMJan 23
to Chromium-dev, Levi Zim, Sharath
Hi Levi Zim,
 
Thank you for the patch. I have successfully applied it and built the Chromium browser for riscv64.
 
I was able to launch the browser on my riscv64 development platform and perform web surfing. However, I noticed that the performance is currently very sluggish. Do you have any recommendations on configurations or optimizations that could help improve browser performance and responsiveness?
 
Additionally, I would like to package the build output as a .deb file. Could you please provide some guidance or instructions on how to handle the packaging step?
 
Best regards,
Sharath.K

Levi Zim

unread,
Jan 23, 2026, 3:49:18 AMJan 23
to Chromium-dev, Sharath, Levi Zim
Hi,

On Friday, January 23, 2026 at 2:08:28 PM UTC+8 Sharath wrote:
Hi Levi Zim,
 

Thank you for the patch. I have successfully applied it and built the Chromium browser for riscv64.
 
I was able to launch the browser on my riscv64 development platform and perform web surfing. However, I noticed that the performance is currently very sluggish.

I think that is expected as currently most available riscv64 boards are not performant.
 
Do you have any recommendations on configurations or optimizations that could help improve browser performance and responsiveness?

You can enable is_official_build = true GN flag if you haven't already enabled it. You may also try profile guided optimizations (PGO).
 
 
Additionally, I would like to package the build output as a .deb file. Could you please provide some guidance or instructions on how to handle the packaging step?

Please apply this patch https://chromium-review.googlesource.com/c/chromium/src/+/7509196 and build  chrome/installer/linux:unstable_deb target.

Can you share the result about whether the built deb could be successfully installed and used? Thanks!
I don't have debian-based riscv64 systems and cannot test that by myself.

Best regards,
Levi

Sharath

unread,
Jan 23, 2026, 5:35:16 AMJan 23
to Chromium-dev, Levi Zim, Sharath
Hi Levi Zim,
 
I will add the provided flag and will build the chromium. could you provide a brief overview of Profile Guided Optimization (PGO)?
 
I applied the patch you mentioned and successfully built the .deb package. However, I am currently encountering dependency errors during installation. It appears that the package requires dependencies for Ubuntu 24, while my environment is running Ubuntu 22.
 
Regards,
Sharath.K

Levi Zim

unread,
Jan 23, 2026, 8:00:32 AMJan 23
to Chromium-dev, Sharath, Levi Zim
Hi Sharath,

On Friday, January 23, 2026 at 6:35:16 PM UTC+8 Sharath wrote:
Hi Levi Zim,
 

I will add the provided flag and will build the chromium. could you provide a brief overview of Profile Guided Optimization (PGO)?

Please see https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/pgo.md. IIRC chromium bundles a PGO profile but that is not generated on riscv64 platform.
So you may try to generate a PGO profile on your riscv64 board and use that profile to optimize your chromium build.
 
 
I applied the patch you mentioned and successfully built the .deb package. However, I am currently encountering dependency errors during installation. It appears that the package requires dependencies for Ubuntu 24, while my environment is running Ubuntu 22.

I think that is expected as chromium uses a Debian trixie based sysroot for riscv64 cross-compilation, while Ubuntu 22 is based on Debian bookworm.
You may need to modify the scripts under chrome/installer/linux to hack together a working deb for Ubuntu 22.
Or better, you may try to create a ubuntu 22 based riscv64 sysroot by modifying build/linux/sysroot_scripts.

Best regards,
Levi

Sharath

unread,
Jan 27, 2026, 7:07:25 AMJan 27
to Chromium-dev, Levi Zim, Sharath
Hi Levi Zim,
 
I am currently attempting to build Chromium for RISC-V64 using the Clang toolchain. While the build progresses significantly, I am encountering a consistent linker failure when building libvk_swiftshader.so.
 
I have configured the build with the following args.gn:
 
riscv_march = "rv64gc"

riscv_mcpu = "generic-rv64"


target_os = "linux"

target_cpu = "riscv64"

is_clang = true

clang_base_path = "//third_party/llvm-build/Release+Asserts"

clang_use_chrome_plugins = false

is_debug = false

is_component_build = false


use_ozone = true

ozone_platform_wayland = true

ozone_platform_x11 = false

v8_target_cpu = "riscv64"

treat_warnings_as_errors = false

is_official_build = true

chrome_pgo_phase=0
 
and build the chromium by the command autoninja -C out/riscv64 chrome,

The build fails with the following error:
 
[24033/112669] 29m29.46s F SOLINK ./libvk_swiftshader.so

FAILED: 33dee98b-8f57-439b-b29b-c8f7defb14c9 "./libvk_swiftshader.so" SOLINK ./libvk_swiftshader.so

err: exit=1

"python3" "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../third_party/llvm-build/Release+Asserts/bin/llvm-readelf" --nm="../../third_party/llvm-build/Release+Asserts/bin/llvm-nm"  --sofile="./libvk_swiftshader.so" --tocfile="./libvk_swiftshader.so.TOC" --output="./libvk_swiftshader.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-soname="libvk_swiftshader.so" -Wl,-Bsymbolic -Wl,--version-script=../../third_party/swiftshader/src/Vulkan/vk_swiftshader.lds -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -Wl,-mllvm,-split-threshold-for-reg-with-hint=0 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -Wl,-mllvm,-disable-auto-upgrade-debug-info -Wl,-mllvm,-inlinehint-threshold=360 -fwhole-program-vtables -Wl,--undefined-version -Wl,--no-call-graph-profile-sort --target=riscv64-linux-gnu -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -gsplit-dwarf -Wl,--gdb-index -Wl,-z,defs -Wl,--as-needed -nostdlib++ --sysroot=../../build/linux/debian_trixie_riscv64-sysroot -Wl,--lto-O0 -o "./libvk_swiftshader.so" @"./libvk_swiftshader.so.rsp"  

build step: solink "./libvk_swiftshader.so"

siso_rule: clang/solink

stderr:

Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: <unknown>:0: A dwo section may not contain relocations

ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)

clang++: error: linker command failed with exit code 1 (use -v to see invocation)

build failed

local:24249 remote:0 cache:0 cache-write:0(err:0) fallback:0 retry:0 skip:16373

fs: ops: 759928(err:274279) / r:187181(err:0) 12.56GiB / w:2729(err:0) 59.32MiB

  resource/capa used(err)  wait-avg |   s m |  serv-avg |   s m |

   localexec/12  17105(0)  6m01.64s |▂▂▂▂▃█▄|     1.19s |▂▃█▅▂▂ |

pool=action/12   5855(0)  2m03.70s |▃▃▃▂▃█ |     0.79s | ▅█▃▂▂ |
 
31m37.67s Build Failure: 24249 done, 1 failed, 88351 remaining - 12.78/s

1 steps failed: exit=1

see ./out/riscv64/siso_output for full command line and output

or ./out/riscv64/siso.INFO

use ./out/riscv64/siso_failed_commands.sh to re-run failed commands
 
Can you help me to solve this issue?
 
Regards,
Sharath.K

Levi Zim

unread,
Jan 27, 2026, 10:25:56 AMJan 27
to Chromium-dev, Sharath, Levi Zim
Hi Sharath,

On Tuesday, January 27, 2026 at 8:07:25 PM UTC+8 Sharath wrote:
Hi Levi Zim,
 

Please add use_debug_fission=false to GN args.
 -gsplit-dwarf is currently unsupported with RISC-V linker relaxation (-mrelax).

More details are available in the following blog post:

Regards,
Levi

Sharath

unread,
Jan 29, 2026, 2:21:28 AMJan 29
to Chromium-dev, Levi Zim, Sharath
Hi Levi,
 
I’m encountering a problem where the ReCaptcha verification and Cloudfare verification keeps loading and won't complete, blocking me from moving forward. 

recaptcha.png

Could you please look into this?
 
Regards,
Sharath.K

Levi Zim

unread,
Jan 29, 2026, 2:29:01 AMJan 29
to Chromium-dev, Sharath, Levi Zim
Hi Sharath,

I think that's mostly unrelated to the topic of cross-compiling Chromium.
Please report such issues to ReCaptcha and Cloudfare verification.

It might be caused by the insufficient computing power of your RISC-V board, which could cause 
the browser failing to complete the PoW computation in time to pass the verification.

Regards,
Levi

Sharath

unread,
Jan 29, 2026, 12:12:01 PM (14 days ago) Jan 29
to Chromium-dev, Levi Zim, Sharath
Hi Levi,
 
I am encountering a build failure when attempting to compile with the configuration is_official_build = true. The error message is as follows:

 
"Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)"
 
As per your previous suggestion, I added the build argument use_debug_fission=false. However, the issue persists even after this change.
 
Could you please take a look at this and advise on the next steps?
 
Regards,
Sharath.K

Levi Zim

unread,
Jan 29, 2026, 9:17:34 PM (13 days ago) Jan 29
to Chromium-dev, Sharath, Levi Zim
Hi Sharath,

On Friday, January 30, 2026 at 1:12:01 AM UTC+8 Sharath wrote:
Hi Levi,
 

I am encountering a build failure when attempting to compile with the configuration is_official_build = true. The error message is as follows:
 
"Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)"

This is a linker warning and should not fail the build. 
It is caused by a bug in LLVM(https://github.com/llvm/llvm-project/issues/69780)  and should be harmless.
Please search for other error messages above/below this warning.

Regards,
Levi
Message has been deleted

Sharath

unread,
Feb 4, 2026, 7:30:07 AM (8 days ago) Feb 4
to Chromium-dev, Levi Zim, Sharath
Hi Levi Zim,
 
Thank you for your suggestion. It turned out to be just a warning, and the build completed successfully and able to launch the browser.
 
However, I am still experiencing performance issues specifically with video playback on YouTube. While 480p plays smoothly with some lags, 720p is consistently laggy. And when trying to play video through browser it is not working and it is showing blank.

video-playback.png
 
Upon checking chrome://gpu, I observed that Video Encode and Video Decode are falling back to Software, and Vulkan is disabled. Since our hardware supports Vulkan, I would like to enable hardware acceleration for video encoding and decoding using v4l2.
 
Could you please guide me on how to enable the v4l2 for the video decode and encode?
 
Regards,
Sharath.K

Sharath

unread,
Feb 11, 2026, 5:31:07 AM (yesterday) Feb 11
to Chromium-dev, Sharath, Levi Zim
Hi Levi,
 
1) Online videos are now playing in the browser after enabling the proprietary_codecs = true argument. However, I am still unable to seek on some of the online video streams.
 2) We are also encountering frequent crashes of the GDM manager during the boot process. This issue started after adding Chromium to our rootfs.

Below you can see the logs:

root@Ubuntu-riscv64:~# dmesg | grep gdm

[    1.594143] systemd[1]: NetworkManager-wait-online.service: Found ordering cycle on gdm.service/start
[    1.594186] systemd[1]: NetworkManager-wait-online.service: Job gdm.service/start deleted to break ordering cycle starting with NetworkManager-wait-online.servicet
 
Could you please help investigate if any specific Chromium configurations are causing this conflict?
 
Best regards,
Sharath.K

Reply all
Reply to author
Forward
0 new messages