Skip to content

chore: bump V8 to 15.3.51 - #16

Open
kassane wants to merge 1 commit into
mainfrom
auto-bump/v15.3.51
Open

chore: bump V8 to 15.3.51#16
kassane wants to merge 1 commit into
mainfrom
auto-bump/v15.3.51

Conversation

@kassane

@kassane kassane commented Aug 10, 2026

Copy link
Copy Markdown
Owner

No description provided.

@github-actions

Copy link
Copy Markdown

windows-x64 (default) failed — run

Last 80 lines of build log
�[1;34m==>�[0m effective args.gn:
    # --- args/common.gn ---
    # Base GN args shared across every target. Mirrors just-js/v8's proven args
    # (the closest working reference for modern V8 14.x); per-target files and
    # profile files override these as needed.
    
    is_debug = false
    is_component_build = false
    v8_monolithic = true
    v8_use_external_startup_data = false
    
    # Rust is enabled by default in modern V8 and would pull a prebuilt rust
    # toolchain that depot_tools does not always ship for every host arch. We
    # don't use any Rust-backed components from the monolith, so disable it.
    enable_rust = false
    
    is_clang = true
    clang_use_chrome_plugins = false
    dcheck_always_on = false
    use_custom_libcxx = false
    use_rtti = false
    
    symbol_level = 0
    strip_debug_info = true
    treat_warnings_as_errors = false
    
    v8_enable_i18n_support = false
    v8_enable_test_features = false
    v8_enable_gdbjit = false
    v8_enable_backtrace = false
    v8_enable_snapshot_compression = false
    v8_enable_temporal_support = false
    v8_deprecation_warnings = false
    v8_imminent_deprecation_warnings = false
    
    # --- args/windows.x64.gn ---
    target_os = "win"
    target_cpu = "x64"
    v8_target_cpu = "x64"
    
    # --- args/profiles/default.gn ---
    # Default profile: smallest embedder-friendly build, no sandbox,
    # no pointer compression, no ICU. Matches the lowest common denominator
    # expected by most language bindings.
    v8_enable_pointer_compression = false
    v8_enable_sandbox = false
    
    cc_wrapper = "ccache"
�[1;34m==>�[0m gn gen /d/a/libv8/libv8/v8/out/windows-x64.default
Traceback (most recent call last):
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 342, in <module>
    main()
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 277, in main
    env = _LoadToolchainEnv(cpu, toolchain_root, win_sdk_path, target_store)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 194, in _LoadToolchainEnv
    return _ExtractImportantEnvironment(variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 68, in _ExtractImportantEnvironment
    raise Exception(
Exception: Path "C:\Program Files (x86)\Windows Kits\10\\include\10.0.28000.0\\um" from environment variable "include" does not exist. Make sure the necessary SDK is installed.
ERROR at //build/toolchain/win/win_toolchain_data.gni:9:7: Script returned non-zero exit code.
      exec_script("//build/toolchain/win/setup_toolchain.py",
      ^----------
Current dir: D:/a/libv8/libv8/v8/out/windows-x64.default/
Command: D:/a/libv8/libv8/.depot_tools/bootstrap-2@3_11_8_chromium_35_bin/python3/bin/python3.exe D:/a/libv8/libv8/v8/build/toolchain/win/setup_toolchain.py "C:\Program Files/Microsoft Visual Studio/18\Enterprise" "C:\Program Files (x86)\Windows Kits\10" "C:\Windows\System32;C:\Windows\SysWOW64;Arm64Unused" win x86 environment.x86
Returned 1.
See //build/toolchain/win/toolchain.gni:13:1: whence //build/toolchain/win/win_toolchain_data.gni was imported.
import("//build/toolchain/win/win_toolchain_data.gni")
^----------------------------------------------------
See //buildtools/third_party/libc++/BUILD.gn:8:1: whence //buildtools/third_party/libc++/modules.gni was imported.
import("//buildtools/third_party/libc++/modules.gni")
^---------------------------------------------------
See //build/config/BUILDCONFIG.gn:633:19: which caused the file to be included.
        deps += [ "//buildtools/third_party/libc++:all_modules" ]
                  ^--------------------------------------------

@github-actions

Copy link
Copy Markdown

windows-x64 (pointer-compression) failed — run

Last 80 lines of build log
    clang_use_chrome_plugins = false
    dcheck_always_on = false
    use_custom_libcxx = false
    use_rtti = false
    
    symbol_level = 0
    strip_debug_info = true
    treat_warnings_as_errors = false
    
    v8_enable_i18n_support = false
    v8_enable_test_features = false
    v8_enable_gdbjit = false
    v8_enable_backtrace = false
    v8_enable_snapshot_compression = false
    v8_enable_temporal_support = false
    v8_deprecation_warnings = false
    v8_imminent_deprecation_warnings = false
    
    # --- args/windows.x64.gn ---
    target_os = "win"
    target_cpu = "x64"
    v8_target_cpu = "x64"
    
    # --- args/profiles/pointer-compression.gn ---
    # Pointer compression enabled. Callers MUST be compiled with the same flag.
    v8_enable_pointer_compression = true
    v8_enable_sandbox = false
    
    # When pointer compression is on, V8 enables partition_alloc's allocator
    # shim (CPPGC_POINTER_COMPRESSION), which forward-declares the global
    # operator new / operator delete overloads with default visibility.
    # macOS 15.5 SDK's libc++ (Xcode 16.4+) declares those same operators
    # with hidden visibility, so clang errors with "visibility does not
    # match previous declaration" against system libc++. Linking V8's own
    # bundled libc++ here keeps the declarations consistent across all
    # translation units.
    #
    # linux-arm64 is the exception: it builds with system gcc-14 + libstdc++
    # (V8 14.9's bundled clang prebuilt has no Linux_aarch64 build, see
    # args/linux.arm64.gn). The macOS visibility conflict doesn't apply
    # (libstdc++, not libc++), and V8's bundled libc++ headers require
    # GCC 15+ (they use __is_unbounded_array / __is_pointer / __decay /
    # __add_*_reference intrinsics gcc-14 doesn't support), so flipping
    # use_custom_libcxx=true there breaks the build at
    # libc++abi/cxa_aux_runtime. Keep system libstdc++ on that one target.
    if (target_os == "linux" && target_cpu == "arm64") {
      use_custom_libcxx = false
    } else {
      use_custom_libcxx = true
    }
    
    cc_wrapper = "ccache"
�[1;34m==>�[0m gn gen /d/a/libv8/libv8/v8/out/windows-x64.pointer-compression
Traceback (most recent call last):
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 342, in <module>
    main()
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 277, in main
    env = _LoadToolchainEnv(cpu, toolchain_root, win_sdk_path, target_store)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 194, in _LoadToolchainEnv
    return _ExtractImportantEnvironment(variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 68, in _ExtractImportantEnvironment
    raise Exception(
Exception: Path "C:\Program Files (x86)\Windows Kits\10\\include\10.0.28000.0\\um" from environment variable "include" does not exist. Make sure the necessary SDK is installed.
ERROR at //build/toolchain/win/win_toolchain_data.gni:9:7: Script returned non-zero exit code.
      exec_script("//build/toolchain/win/setup_toolchain.py",
      ^----------
Current dir: D:/a/libv8/libv8/v8/out/windows-x64.pointer-compression/
Command: D:/a/libv8/libv8/.depot_tools/bootstrap-2@3_11_8_chromium_35_bin/python3/bin/python3.exe D:/a/libv8/libv8/v8/build/toolchain/win/setup_toolchain.py "C:\Program Files/Microsoft Visual Studio/18\Enterprise" "C:\Program Files (x86)\Windows Kits\10" "C:\Windows\System32;C:\Windows\SysWOW64;Arm64Unused" win x86 environment.x86
Returned 1.
See //buildtools/third_party/libc++/modules.gni:14:3: whence //build/toolchain/win/win_toolchain_data.gni was imported.
  import("//build/toolchain/win/win_toolchain_data.gni")
  ^----------------------------------------------------
See //buildtools/third_party/libc++/BUILD.gn:8:1: whence //buildtools/third_party/libc++/modules.gni was imported.
import("//buildtools/third_party/libc++/modules.gni")
^---------------------------------------------------
See //build/config/BUILDCONFIG.gn:633:19: which caused the file to be included.
        deps += [ "//buildtools/third_party/libc++:all_modules" ]
                  ^--------------------------------------------

@github-actions

Copy link
Copy Markdown

linux-arm64 (default) failed — run

Last 80 lines of build log
FAILED: obj/torque_generated_definitions/managed-tq.o 
ccache aarch64-linux-gnu-g++ -MD -MF obj/torque_generated_definitions/managed-tq.o.d -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__ARM_NEON__=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DV8_LOGGING_LEVEL=1 -DBUILTIN_BLOCK_POSITION -DV8_USE_HOST_CPU_ARM_FEATURES -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_CONTROL_FLOW_INTEGRITY -DV8_ENABLE_SPARKPLUG -DV8_ENABLE_SPARKPLUG_PLUS -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_USE_ZLIB -DV8_ENABLE_MAGLEV_GRAPH_PRINTER -DV8_ENABLE_BUILTIN_JUMP_TABLE_SWITCH -DV8_ENABLE_EXTENSIBLE_RO_SNAPSHOT -DV8_ENABLE_BLACK_ALLOCATED_PAGES -DV8_ENABLE_UNDEFINED_DOUBLE -DV8_WASM_RANDOM_FUZZERS -DPA_ENABLE_USER_SPACE_ZERO_SEGMENT -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0 -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0 -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_USE_DEFAULT_HASHER_SECRET=true -DV8_DISALLOW_JS_IN_API_INTERRUPTS_IS_CHECKED -DV8_CPPGC_MICROTASK_QUEUE -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DV8_TARGET_ARCH_ARM64 -DCPPGC_SUPPORTS_OBJECT_NAMES -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE -DCPPGC_ENABLE_OBJECT_SECTION_GCINFO -DCPPGC_SLIM_WRITE_BARRIER -DABSL_ALLOCATOR_NOTHROW=1 -I../.. -Igen -I../../include -Igen/include -I../../third_party/abseil-cpp -I../../third_party/fp16/src/include -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -fno-strict-overflow -fno-ident -fno-math-errno -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pipe -pthread -mbranch-protection=standard -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fno-omit-frame-pointer -g0 -Wno-invalid-offsetof -Wno-strict-overflow -Wno-return-type -Wno-int-in-bool-context -Wno-deprecated -Wno-stringop-overflow -Wno-stringop-overread -Wno-restrict -Wno-array-bounds -Wno-nonnull -Wno-dangling-pointer -O3 -fdata-sections -ffunction-sections -fvisibility=default -Wno-narrowing -Wno-class-memaccess -Wno-invalid-offsetof -std=gnu++20 -fno-exceptions -fno-rtti  -c gen/torque-generated/src/objects/managed-tq.cc -o obj/torque_generated_definitions/managed-tq.o
In file included from ../../src/objects/managed.h:23,
                 from gen/torque-generated/src/objects/managed-tq.cc:1:
../../src/objects/object-macros.h:45:3: error: ‘#pragma’ is not allowed here
   45 |   _Pragma("pack(push)") _Pragma("pack(4)") _Pragma("GCC diagnostic push") \
      |   ^~~~~~~
../../src/objects/object-macros.h:63:19: note: in expansion of macro ‘V8_OBJECT_PUSH’
   63 | #define V8_OBJECT V8_OBJECT_PUSH
      |                   ^~~~~~~~~~~~~~
../../src/objects/managed.h:126:1: note: in expansion of macro ‘V8_OBJECT’
  126 | V8_OBJECT class CppGCManaged : public CppGCManagedBase {
      | ^~~~~~~~~
../../src/objects/managed.h:137:15: error: ‘CppType’ does not name a type
  137 |     V8_INLINE CppType* operator->() V8_LIFETIME_BOUND { return ptr_.get(); }
      |               ^~~~~~~
../../src/objects/managed.h:138:21: error: ‘CppType’ does not name a type
  138 |     V8_INLINE const CppType* operator->() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:142:15: error: ‘CppType’ does not name a type
  142 |     V8_INLINE CppType& operator*() V8_LIFETIME_BOUND { return *ptr_; }
      |               ^~~~~~~
../../src/objects/managed.h:143:21: error: ‘CppType’ does not name a type
  143 |     V8_INLINE const CppType& operator*() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:147:15: error: ‘CppType’ does not name a type
  147 |     V8_INLINE CppType* raw() V8_LIFETIME_BOUND { return ptr_.get(); }
      |               ^~~~~~~
../../src/objects/managed.h:148:21: error: ‘CppType’ does not name a type
  148 |     V8_INLINE const CppType* raw() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:151:15: error: ‘CppType’ does not name a type
  151 |     V8_INLINE CppType* get() V8_LIFETIME_BOUND { return ptr_.get(); }
      |               ^~~~~~~
../../src/objects/managed.h:152:21: error: ‘CppType’ does not name a type
  152 |     V8_INLINE const CppType* get() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:156:31: error: ‘CppType’ was not declared in this scope
  156 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() & { return ptr_; }
      |                               ^~~~~~~
../../src/objects/managed.h:156:38: error: template argument 1 is invalid
  156 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() & { return ptr_; }
      |                                      ^
../../src/objects/managed.h:156:20: error: ‘<expression error>’ in namespace ‘std’ does not name a type
  156 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() & { return ptr_; }
      |                    ^~~~~~~~~~~~~~~~~~~
../../src/objects/managed.h:157:31: error: ‘CppType’ was not declared in this scope
  157 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() && {
      |                               ^~~~~~~
../../src/objects/managed.h:157:38: error: template argument 1 is invalid
  157 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() && {
      |                                      ^
../../src/objects/managed.h:157:20: error: ‘<expression error>’ in namespace ‘std’ does not name a type
  157 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() && {
      |                    ^~~~~~~~~~~~~~~~~~~
../../src/objects/managed.h:166:53: error: ‘CppType’ was not declared in this scope
  166 |     V8_INLINE bool operator==(const std::shared_ptr<CppType>& other) const {
      |                                                     ^~~~~~~
../../src/objects/managed.h:166:60: error: template argument 1 is invalid
  166 |     V8_INLINE bool operator==(const std::shared_ptr<CppType>& other) const {
      |                                                            ^
../../src/objects/managed.h:166:42: error: ‘<expression error>’ in namespace ‘std’ does not name a type
  166 |     V8_INLINE bool operator==(const std::shared_ptr<CppType>& other) const {
      |                                          ^~~~~~~~~~~~~~~~~~~
../../src/objects/managed.h:173:44: error: ‘CppType’ was not declared in this scope
  173 |     V8_INLINE explicit Ptr(std::shared_ptr<CppType> ptr)
      |                                            ^~~~~~~
../../src/objects/managed.h:173:51: error: template argument 1 is invalid
  173 |     V8_INLINE explicit Ptr(std::shared_ptr<CppType> ptr)
      |                                                   ^
../../src/objects/managed.h:173:52: error: expected ‘)’ before ‘ptr’
  173 |     V8_INLINE explicit Ptr(std::shared_ptr<CppType> ptr)
      |                           ~                        ^~~~
      |                                                    )
../../src/objects/managed.h:176:21: error: ‘CppType’ was not declared in this scope
  176 |     std::shared_ptr<CppType> ptr_;
      |                     ^~~~~~~
../../src/objects/managed.h:176:28: error: template argument 1 is invalid
  176 |     std::shared_ptr<CppType> ptr_;
      |                            ^

@github-actions

Copy link
Copy Markdown

linux-arm64 (pointer-compression) failed — run

Last 80 lines of build log
FAILED: obj/torque_generated_definitions/managed-tq.o 
ccache aarch64-linux-gnu-g++ -MD -MF obj/torque_generated_definitions/managed-tq.o.d -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__ARM_NEON__=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DV8_LOGGING_LEVEL=1 -DV8_CONTIGUOUS_COMPRESSED_RO_SPACE -DV8_CONTIGUOUS_COMPRESSED_RO_SPACE_SIZE_MB=16 -DBUILTIN_BLOCK_POSITION -DV8_USE_HOST_CPU_ARM_FEATURES -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_ENABLE_CONTROL_FLOW_INTEGRITY -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_SPARKPLUG -DV8_ENABLE_SPARKPLUG_PLUS -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_CONTINUATION_PRESERVED_EMBEDDER_DATA -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_STATIC_ROOTS -DV8_USE_ZLIB -DV8_ENABLE_MAGLEV_GRAPH_PRINTER -DV8_ENABLE_BUILTIN_JUMP_TABLE_SWITCH -DV8_ENABLE_EXTENSIBLE_RO_SNAPSHOT -DV8_ENABLE_BLACK_ALLOCATED_PAGES -DV8_ENABLE_UNDEFINED_DOUBLE -DV8_ENABLE_PARTITION_ALLOC -DV8_WASM_RANDOM_FUZZERS -DPA_ENABLE_USER_SPACE_ZERO_SEGMENT -DV8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT=0 -DV8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT=0 -DV8_PROMISE_INTERNAL_FIELD_COUNT=0 -DV8_USE_DEFAULT_HASHER_SECRET=true -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DISALLOW_JS_IN_API_INTERRUPTS_IS_CHECKED -DV8_CPPGC_MICROTASK_QUEUE -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DV8_TARGET_ARCH_ARM64 -DCPPGC_SUPPORTS_OBJECT_NAMES -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_ENABLE_LARGER_CAGE -DCPPGC_ENABLE_OBJECT_SECTION_GCINFO -DCPPGC_SLIM_WRITE_BARRIER -DABSL_ALLOCATOR_NOTHROW=1 -I../.. -Igen -I../../include -Igen/include -I../../third_party/abseil-cpp -I../../third_party/fp16/src/include -I../../third_party/partition_alloc/src -Igen/third_party/partition_alloc/src -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -fno-strict-overflow -fno-ident -fno-math-errno -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pipe -pthread -mbranch-protection=standard -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fno-omit-frame-pointer -g0 -Wno-invalid-offsetof -Wno-strict-overflow -Wno-return-type -Wno-int-in-bool-context -Wno-deprecated -Wno-stringop-overflow -Wno-stringop-overread -Wno-restrict -Wno-array-bounds -Wno-nonnull -Wno-dangling-pointer -O3 -fdata-sections -ffunction-sections -fvisibility=default -Wno-narrowing -Wno-class-memaccess -Wno-invalid-offsetof -std=gnu++20 -fno-exceptions -fno-rtti  -c gen/torque-generated/src/objects/managed-tq.cc -o obj/torque_generated_definitions/managed-tq.o
In file included from ../../src/objects/managed.h:23,
                 from gen/torque-generated/src/objects/managed-tq.cc:1:
../../src/objects/object-macros.h:45:3: error: ‘#pragma’ is not allowed here
   45 |   _Pragma("pack(push)") _Pragma("pack(4)") _Pragma("GCC diagnostic push") \
      |   ^~~~~~~
../../src/objects/object-macros.h:63:19: note: in expansion of macro ‘V8_OBJECT_PUSH’
   63 | #define V8_OBJECT V8_OBJECT_PUSH
      |                   ^~~~~~~~~~~~~~
../../src/objects/managed.h:126:1: note: in expansion of macro ‘V8_OBJECT’
  126 | V8_OBJECT class CppGCManaged : public CppGCManagedBase {
      | ^~~~~~~~~
../../src/objects/managed.h:137:15: error: ‘CppType’ does not name a type
  137 |     V8_INLINE CppType* operator->() V8_LIFETIME_BOUND { return ptr_.get(); }
      |               ^~~~~~~
../../src/objects/managed.h:138:21: error: ‘CppType’ does not name a type
  138 |     V8_INLINE const CppType* operator->() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:142:15: error: ‘CppType’ does not name a type
  142 |     V8_INLINE CppType& operator*() V8_LIFETIME_BOUND { return *ptr_; }
      |               ^~~~~~~
../../src/objects/managed.h:143:21: error: ‘CppType’ does not name a type
  143 |     V8_INLINE const CppType& operator*() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:147:15: error: ‘CppType’ does not name a type
  147 |     V8_INLINE CppType* raw() V8_LIFETIME_BOUND { return ptr_.get(); }
      |               ^~~~~~~
../../src/objects/managed.h:148:21: error: ‘CppType’ does not name a type
  148 |     V8_INLINE const CppType* raw() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:151:15: error: ‘CppType’ does not name a type
  151 |     V8_INLINE CppType* get() V8_LIFETIME_BOUND { return ptr_.get(); }
      |               ^~~~~~~
../../src/objects/managed.h:152:21: error: ‘CppType’ does not name a type
  152 |     V8_INLINE const CppType* get() const V8_LIFETIME_BOUND {
      |                     ^~~~~~~
../../src/objects/managed.h:156:31: error: ‘CppType’ was not declared in this scope
  156 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() & { return ptr_; }
      |                               ^~~~~~~
../../src/objects/managed.h:156:38: error: template argument 1 is invalid
  156 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() & { return ptr_; }
      |                                      ^
../../src/objects/managed.h:156:20: error: ‘<expression error>’ in namespace ‘std’ does not name a type
  156 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() & { return ptr_; }
      |                    ^~~~~~~~~~~~~~~~~~~
../../src/objects/managed.h:157:31: error: ‘CppType’ was not declared in this scope
  157 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() && {
      |                               ^~~~~~~
../../src/objects/managed.h:157:38: error: template argument 1 is invalid
  157 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() && {
      |                                      ^
../../src/objects/managed.h:157:20: error: ‘<expression error>’ in namespace ‘std’ does not name a type
  157 |     V8_INLINE std::shared_ptr<CppType> as_shared_ptr() && {
      |                    ^~~~~~~~~~~~~~~~~~~
../../src/objects/managed.h:166:53: error: ‘CppType’ was not declared in this scope
  166 |     V8_INLINE bool operator==(const std::shared_ptr<CppType>& other) const {
      |                                                     ^~~~~~~
../../src/objects/managed.h:166:60: error: template argument 1 is invalid
  166 |     V8_INLINE bool operator==(const std::shared_ptr<CppType>& other) const {
      |                                                            ^
../../src/objects/managed.h:166:42: error: ‘<expression error>’ in namespace ‘std’ does not name a type
  166 |     V8_INLINE bool operator==(const std::shared_ptr<CppType>& other) const {
      |                                          ^~~~~~~~~~~~~~~~~~~
../../src/objects/managed.h:173:44: error: ‘CppType’ was not declared in this scope
  173 |     V8_INLINE explicit Ptr(std::shared_ptr<CppType> ptr)
      |                                            ^~~~~~~
../../src/objects/managed.h:173:51: error: template argument 1 is invalid
  173 |     V8_INLINE explicit Ptr(std::shared_ptr<CppType> ptr)
      |                                                   ^
../../src/objects/managed.h:173:52: error: expected ‘)’ before ‘ptr’
  173 |     V8_INLINE explicit Ptr(std::shared_ptr<CppType> ptr)
      |                           ~                        ^~~~
      |                                                    )
../../src/objects/managed.h:176:21: error: ‘CppType’ was not declared in this scope
  176 |     std::shared_ptr<CppType> ptr_;
      |                     ^~~~~~~
../../src/objects/managed.h:176:28: error: template argument 1 is invalid
  176 |     std::shared_ptr<CppType> ptr_;
      |                            ^

@github-actions

Copy link
Copy Markdown

windows-arm64 (default) failed — run

Last 80 lines of build log
�[1;34m==>�[0m effective args.gn:
    # --- args/common.gn ---
    # Base GN args shared across every target. Mirrors just-js/v8's proven args
    # (the closest working reference for modern V8 14.x); per-target files and
    # profile files override these as needed.
    
    is_debug = false
    is_component_build = false
    v8_monolithic = true
    v8_use_external_startup_data = false
    
    # Rust is enabled by default in modern V8 and would pull a prebuilt rust
    # toolchain that depot_tools does not always ship for every host arch. We
    # don't use any Rust-backed components from the monolith, so disable it.
    enable_rust = false
    
    is_clang = true
    clang_use_chrome_plugins = false
    dcheck_always_on = false
    use_custom_libcxx = false
    use_rtti = false
    
    symbol_level = 0
    strip_debug_info = true
    treat_warnings_as_errors = false
    
    v8_enable_i18n_support = false
    v8_enable_test_features = false
    v8_enable_gdbjit = false
    v8_enable_backtrace = false
    v8_enable_snapshot_compression = false
    v8_enable_temporal_support = false
    v8_deprecation_warnings = false
    v8_imminent_deprecation_warnings = false
    
    # --- args/windows.arm64.gn ---
    target_os = "win"
    target_cpu = "arm64"
    v8_target_cpu = "arm64"
    
    # --- args/profiles/default.gn ---
    # Default profile: smallest embedder-friendly build, no sandbox,
    # no pointer compression, no ICU. Matches the lowest common denominator
    # expected by most language bindings.
    v8_enable_pointer_compression = false
    v8_enable_sandbox = false
�[1;34m==>�[0m gn gen /c/a/libv8/libv8/v8/out/windows-arm64.default
Traceback (most recent call last):
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 342, in <module>
    main()
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 277, in main
    env = _LoadToolchainEnv(cpu, toolchain_root, win_sdk_path, target_store)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 194, in _LoadToolchainEnv
    return _ExtractImportantEnvironment(variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 68, in _ExtractImportantEnvironment
    raise Exception(
Exception: Path "C:\Program Files (x86)\Windows Kits\10\\include\10.0.28000.0\\um" from environment variable "include" does not exist. Make sure the necessary SDK is installed.
ERROR at //build/toolchain/win/win_toolchain_data.gni:9:7: Script returned non-zero exit code.
      exec_script("//build/toolchain/win/setup_toolchain.py",
      ^----------
Current dir: C:/a/libv8/libv8/v8/out/windows-arm64.default/
Command: C:/a/libv8/libv8/.depot_tools/bootstrap-2@3_11_8_chromium_35_bin/python3/bin/python3.exe C:/a/libv8/libv8/v8/build/toolchain/win/setup_toolchain.py "C:\Program Files/Microsoft Visual Studio/2022\Enterprise" "C:\Program Files (x86)\Windows Kits\10" "C:\Windows\System32;C:\Windows\SysWOW64;Arm64Unused" win x86 environment.x86
Returned 1.
See //build/toolchain/win/toolchain.gni:13:1: whence //build/toolchain/win/win_toolchain_data.gni was imported.
import("//build/toolchain/win/win_toolchain_data.gni")
^----------------------------------------------------
See //build/toolchain/win/BUILD.gn:6:1: whence //build/toolchain/win/toolchain.gni was imported.
import("//build/toolchain/win/toolchain.gni")
^-------------------------------------------
See //BUILD.gn:2503:14: which caused the file to be included.
    deps = [ ":torque($toolchain)" ]
             ^--------------------

@github-actions

Copy link
Copy Markdown

windows-arm64 (pointer-compression) failed — run

Last 80 lines of build log
    
    is_clang = true
    clang_use_chrome_plugins = false
    dcheck_always_on = false
    use_custom_libcxx = false
    use_rtti = false
    
    symbol_level = 0
    strip_debug_info = true
    treat_warnings_as_errors = false
    
    v8_enable_i18n_support = false
    v8_enable_test_features = false
    v8_enable_gdbjit = false
    v8_enable_backtrace = false
    v8_enable_snapshot_compression = false
    v8_enable_temporal_support = false
    v8_deprecation_warnings = false
    v8_imminent_deprecation_warnings = false
    
    # --- args/windows.arm64.gn ---
    target_os = "win"
    target_cpu = "arm64"
    v8_target_cpu = "arm64"
    
    # --- args/profiles/pointer-compression.gn ---
    # Pointer compression enabled. Callers MUST be compiled with the same flag.
    v8_enable_pointer_compression = true
    v8_enable_sandbox = false
    
    # When pointer compression is on, V8 enables partition_alloc's allocator
    # shim (CPPGC_POINTER_COMPRESSION), which forward-declares the global
    # operator new / operator delete overloads with default visibility.
    # macOS 15.5 SDK's libc++ (Xcode 16.4+) declares those same operators
    # with hidden visibility, so clang errors with "visibility does not
    # match previous declaration" against system libc++. Linking V8's own
    # bundled libc++ here keeps the declarations consistent across all
    # translation units.
    #
    # linux-arm64 is the exception: it builds with system gcc-14 + libstdc++
    # (V8 14.9's bundled clang prebuilt has no Linux_aarch64 build, see
    # args/linux.arm64.gn). The macOS visibility conflict doesn't apply
    # (libstdc++, not libc++), and V8's bundled libc++ headers require
    # GCC 15+ (they use __is_unbounded_array / __is_pointer / __decay /
    # __add_*_reference intrinsics gcc-14 doesn't support), so flipping
    # use_custom_libcxx=true there breaks the build at
    # libc++abi/cxa_aux_runtime. Keep system libstdc++ on that one target.
    if (target_os == "linux" && target_cpu == "arm64") {
      use_custom_libcxx = false
    } else {
      use_custom_libcxx = true
    }
�[1;34m==>�[0m gn gen /c/a/libv8/libv8/v8/out/windows-arm64.pointer-compression
Traceback (most recent call last):
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 342, in <module>
    main()
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 277, in main
    env = _LoadToolchainEnv(cpu, toolchain_root, win_sdk_path, target_store)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 194, in _LoadToolchainEnv
    return _ExtractImportantEnvironment(variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\a\libv8\libv8\v8\build\toolchain\win\setup_toolchain.py", line 68, in _ExtractImportantEnvironment
    raise Exception(
Exception: Path "C:\Program Files (x86)\Windows Kits\10\\include\10.0.28000.0\\um" from environment variable "include" does not exist. Make sure the necessary SDK is installed.
ERROR at //build/toolchain/win/win_toolchain_data.gni:9:7: Script returned non-zero exit code.
      exec_script("//build/toolchain/win/setup_toolchain.py",
      ^----------
Current dir: C:/a/libv8/libv8/v8/out/windows-arm64.pointer-compression/
Command: C:/a/libv8/libv8/.depot_tools/bootstrap-2@3_11_8_chromium_35_bin/python3/bin/python3.exe C:/a/libv8/libv8/v8/build/toolchain/win/setup_toolchain.py "C:\Program Files/Microsoft Visual Studio/2022\Enterprise" "C:\Program Files (x86)\Windows Kits\10" "C:\Windows\System32;C:\Windows\SysWOW64;Arm64Unused" win x86 environment.x86
Returned 1.
See //buildtools/third_party/libc++/modules.gni:14:3: whence //build/toolchain/win/win_toolchain_data.gni was imported.
  import("//build/toolchain/win/win_toolchain_data.gni")
  ^----------------------------------------------------
See //buildtools/third_party/libc++/BUILD.gn:8:1: whence //buildtools/third_party/libc++/modules.gni was imported.
import("//buildtools/third_party/libc++/modules.gni")
^---------------------------------------------------
See //build/config/BUILDCONFIG.gn:633:19: which caused the file to be included.
        deps += [ "//buildtools/third_party/libc++:all_modules" ]
                  ^--------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant