Re: Broken build on macOS (Universal / Intel): cpuid instruction not available - Mailing list pgsql-hackers

From Jakob Egger
Subject Re: Broken build on macOS (Universal / Intel): cpuid instruction not available
Date
Msg-id F5356EC9-CE78-464C-8F90-AB99ED2CB108@eggerapps.at
Whole thread
In response to Re: Broken build on macOS (Universal / Intel): cpuid instruction not available  (Jakob Egger <jakob@eggerapps.at>)
List pgsql-hackers


Am 07.05.2026 um 16:38 schrieb Jakob Egger <jakob@eggerapps.at>:
Am 07.05.2026 um 15:59 schrieb Tom Lane <tgl@sss.pgh.pa.us>:

Daniel Gustafsson <daniel@yesql.se> writes:
On 7 May 2026, at 14:42, John Naylor <johncnaylorls@gmail.com> wrote:
This results in an error:
checksum.c:57:6: error: call to undeclared function 'x86_feature_available'

That's strange. I have an Intel MacBook laying around -- I'll see what I can do.

I use an Intel MacBook Pro as my daily driver (currently running macOS 14.7)
and have not had any issues.

BF member longfin is an Intel Mac Mini and has not shown issues
(although I think it's one macOS rev behind).  I can believe that
universal builds are busted, because we don't test that.  But
claiming that a plain Intel build is broken is contrary to
available evidence.

I've set up a fresh VM with macOS 26.4.1 and command line tools.
Universal builds are still broken, but Intel builds (with Rosetta) work in the new VM.
So the intel issue might be something unique to my machine. I''ll try to figure it out.

Jakob

The Intel build error only occurs when building in Rosetta with Xcode 26.2.
I've switched to building with Command Line Tools 26.4 and it builds fine.

The Universal build issue on the other hand is reproducible across multiple Xcode and macOS versions.

Jakob

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Broken build on macOS (Universal / Intel): cpuid instruction not available
Next
From: David Geier
Date:
Subject: Re: Avoid calling SetMatViewPopulatedState if possible