Re: Compile error on the aarch64 platform: Missing asm/hwcap.h

Поиск
Список
Период
Сортировка
От John Naylor
Тема Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
Дата
Msg-id CANWCAZbgJVBTPuuV_NpYFZA3bkw1y7nc0cMY5BXHdfnFVNanJQ@mail.gmail.com
обсуждение исходный текст
Ответ на Compile error on the aarch64 platform: Missing asm/hwcap.h  (高增琦 <pgf00a@gmail.com>)
Ответы Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
Список pgsql-hackers
On Fri, Nov 14, 2025 at 11:02 AM 高增琦 <pgf00a@gmail.com> wrote:
> Compile error on CentOS Linux release 7.6.1810 (AltArch) with the message “‘HWCAP_CRC32’ undeclared”.

We still have at least one CentOS 7 aarch64 machine that gets regular
testing (not sure of the reason, since it's been EOL for a year and a
half IIUC), and it builds fine:

https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=arowana&dt=2025-11-04%2004%3A56%3A57

> After modifying the code to add `include <asm/hwcap.h>`, the compilation succeeded.

We already have the following, so I'm not sure what you mean (or even
what architecture you're running on):

#if defined(HAVE_ELF_AUX_INFO) || defined(HAVE_GETAUXVAL)
#include <sys/auxv.h>
#if defined(__linux__) && !defined(__aarch64__) && !defined(HWCAP2_CRC32)
#include <asm/hwcap.h>
#endif
#endif

--
John Naylor
Amazon Web Services



В списке pgsql-hackers по дате отправления: