Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vng97-00AB3m-1p for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 16:54:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vng96-00Cfep-1B for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 16:54:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vng96-00Cfeh-0D for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 16:54:27 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vng93-00000000YLb-3amB for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 16:54:26 +0000 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-45efe81556fso4701362b6e.2 for ; Wed, 04 Feb 2026 08:54:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770224065; x=1770828865; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aZiuyR9WO+vcfze8cLDR8I10jwOcIWUxa8JSBBTv+rA=; b=VhXZC1f3Rzb6vl2lpJEyVxNtY0uM0pl4byFKOhf0M7Wm8ou81Ql4k0Aks3SIF4dwCX 5Wdy/iv4LMZNTB2IGu/Om6zltP3SxSpQevAGk0qFM6GAzYBStbJfNak8dIern6ppWfum 0Nus953pXFRPmJb0/Uqy7IZ1rWaK/DXFY71XSXBvR6TZyxlMSE3rbVRRVzTPT0z0FdGE 0wIy+WcTXv7RWi7kBgCPKIrnPhAoW/e/G/tE+oy/LzH0w97TFDH7Q2RBsTN5BESzjljJ sfb8Yq6ttOJwphwjPZiBKQShNpXuV8NI0yTnyHk607jf6pB0CmMN7XfOOIxpiU0AWYy9 hLhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770224065; x=1770828865; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aZiuyR9WO+vcfze8cLDR8I10jwOcIWUxa8JSBBTv+rA=; b=JBBi1Fp73Eo9hCdJO7b9d8manK4qmJqBm2d/iDH4mJ7atw6OhtHWv0wKWtVuyoGklK jT3xujRycLr9fuhbrNXGIP3WuFQ6SzHCDMA4Z4VVYwtB27mdbubvcGloa7mZJxfH/UYG SIMEAtAqsMBn7mlGRtL7LM7vxU+zdanSV+GZ+HlI9ro92ZA69H2qWamT1dpr2BizybIP AC2/wRSUGmU3fwd5rtYzYQUzHtSzeiTVnTbh/gZmWbhicQgOve8cJg+Y+CpJbz13Fbkx 6ggJ5nEgdCdLLsj5ihw0Wp3oJLQ9Af1oUo4khHxgPXl/0HbOvvLAvt2OPWpwoNcSW48+ GPrQ== X-Forwarded-Encrypted: i=1; AJvYcCVlyi+T1lZyT0OKFDmqnsYGn6x5Lj8OFWsNUCOZUAEZDwcX7gCN79udUgKJ3MFrDn+NmZtvfxem10wp9f5v@lists.postgresql.org X-Gm-Message-State: AOJu0YwpdijbfqTOx4dmY+3OVRvGztFNHAZZzMdbv61UpA8EyxKPaLXC LFYOQ0/ZA7S5pPosrEiy7bqejYNd9EqdSt35bhyhCZnAAHohWkf6ewt3 X-Gm-Gg: AZuq6aJuZIOAY0EweT0EM93m0xVErfgznIQ0zJatQiPIaWMC7xRu1yiEVga7zMjuoTs bUhv/27b+WOMGVCXs2ICU3t/ci7OSj76dREBlPT8ccIBoJYfnFJPZdxPSPUwB4OF6udIjUpidsC jO1YFiOjEoEnixcSyQPFsiG3+LvvqMDYUgKGeTrCo15ic0lys7yj3ZzT+XaBW2f/c/NV1nWg0X/ /H1SnAkR1m6udv3+A1u0sS0Lk4Irjc2puTGZgHqBmH3drhKaLB45MVSBxsuVidn2ecJlJRBFxol VOy6YktqIG1GP/qz6D7qB1M9dAbNvxxVHolSMhQt55fnt/gZ292MQEhWxGBtomrMJU8btd6mEi9 GG9i3Ji4D+3DNcBXNTsoIY7kSQ3eFJIFrnL3WXSdiLp+RQHx52kHrIayTU4aTI3OjXIWjXG/z6G VcgDbTn4F5JBZDyjRQ4hLJ8TV+j04EIQ0z00s/Ir54BmZU+5nk85AXPrVmZUC4UHNoEbKbFHVT+ 6/j X-Received: by 2002:a05:6808:13cd:b0:45c:6ade:1974 with SMTP id 5614622812f47-462d59f263amr1795323b6e.42.1770224065065; Wed, 04 Feb 2026 08:54:25 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 5614622812f47-462d66595a1sm1616944b6e.8.2026.02.04.08.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 08:54:24 -0800 (PST) Date: Wed, 4 Feb 2026 10:54:22 -0600 From: Nathan Bossart To: Tom Lane Cc: Peter Eisentraut , Zhang Mingli , PostgreSQL Hackers Subject: Re: [BUG?] macOS (Intel) build =?utf-8?Q?w?= =?utf-8?Q?arnings=3A_=22ranlib=3A_file_?= =?utf-8?B?4oCm?= has no symbols" for aarch64 objects Message-ID: References: <229aaaf3-f529-44ed-8e50-00cb6909af21@Spark> <4df5af1a-8528-4f9f-9daf-ec069bd66f69@eisentraut.org> <1453046.1770218933@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453046.1770218933@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 04, 2026 at 10:28:53AM -0500, Tom Lane wrote: > Peter Eisentraut writes: >> On 29.01.26 07:35, Zhang Mingli wrote: >>> 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. > > Yeah. My Intel Mac buildfarm animal (longfin) has been showing this > for some time, but there's no corresponding warning on its ARM Mac > brethren (sifaka/indri). I doubt it's worth fixing just to get > rid of the warning. Although if a fix arises organically out of the > nearby thread about popcount refactoring, that would be okay here... 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. -- nathan