| From: | Jakob Egger <jakob(at)eggerapps(dot)at> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Cc: | john(dot)naylor(at)postgresql(dot)org, Tobias Bussmann <t(dot)bussmann(at)gmx(dot)net> |
| Subject: | Broken build on macOS (Universal / Intel): cpuid instruction not available |
| Date: | 2026-05-07 11:41:11 |
| Message-ID: | 223EA201-A0E8-4A13-B220-EB903E8DF817@eggerapps.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello!
We have been investigating recent build failures of the master branch.
Currently both Intel and Universal builds are broken on macOS.
We tested building on macOS 26.4.1 with Xcode 26.2 and on macOS 14.5.
Universal builds
============
Universal builds are broken since this commit:
16743db: Centralize detection of x86 CPU features
To reproduce:
export CFLAGS="-arch arm64 -arch x86_64"
./configure --without-icu
make
This results in an error "cpuid instruction not available"
Universal builds used to work; they are broken since commit 16743db.
Intel Builds
========
Intel-only builds (using Rosetta) are also broken in master since the following commit:
5e13b0f: Use AVX2 for calculating page checksums where available
To reproduce:
arch -x86_64 zsh
./configure --without-icu
make
This results in an error:
checksum.c:57:6: error: call to undeclared function 'x86_feature_available'
Best regards,
Jakob Egger and Tobias Bussmann
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shveta malik | 2026-05-07 11:46:23 | Re: Include schema-qualified names in publication error messages. |
| Previous Message | solaimurugan vellaipandiyan | 2026-05-07 11:38:38 | Re: postgres_fdw: Use COPY to speed up batch inserts |