Skip to content

Bump V18 from 18.0.0 to 18.3.0 to fix darwin/arm64#166

Merged
fergusstrange merged 1 commit intofergusstrange:masterfrom
nzoschke:nzoschke/fix-v18-darwin-arm64
Mar 17, 2026
Merged

Bump V18 from 18.0.0 to 18.3.0 to fix darwin/arm64#166
fergusstrange merged 1 commit intofergusstrange:masterfrom
nzoschke:nzoschke/fix-v18-darwin-arm64

Conversation

@nzoschke
Copy link
Copy Markdown
Contributor

Summary

  • Bump V18 from 18.0.0 to 18.3.0 to fix "bad CPU type in executable" on Apple Silicon Macs without Rosetta 2
  • Update README to note that 18.3.0+ works natively on Apple Silicon

Root cause

The upstream EnterpriseDB macOS binaries for PostgreSQL 18.0.0 were x86_64-only — the CFLAGS for universal binary compilation were accidentally dropped in EDB's build (EnterpriseDB/edb-installers#409, fix commit). The zonky repack-postgres.sh downloads the same macOS zip for both amd64 and arm64v8, relying on it being a universal binary. With 18.0.0, both packages contained x86_64-only executables.

EDB fixed this, and the 18.3.0 binaries on Maven Central (zonkyio/embedded-postgres-binaries) ship proper universal binaries:

$ file bin/initdb
bin/initdb: Mach-O universal binary with 2 architectures: [x86_64] [arm64]

Test plan

  • go test ./... passes
  • On Apple Silicon Mac (without Rosetta): V18 starts successfully
  • Verify: file ~/.embedded-postgres-go/extracted/bin/initdb shows universal binary

🤖 Generated with Claude Code

The upstream EnterpriseDB macOS binaries for PostgreSQL 18.0.0 were
x86_64-only (missing the arm64 slice), causing "bad CPU type in
executable" on Apple Silicon Macs without Rosetta 2. This was fixed
in EDB's build system (EnterpriseDB/edb-installers#409) and the
18.3.0 binaries ship as proper universal binaries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nzoschke
Copy link
Copy Markdown
Contributor Author

Fixes #165

@fergusstrange fergusstrange merged commit 490777e into fergusstrange:master Mar 17, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants