Unable to compile v8 last version

16 views
Skip to first unread message

Juan dos Santos

unread,
Aug 25, 2025, 7:03:43 AM (13 days ago) Aug 25
to v8-dev

on ubuntu 24.04 

std::bit_cast not found in src/base/numbers/global.h

Maybe is related to libstdc++ library ??  

-std=c++20 exist in clang++ 

Can you help me ? 

thanks




Juan dos Santos

unread,
Aug 26, 2025, 5:04:24 PM (11 days ago) Aug 26
to v8-dev
I found a solution, de args.gn parameters for x64 compatible with g++ o gcc are:

target_os="linux"
target_cpu="x64"
v8_target_cpu="x64"
is_debug=false
dcheck_always_on=false
is_clang=false
is_component_build=false
strip_debug_info=true
symbol_level=0
treat_warnings_as_errors=false
use_custom_libcxx=false
v8_enable_gdbjit=false
v8_enable_i18n_support=false
v8_enable_pointer_compression=false
v8_enable_test_features=false
v8_monolithic=true
v8_use_external_startup_data=false
clang_use_chrome_plugins=false
enable_rust=false
target_sysroot_dir=""
use_rtti=false
use_sysroot=false
v8_deprecation_warnings=false
v8_enable_builtins_optimization=true
v8_enable_sandbox=false
v8_enable_snapshot_compression=false
v8_enable_temporal_support=false
v8_imminent_deprecation_warnings=false

I think these parameters make the magic "is_clang=false enable_rust=false use_sysroot=false target_sysroot_dir="" "  but use all of them.

I found this great page with the solution here: https://github.com/just-js/v8/blob/main/args.linux.x64.gn

There are all the "args.gn" configuration for different platforms. 

When I did the compilation only found one warning, nothing important.

Juan dos Santos 
Reply all
Reply to author
Forward
0 new messages