Re: [BUG?] macOS (Intel) build warnings: "ranlib: file … has no symbols" for aarch64 objects
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Peter Eisentraut <peter@eisentraut.org>,
Zhang Mingli <zmlpostgres@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-27T02:18:33Z
Lists: pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes: > Well, the latest macOS update added these warnings for aarch64: > ranlib: warning: 'libpgport_shlib.a(pg_cpu_x86.c.o)' has no symbols > ranlib: warning: 'libpgport_shlib.a(pg_popcount_x86.c.o)' has no symbols > ranlib: warning: 'libpgport_shlib.a(pg_cpu_x86.c.o)' has no symbols > ranlib: warning: 'libpgport_shlib.a(pg_popcount_x86.c.o)' has no symbols > I'm not seeing an easy way to pass -no_warning_for_no_symbols to ranlib, at > least with meson. Hm... Yeah, we aren't even calling ranlib directly, it goes through 'ar' which doesn't expose any such option. In any case that'd necessarily be an OS-specific option. I previously suggested that we should teach the build systems not to build the foo_x86 and foo_aarch64 modules when not on those architectures. That was shot down for reasons that made no great amount of sense to me, but I think it'd be fairly easy and clean. regards, tom lane
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