Re: Broken build on macOS (Universal / Intel): cpuid instruction not available

Tobias Bussmann <t.bussmann@gmx.net>

From: Tobias Bussmann <t.bussmann@gmx.net>
To: John Naylor <johncnaylorls@gmail.com>
Cc: Lukas Fittl <lukas@fittl.com>, Tom Lane <tgl@sss.pgh.pa.us>, Jakob Egger <jakob@eggerapps.at>, pgsql-hackers <pgsql-hackers@postgresql.org>, Andres Freund <andres@anarazel.de>
Date: 2026-05-08T08:26:33Z
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 →
  1. Fix universal builds on MacOS

  2. Centralize detection of x86 CPU features

Attachments

> Am 08.05.2026 um 05:48 schrieb John Naylor <johncnaylorls@gmail.com>:
> 
> Jakob and Tobias, how far do you get with the attached, at least for
> the target x86 case?

thanks! I tried the patch and it fixes the universal build that broke with
16743db (and make check passes for both architectures). It remains to be 
analysed how useful these universal builds are given the lack of 
optimisations for one of the architectures, but at least they are possible
again, as they were previously.


> And it might help if you sent the configure
> output in a file so we can see what we're dealing with.

Please find the configure output attached.


> Note also that
> we have two build systems, since we'll likely transition away from
> autotools:

sure, I haven't yet evaluated the meson build system but I plan to do so.

Best regards
Tobias