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
{{ message }}
Repository navigation
gcc 16: "bp cannot be used in 'asm' here" in haswell sup kernels #970
When trying to compile the Dirac program, which employes BLIS, on a gentoo linux with
gcc (Gentoo 16.2.1_p20260926 p1) 16.2.1 20260926
I got an error message:
/quantchem/dirac/build/_deps/blis-src/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8m.c:1770:1: error: bp cannot be used in 'asm' here
1770 | }
BLIS commit: 358e689 (pulled in by DIRAC)
Compiler: gcc 16.2.1 20260926 (Gentoo 16.2.1_p20260926 p1), x86_64 Linux
Configuration: haswell
With gcc 16, -fno-stack-protector, -fno-stack-clash-protection or -O2 do not help.
Adding -fno-tree-vectorize makes it compile. It looks like gcc 16
vectorizes the C code around the asm block in a way that requires a
frame pointer, so rbp in the clobber list is rejected despite
-fomit-frame-pointer.
Workaround: append -fno-tree-vectorize to CKOPTFLAGS in config/haswell/make_defs.mk.
Activity
Add -fno-tree-vectorize for haswell kernels.