Re: [BUG?] macOS (Intel) build warnings: "ranlib: file … has no symbols" for aarch64 objects
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Zhang Mingli <zmlpostgres@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-04T14:54:35Z
Lists: pgsql-hackers
On 29.01.26 07:35, Zhang Mingli wrote: > I'm building the master branch (commit 740a1494f4bf) on macOS (Intel > Core i7) and encountered the following warnings during the make process: > > > > /Applications/Xcode.app/Contents/Developer/Toolchains/ > XcodeDefault.xctoolchain/usr/bin/ranlib: file: > libpgport.a(pg_popcount_aarch64.o) has no symbols > /Applications/Xcode.app/Contents/Developer/Toolchains/ > XcodeDefault.xctoolchain/usr/bin/ranlib: file: > libpgport_shlib.a(pg_popcount_aarch64_shlib.o) has no symbols > /Applications/Xcode.app/Contents/Developer/Toolchains/ > XcodeDefault.xctoolchain/usr/bin/ranlib: file: > libpgport_srv.a(pg_popcount_aarch64_srv.o) has no symbols > > > The build completes successfully and the compiled binaries appear to > function correctly. > These warnings appear to be related to the recent AArch64 (pg_popcount) > optimization commits (possibly 79e232ca013c and fbe327e5b465d). It seems > that on my Intel-based macOS system, the build process is generating > empty or placeholder object files for the AArch64-specific implementations. > While there is no functional impact in my environment, I'm reporting > this to ensure it's noted, as other macOS/Intel users might encounter > the same warnings during their build. Probably not worth fixing, since this is an obsolescent platform. The opposite situation also exists: On macOS ARM, an empty pg_popcount_x86.c gets built, but apparently that linker doesn't warn about that.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Suppress "has no symbols" linker warnings on macOS.
- f00cccb79870 18.4 landed
- 7a8e35a4c964 16.14 landed
- 76cdf922b0e7 15.18 landed
- 5367c28c875c 14.23 landed
- 455ddabc8d9e 17.10 landed
- 3dd42ee97b81 19 (unreleased) landed
- 05f6c9ec2c47 13 (unreleased) landed
-
Fix two error messages in extended_stats_funcs.c
- 740a1494f4bf 19 (unreleased) cited