| From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | John Naylor <johncnaylorls(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, 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-04-28 20:32:28 |
| Message-ID: | afEZXCDzmlr3TnSg@nathan |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, Apr 28, 2026 at 09:09:09AM -0500, Nathan Bossart wrote:
> On Tue, Apr 28, 2026 at 09:29:41AM -0400, Tom Lane wrote:
>> If we do care, a low-tech solution could be to have a dummy symbol
>> declared in each file, along the lines of
>>
>> #if HAVE_X86_64_POPCNTQ
>> // code for popcntq case
>> #elif HAVE_FROBNITZ
>> // code for frobnitz case
>> ...
>> #else
>> /* prevent linker complaints about empty module */
>> extern int pg_cpu_x86_dummy_variable;
>> int pg_cpu_x86_dummy_variable = 0;
>> #endif
>>
>> Actually then we'd not need to change the build systems either...
>
> I've been trying to avoid doing that, but it's a far simpler solution, and
> in theory it should fix the problem for all platforms, too. So, it's
> probably the way to go.
Here's a full set of patches for back-patching purposes.
protocol_openssl.c has a similar problem on older versions. I suppose this
is the sort of thing I could back-patch all the way to v9.2. Does anyone
feel strongly one way or the other about that?
--
nathan
| Attachment | Content-Type | Size |
|---|---|---|
| v4-0001-Suppress-has-no-symbols-linker-warnings-on-ma.patch.v14 | text/plain | 1.3 KB |
| v4-0001-Suppress-has-no-symbols-linker-warnings-on-ma.patch.v15 | text/plain | 1.3 KB |
| v4-0001-Suppress-has-no-symbols-linker-warnings-on-ma.patch.v16 | text/plain | 1.3 KB |
| v4-0001-Suppress-has-no-symbols-linker-warnings-on-ma.patch.v17 | text/plain | 1.3 KB |
| v4-0001-Suppress-has-no-symbols-linker-warnings-on-ma.patch.v18 | text/plain | 1.8 KB |
| v4-0001-Suppress-has-no-symbols-linker-warnings-on.patch.master | text/plain | 2.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2026-04-28 20:48:13 | Re: [BUG?] macOS (Intel) build warnings: "ranlib: file … has no symbols" for aarch64 objects |
| Previous Message | SATYANARAYANA NARLAPURAM | 2026-04-28 20:25:30 | Re: Changing the state of data checksums in a running cluster |