[Bug 293845] Compilation fails with "use of undeclared identifier '__builtin_ia32_readeflags_u32'" on aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Mar 2026 01:13:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293845
--- Comment #3 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #2)
Here is the specific code taht leads to attempted use of
x86intrin.h :
// See if we should use the x86 TSC register for timing.
#if defined(PXR_ARCH_PREFER_TSC_TIMING) && \
defined(ARCH_OS_LINUX) && \
defined(ARCH_CPU_INTEL) && \
(defined(ARCH_COMPILER_CLANG) || defined(ARCH_COMPILER_GCC))
#define ARCH_USE_TSC_TIMING 1
#else
#define ARCH_USE_TSC_TIMING 0
#endif
#if ARCH_USE_TSC_TIMING
#include <x86intrin.h>
#endif
Somehow you have ARCH_CPU_INTEL defined for aarch64 builds
(among other things that may or may not be correct).
--
You are receiving this mail because:
You are the assignee for the bug.