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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
Дата
Msg-id 3135693.1763132549@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Compile error on the aarch64 platform: Missing asm/hwcap.h  (John Naylor <johncnaylorls@gmail.com>)
Ответы Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
Список pgsql-hackers
John Naylor <johncnaylorls@gmail.com> writes:
> 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

I wonder if the "&& !defined(__aarch64__)" bit needs to be removed.
But yeah, the real question is what is the difference between the
OP's machine and everyplace else where this code works fine ...

            regards, tom lane



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