public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Nathan Bossart <[email protected]>
Cc: Peter Eisentraut <[email protected]>
Cc: Zhang Mingli <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: [BUG?] macOS (Intel) build warnings: "ranlib: file … has no symbols" for aarch64 objects
Date: Wed, 04 Feb 2026 13:27:43 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <aYN5vmHb89m3sfgs@nathan>
References: <b3e0930c-e86c-4a6e-8059-281424ca6d69@Spark>
<229aaaf3-f529-44ed-8e50-00cb6909af21@Spark>
<[email protected]>
<[email protected]>
<aYN5vmHb89m3sfgs@nathan>
Nathan Bossart <[email protected]> writes:
> Hm. The options I see for fixing this seem to be:
> * Pass -no_warning_for_no_symbols flag on this platform, but that option
> might not be available in older toolchains.
> * Add a random symbol to this file. That seems like a hack.
> * Add build logic to only compile this file when necessary. I've been
> trying to get rid of complexity here, so this feels like a step backwards.
> IMHO none of these options seem worth the effort to fix a warning on an
> obsolescent platform, so my vote is to do nothing for now.
The idea I'd had was to simply merge pg_popcount_aarch64.c
and pg_popcount_x86.c into one file. Since each one is basically
one giant #ifdef block conditioned on a different symbol, they'd not
interfere. But I wouldn't propose this unless it made sense from
a code-structure viewpoint, and I'm not sure it does. It could
make sense if there was some code that could be shared, but I'm
not seeing much.
regards, tom lane
view thread (22+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: [BUG?] macOS (Intel) build warnings: "ranlib: file … has no symbols" for aarch64 objects
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox