During building update for bind, bug #2187996 Reproducible: Always Steps to Reproduce: 1. fedpkg clone bind && cd bind 2. fedpkg mockbuild 3. Actual Results: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../lib/isc -I../.. -D_FORTIFY_SOURCE=2 -include ../../config.h -I../../../lib/isc/include -I../../../include -I../../../lib/isc/include -I../../lib/isc/include -I/usr/include/json-c -I/usr/include/libxml2 -DOPENSSL_API_COMPAT=10100 -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -pthread -c ../../../lib/isc/rwlock.c -fPIC -DPIC -o .libs/libisc_la-rwlock.o In file included from ../../../lib/isc/rwlock.c:150: /usr/lib/gcc/x86_64-redhat-linux/13/include/immintrin.h:135:10: fatal error: amxcomplexintrin.h: No such file or directory 135 | #include <amxcomplexintrin.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. make[3]: *** [Makefile:1486: libisc_la-rwlock.lo] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/bind-9.18.14/build/lib/isc' Expected Results: It builds fine. rwlock.c contains this block around line 150: #if defined(_MSC_VER) #include <intrin.h> #define isc_rwlock_pause() YieldProcessor() #elif defined(__x86_64__) #include <immintrin.h> #define isc_rwlock_pause() _mm_pause() #elif defined(__i386__) #define isc_rwlock_pause() __asm__ __volatile__("rep; nop") #elif defined(__ia64__) #define isc_rwlock_pause() __asm__ __volatile__("hint @pause") #elif defined(__arm__) && HAVE_ARM_YIELD #define isc_rwlock_pause() __asm__ __volatile__("yield") #elif defined(sun) && (defined(__sparc) || defined(__sparc__)) #define isc_rwlock_pause() smt_pause() #elif (defined(__sparc) || defined(__sparc__)) && HAVE_SPARC_PAUSE #define isc_rwlock_pause() __asm__ __volatile__("pause") #elif defined(__ppc__) || defined(_ARCH_PPC) || defined(_ARCH_PWR) || \ defined(_ARCH_PWR2) || defined(_POWER) #define isc_rwlock_pause() __asm__ volatile("or 27,27,27") #else /* if defined(_MSC_VER) */ #define isc_rwlock_pause() #endif /* if defined(_MSC_VER) */
Simple steps to reproduce: $ echo "#include <immintrin.h>" > test.h $ gcc -E test.h ... # 1 "/usr/lib/gcc/x86_64-redhat-linux/13/include/amxbf16intrin.h" 1 3 4 # 32 "/usr/lib/gcc/x86_64-redhat-linux/13/include/amxbf16intrin.h" 3 4 #pragma GCC push_options #pragma GCC target("amx-bf16") # 49 "/usr/lib/gcc/x86_64-redhat-linux/13/include/amxbf16intrin.h" 3 4 #pragma GCC pop_options # 134 "/usr/lib/gcc/x86_64-redhat-linux/13/include/immintrin.h" 2 3 4 In file included from test.h:1: /usr/lib/gcc/x86_64-redhat-linux/13/include/immintrin.h:135:10: fatal error: amxcomplexintrin.h: No such file or directory 135 | #include <amxcomplexintrin.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated.
*** This bug has been marked as a duplicate of bug 2188608 ***