You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switching to clang (on Fedora, clang 20.1.8) or gcc 14 (Ubuntu) succeeds without the error (both of which would cause HWY_BROKEN_AVX10_2 to be defined according to the above snippet).
$ gcc --versiongcc (GCC) 15.2.1 20250808 (Red Hat 15.2.1-1)Copyright (C) 2025 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$
$ gcc --versiongcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0Copyright (C) 2025 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$
// Support for avx10.2-512 was removed between clang 22 and 23 without a// feature test macro.
#if HWY_COMPILER_CLANG >= 2200 && HWY_HAVE_EVEX512
#defineHWY_TARGET_STR_AVX10_2HWY_TARGET_STR_AVX3_SPR",avx10.2-512"// Recent compilers drop the -512 suffix because 512 bits are always available.
#elif HWY_COMPILER_GCC_ACTUAL >= 1500 || HWY_COMPILER_CLANG >= 2200
#defineHWY_TARGET_STR_AVX10_2HWY_TARGET_STR_AVX3_SPR",avx10.2"
#else
#defineHWY_TARGET_STR_AVX10_2HWY_TARGET_STR_AVX3_SPR
#endif
i.e. for gcc 15 it would now use avx10.2 instead of avx10.2-512.
I can confirm cherry-picking the upstream highway commit fixes the build with gcc 15. It hasn't landed in upstream V8 yet, but I've gone ahead and opened a cherry-pick PR: #60682
Activity
richardlau commentedon Nov 3, 2025
I think the error is originating here (specifically the bit that appends
avx10.2-512):node/deps/v8/third_party/highway/src/hwy/ops/set_macros-inl.h
Lines 190 to 198 in f9a83ff
It looks like this code was rewritten in google/highway#2563 and now looks like https://github.com/google/highway/blob/b0a4535743aca3e499d8c8d6d4969b94108ea854/hwy/ops/set_macros-inl.h#L196-L205
i.e. for gcc 15 it would now use
avx10.2instead ofavx10.2-512.richardlau commentedon Nov 3, 2025
google/highway@0c160d0#r168636891 and google/highway@989a498
richardlau commentedon Nov 11, 2025
I can confirm cherry-picking the upstream highway commit fixes the build with gcc 15. It hasn't landed in upstream V8 yet, but I've gone ahead and opened a cherry-pick PR: #60682
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
137 remaining items
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3
deps: V8: cherry-pick highway@989a498fdf3