Re: Compile error on the aarch64 platform: Missing asm/hwcap.h
高增琦 <pgf00a@gmail.com>
From: 高增琦 <pgf00a@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Steven Niu <niushiji@gmail.com>, John Naylor <johncnaylorls@gmail.com>, "tmunro@postgresql.org" <tmunro@postgresql.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-11-18T02:54:31Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix pg_popcount_aarch64.c to build with ancient glibc releases.
- 6a5170755127 18.2 landed
- 3e83bdd35a5f 19 (unreleased) landed
-
Fix pg_crc32c_armv8_choose.c to build with ancient glibc releases.
- db4eba15266e 18.2 landed
- 6d969ca687b4 19 (unreleased) landed
Thanks for the quick fix. There's another one (the last one) in the previous email that needs fixing: HWCAP_SVE for pg_popcount_aarch64.c 😅 Tom Lane <tgl@sss.pgh.pa.us> 于2025年11月18日周二 04:31写道: > I wrote: > > ... I'm inclined to think > > it's better to do something like > > > +#if defined(__linux__) && (defined(__aarch64__) ? !defined(HWCAP_CRC32) > : !defined(HWCAP2_CRC32)) > > > or perhaps that's too unreadable and we should break it out into > > multiple #if's. > > I tried it as a nest of #ifdef's and decided that was none too > readable either, so pushed it as above. Thanks for the report! > > regards, tom lane > -- GaoZengqi pgf00a@gmail.com zengqigao@gmail.com