avx512bwintrin.h - error: #if with no expression
Description:
Build error when trying to compile code.
The error says
/usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/include/avx512bwintrin.h:202:17: error: #if with no expression
202 | #if __OPTIMIZE__
| ^
The problem is this line https://github.com/gcc-mirror/gcc/blob/846837c2406ae7a52d9123b29c13e4b8b9d14224/gcc/config/i386/avx512bwintrin.h#L202. When changing the previous line to the same as https://github.com/gcc-mirror/gcc/blob/846837c2406ae7a52d9123b29c13e4b8b9d14224/gcc/config/i386/avx512bwintrin.h#L2841 it works.
Additional info:
gcc --version
gcc (GCC) 14.2.1 20250128
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Steps to reproduce:
- Clone https://github.com/srsran/srsRAN_4G.git
- Configure with CMake, without special arguments
- Build target
cell_search
For a list of dependencies, see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=srsran-4g-git.