Re: [BUG?] macOS (Intel) build warnings: "ranlib: file … has no symbols" for aarch64 objects

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Zhang Mingli <zmlpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [BUG?] macOS (Intel) build warnings: "ranlib: file … has no symbols" for aarch64 objects
Date: 2026-02-04 14:54:35
Message-ID: 4df5af1a-8528-4f9f-9daf-ec069bd66f69@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2026-02-04 14:55:00 Re: AIX support
Previous Message Zsolt Parragi 2026-02-04 14:52:35 Re: [PATCH] New [relation] option engine