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.94.2) (envelope-from ) id 1tstXq-006X4p-Fe for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Mar 2025 01:09:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tstXo-00AYqb-3j for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Mar 2025 01:09:00 +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.94.2) (envelope-from ) id 1tstXn-00AYqS-RF for pgsql-bugs@lists.postgresql.org; Fri, 14 Mar 2025 01:08:59 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tstXl-002hq4-26 for pgsql-bugs@lists.postgresql.org; Fri, 14 Mar 2025 01:08:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 52E18uAk2958438; Thu, 13 Mar 2025 21:08:56 -0400 From: Tom Lane To: Mathew Heard cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18839: ARMv7 builds fail due to missing __crc32cw and similar In-reply-to: References: <2953389.1741911582@sss.pgh.pa.us> Comments: In-reply-to Mathew Heard message dated "Fri, 14 Mar 2025 11:51:22 +1100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2958436.1741914536.1@sss.pgh.pa.us> Date: Thu, 13 Mar 2025 21:08:56 -0400 Message-ID: <2958437.1741914536@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mathew Heard writes: > If I am correct, postgresql is identifying the CPU of the build system as > ARMv8 in that test, and using this rather than the target architecture. The configure script isn't "identifying" anything. It's just seeing whether references to __crc32cb() etc will compile with different -march flags. It's not apparent why a successful test of that sort would not lead to a successful compilation with the same flags later on. We might do a *run time* probe of the actual CPU type, but that has nothing to do with compilation. You still haven't told us which -march setting configure is selecting, nor provided the config.log trace showing why it chose that one. You also haven't described the compilation environment in any detail --- eg, I still am not sure if this is a hard-float or soft-float environment. regards, tom lane