Re: Compile error on the aarch64 platform: Missing asm/hwcap.h - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
Date
Msg-id 3135693.1763132549@sss.pgh.pa.us
Whole thread Raw
In response to Re: Compile error on the aarch64 platform: Missing asm/hwcap.h  (John Naylor <johncnaylorls@gmail.com>)
Responses Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
List 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 by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Uncommented GUC in postgresql.conf.sample
Next
From: Nathan Bossart
Date:
Subject: Re: [Patch] Mention md5 is deprecated in postgresql.conf.sample