can you also add this flag and try to recompile
*  use_sysroot = false  *

On Tue, Jul 29, 2025 at 5:44 PM 薛嘉伟 <[email protected]> wrote:

> v8_static_library = true
> is_debug = false
> target_os = "android"
> target_cpu = "arm64"
> v8_enable_backtrace = true
> v8_target_cpu = "arm64"
> is_component_build = false
> v8_monolithic = true
> v8_use_external_startup_data = false
> symbol_level = 0
> strip_debug_info = true
> v8_enable_i18n_support = false
> v8_enable_fast_mksnapshot = true
> use_custom_libcxx = false
>
> why
> tietiezhi@N960Kx:~/Github/v8/v8$ autoninja -C out/arm64.release
> v8_monolith
> ninja: Entering directory `out/arm64.release'
> [0/1] Regenerating ninja files
> [2551/3256] CXX obj/v8_base_without_compiler/builtins-typed-array.o
> FAILED: obj/v8_base_without_compiler/builtins-typed-array.o
> ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF
> obj/v8_base_without_compiler/builtins-typed-array.o.d
> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2
> -D_GNU_SOURCE -D__ARM_NEON__=1 -DANDROID
> -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -DHAVE_SYS_UIO_H
> -DANDROID_NDK_VERSION_ROLL=r28_1
> -DCR_CLANG_REVISION=\"llvmorg-21-init-11777-gfd3fecfc-1\"
> -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -DNDEBUG -DNVALGRIND
> -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64
> -DV8_TEMPORAL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES
> -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO
> -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION
> -DV8_ENABLE_CONTROL_FLOW_INTEGRITY -DV8_ENABLE_FUZZTEST
> -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_SPARKPLUG
> -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY
> -DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA -DV8_ALLOCATION_FOLDING
> -DV8_ALLOCATION_SITE_TRACKING -DV8_USE_ZLIB -DV8_USE_LIBM_TRIG_FUNCTIONS
> -DV8_ENABLE_WASM_DEINTERLEAVED_MEM_OPS -DV8_ENABLE_MAGLEV_GRAPH_PRINTER
> -DV8_ENABLE_BUILTIN_JUMP_TABLE_SWITCH -DV8_ENABLE_EXTENSIBLE_RO_SNAPSHOT
> -DV8_ENABLE_BLACK_ALLOCATED_PAGES -DV8_ENABLE_LEAPTIERING
> -DV8_WASM_RANDOM_FUZZERS -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0
> -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0
> -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_COMPRESS_POINTERS
> -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH
> -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS
> -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_HAVE_TARGET_OS
> -DV8_TARGET_OS_ANDROID -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION
> -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE
> -DCPPGC_SLIM_WRITE_BARRIER -DV8_TARGET_ARCH_ARM64
> -DABSL_ALLOCATOR_NOTHROW=1 -DTEMPORAL_CAPI_VERSION_0_0_7
> -DHWY_BROKEN_TARGETS=HWY_ALL_SVE -I../.. -Igen -I../../include
> -Igen/include -I../../third_party/abseil-cpp
> -I../../third_party/fp16/src/include
> -I../../third_party/dragonbox/src/include
> -I../../third_party/fast_float/src/include -I../../third_party/highway/src
> -I../../third_party/zlib -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi
> -Wunreachable-code-aggressive -Wthread-safety -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 -Wunguarded-availability
> -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 -Wshadow
> -Werror -fno-delete-null-pointer-checks -fno-strict-overflow -fno-ident
> -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC
> -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation
> -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm
> -instcombine-lower-dbg-declare=0 -mllvm
> -split-threshold-for-reg-with-hint=0 -ffp-contract=off -ffunction-sections
> -fno-short-enums -mbranch-protection=standard
> --target=aarch64-linux-android26 -mno-outline -Wno-builtin-macro-redefined
> -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=.
> -no-canonical-prefixes -fno-omit-frame-pointer -g0 -Wheader-hygiene
> -Wstring-conversion -Wtautological-overlap-compare -Wunreachable-code
> -Wno-shadow -Wctad-maybe-unsupported -Xclang -add-plugin -Xclang
> blink-gc-plugin -Wno-invalid-offsetof -Wshorten-64-to-32
> -Wmissing-field-initializers -O2 -fdata-sections -ffunction-sections
> -fno-unique-section-names -fno-math-errno -fvisibility=default
> -Wexit-time-destructors -Wno-invalid-offsetof -Wenum-compare-conditional
> -Wno-nullability-completeness -std=c++20 -Wno-trigraphs
> -gsimple-template-names -fno-exceptions -fno-rtti
> --sysroot=../../third_party/android_toolchain/ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot
>  -c ../../src/builtins/builtins-typed-array.cc -o
> obj/v8_base_without_compiler/builtins-typed-array.o
> ../../src/builtins/builtins-typed-array.cc:524:28: error: no member named
> 'atomic_base64_to_binary_safe' in namespace 'simdutf'; did you mean
> 'base64_to_binary_safe'?
>   524 |     simd_result = simdutf::atomic_base64_to_binary_safe(
>       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |                            base64_to_binary_safe
> ../../third_party/simdutf/simdutf.h:4166:1: note: 'base64_to_binary_safe'
> declared here
>  4166 | base64_to_binary_safe(const char *input, size_t length, char
> *output,
>       | ^
> ../../src/builtins/builtins-typed-array.cc:837:35: error: no member named
> 'atomic_binary_to_base64' in namespace 'simdutf'; did you mean
> 'binary_to_base64'?
>   837 |       simd_result_size = simdutf::atomic_binary_to_base64(
>       |                                   ^~~~~~~~~~~~~~~~~~~~~~~
>       |                                   binary_to_base64
> ../../third_party/simdutf/simdutf.h:3962:8: note: 'binary_to_base64'
> declared here
>  3962 | size_t binary_to_base64(const char *input, size_t length, char
> *output,
>       |        ^
> ../../src/builtins/builtins-typed-array.cc:525:9: error: cannot initialize
> a parameter of type 'const char *' with an rvalue of type 'const char16_t *'
>   525 |         reinterpret_cast<const T>(input_vector), input_length,
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/builtins/builtins-typed-array.cc:695:21: note: in instantiation
> of function template specialization 'v8::internal::(anonymous
> namespace)::ArrayBufferSetFromBase64<const char16_t *>' requested here
>   695 |       simd_result = ArrayBufferSetFromBase64(
>       |                     ^
> ../../third_party/simdutf/simdutf.h:4166:35: note: passing argument to
> parameter 'input' here
>  4166 | base64_to_binary_safe(const char *input, size_t length, char
> *output,
>       |                                   ^
> 3 errors generated.
> [2564/3256] CXX obj/v8_base_without_compiler/compiler.o
> ninja: build stopped: subcommand failed.
>
> --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/v8-users/fabc06bc-4059-4074-a016-28d0c5346a8an%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-users/fabc06bc-4059-4074-a016-28d0c5346a8an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-users/CAJAzunkTpOR%2BBq2wCkNDqKUQoh-tAz87Ms_vtyiCJnEWNwhWhg%40mail.gmail.com.

Reply via email to