Repository navigation
main fails to compile with gcc 15 #60566
Copy link
Copy link
Closed
Description
Activity
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
#if HWY_COMPILER_GCC_ACTUAL >= 1500 || HWY_COMPILER_CLANG >= 2200 #if HWY_HAVE_EVEX512 #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR ",avx10.2-512" #else #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR ",avx10.2" #endif // HWY_HAVE_EVEX512 #else #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR #endif 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
// 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 #define HWY_TARGET_STR_AVX10_2 HWY_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 #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR ",avx10.2" #else #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR #endif
i.e. for gcc 15 it would now use
avx10.2instead ofavx10.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
- added a commit that references this issue
on Nov 13, 2025 - added 2 commits that reference this issue
on Dec 9, 2025 - added a commit that references this issue
on Dec 22, 2025 137 remaining items
- added a commit that references this issue
on Sep 22, 2026 - added a commit that references this issue
on Sep 29, 2026 - added a commit that references this issue
on Sep 29, 2026 - added a commit that references this issue
on Sep 30, 2026 - added 2 commits that reference this issue
on Sep 30, 2026 - added 2 commits that reference this issue
on Oct 5, 2026
Metadata
Metadata
Assignees
Labels
No labels
Attempting to build the
mainbranch with gcc 15 (tested on Fedora 42 and Ubuntu 25.10 (container)) fails to compile withcc1plus: error: attribute 'target' argument 'avx10.2-512' is unknownThis appears to have started after the V8 14.2 update -- possibly highway (which is version sniffing the compiler)?
node/deps/v8/third_party/highway/src/hwy/detect_targets.h
Lines 197 to 206 in 72c0fdf
Switching to
clang(on Fedora, clang 20.1.8) or gcc 14 (Ubuntu) succeeds without the error (both of which would causeHWY_BROKEN_AVX10_2to be defined according to the above snippet).