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 1wHj7m-007SGZ-0M for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Apr 2026 14:09:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wHj7j-00HZwO-29 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Apr 2026 14:09:15 +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 1wHj7j-00HZvo-1D for pgsql-hackers@lists.postgresql.org; Tue, 28 Apr 2026 14:09:15 +0000 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wHj7g-00000003CJq-3Y0A for pgsql-hackers@lists.postgresql.org; Tue, 28 Apr 2026 14:09:14 +0000 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-479f7e75a6bso2729971b6e.2 for ; Tue, 28 Apr 2026 07:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777385352; x=1777990152; 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=RG7aGILaGjgCtbps2OyrljVgvQCcZe/+3XNoaUCUlsg=; b=bvCaKjJubKs/YDQ6z/w1YeZLrkIHYWiyqj+iIebW6IuMws+9QtcZ/l5rbVrI1X+adO 9DMg50K7Y+XFAurMR5ED8XY7T3T5LuikTxWe0eO/hmO2cEcKLpxb0NEM/0X7++DkDpOd +FgpTjzg/aIKFwvS6H4V9j71Tn/18C1ruU750QVfhPocZFXn2awTxhJiR8GC6W5fIvPV FJN4C7HkNd2ieCNaO1Q0seB85lNkzF4NXsN5LyNHxLIVGBJ3y+zeTWJc5MjYu/7tVJjg QtP1EhO0BFdrhr0K066AlgkRzV6HZxRGxxJLva3sQ3XTJ03MsyUguCE1II84rRrV+Y8x 9+pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777385352; x=1777990152; 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=RG7aGILaGjgCtbps2OyrljVgvQCcZe/+3XNoaUCUlsg=; b=U+dzVJQX8NPAa1B3ZqEDJAeFb8DHKqCdpnaBdVS2h8d+5bS7lZCNybKWcmek3m2g1H y+5Y1AOG1dmP+fpf+GQOgN4Q+ryTfbTUqzsXdj3AH4lOgIKB74k9zm6w0+s12MELVWuw /ChpdA2xqg0g0nn6SfTN1QgtWIo0OKrBIizVWW6RVzUWV1/Vs7bn7ucZ9iW9DU1gbFy9 BWkYmLvnixZUftKRJdEnRlXNU7sJLvjReA7l3CRzNqIEekXOmowDfVxHb5ZXbvUJIxUx nYhMR8KTAlLvXmds+aXZjd4W52KoF/m3s80HOT8fVQXLxWy6iBH7bYYISuEwjXMyXeG1 AolA== X-Forwarded-Encrypted: i=1; AFNElJ9cS9ahpJzyHXfgK0+fFjGNHlUX8D7Pxey4pH+pC+o48yFBDz3wMAUeOb2jzJ4JUegou9M/qZSU7yilUVSB@lists.postgresql.org X-Gm-Message-State: AOJu0YyAf3k/P6UwcrJ07J5Vx+fC5hcIQFbAc+Aoimhs6Snk/SLeF2W8 cOrjjzIaNCG8jir5lMX7i6eSkfuPzWpGdum6dJPXV+dX1esj97Kz4pWk X-Gm-Gg: AeBDies9OtSzx7CG1bdMmgVYB1tnypP19F5nbNVnEL3RuTYYEpu6gumOB1uwOa2etDM syMVPK7t3zJGyuCGVDIdQTzf5gh/cPtXebpIdC5kezC6eFrKHI+lOE/uhXPEfn2jOb7cgRJv6+H Dtc0VtNzMWxi8+hif0zGS5nCVOoqnDjA+cMFr6rJDRIMbR2ep47SUz52XpbI6brptpJ9rW1+d0A mI5bVIQ1nL8byGy3pHoINVDfGkrBeSrEO83scfduNy4se+m6OfU6PaQqYdq6WIE8G3ssea0JfMQ 7PKkPoPq3opNTy4kYOFFDJhWQk2ovkNAza309J93zGf2WFo5I8rwsc18VcrDfIxELz+acyNWRK7 p4h6xqNGSX/mMZg0eCtSWBqbweT9PpsQD8L5/5G1+dM06yIrnTZ7BawLumhjRY8YBVV4MEdisz5 10WJZ9J9o+icdhazu33aUbNhELK9uqyVL5Icm5ksXPURleecsifvipZnvnN1oLWA+g4YEKIu3pV mkAEtPYI7J/PsLcbIY9+O1E+6Vi92/x X-Received: by 2002:a05:6808:2393:b0:471:f036:791f with SMTP id 5614622812f47-47c28fbd78fmr1648468b6e.30.1777385351473; Tue, 28 Apr 2026 07:09:11 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 5614622812f47-47c28f50286sm1518989b6e.1.2026.04.28.07.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2026 07:09:10 -0700 (PDT) Date: Tue, 28 Apr 2026 09:09:09 -0500 From: Nathan Bossart To: Tom Lane Cc: John Naylor , 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: <1453046.1770218933@sss.pgh.pa.us> <1472307.1770229663@sss.pgh.pa.us> <2446899.1777256313@sss.pgh.pa.us> <2871418.1777382981@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="BXS/e12Ux8A+BvBc" Content-Disposition: inline In-Reply-To: <2871418.1777382981@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --BXS/e12Ux8A+BvBc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. -- nathan --BXS/e12Ux8A+BvBc Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v3-0001-avoid-ranlib-warnings-on-macOS.patch