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 1rTLRn-002ApI-J8 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jan 2024 12:36:40 +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 1rTLRk-00EpT8-S8 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jan 2024 12:36:36 +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 1rTLRk-00EpT0-94 for pgsql-hackers@lists.postgresql.org; Fri, 26 Jan 2024 12:36:36 +0000 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rTLRc-003TFi-PC for pgsql-hackers@lists.postgresql.org; Fri, 26 Jan 2024 12:36:34 +0000 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-783cd284528so27726485a.2 for ; Fri, 26 Jan 2024 04:36:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1706272587; x=1706877387; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=nTa6Zx4zZsmJl8TL0xAooa1rI0+r+sAQKlbQqNftQB4=; b=S/sR4Qhtvbt+YDmMYlDzy/bJfD7cJC6mcUTqfO6MsnUa1WVQy2Zfgr3zKWXZ9trjC/ PxOnoTY4stZz5xdCE4ERYJnETHSSllb++Hyg3Qmpua4IUFku78nGQqwtwrVRn9TqFyaV eNEHCyW+XYheAc0+KO+SMU+IRpXpGF7CFwanP9eLv7PM8yD1ACOoVED2U6OKt00gZYta 4o3pvpSD5wlKz/bIGcwFGcSwjRzGQEP30cTLF8fAPuEqWxcVZuEuCihorX8wz7NtpxWU zJQP4OpRhB6AbbwKx+8FKCnXNAsM72h/SzdlSIT4ZGuxvy/+ec27Wx4WB/wLyNMrVj43 M0IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706272587; x=1706877387; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nTa6Zx4zZsmJl8TL0xAooa1rI0+r+sAQKlbQqNftQB4=; b=DpYiNgLKFNq7tGt1jwEJ/jcg1Wr0nq5TzwkTVLTQjjUEUeaVMFPKYDj4SVvYfxqcAK YY6BTyEtcv0nww6woWXd/aBgrzfxRgR/opB+AJu4cfj3W5kj6rpQGGpMNNvx7t/S2Enu dt0P8RFr7MNVvJqn9IezOnak7MdhHyKtWJQSFdFAYetddkrShw32zpt+C44FIMSxvDth Hq6+UpmQOuftBpVSnxakyz3QeLAcg1mfwv8q/sac4njpsTXIVBRUf+kMd4vM4/CxgAMM CelQZTcMxBVyi8Q9xQpBcIRu8R8azmlM+29+lecXVAKBuFWj0bMZqjP8H283N4WIvzGs 1kIA== X-Gm-Message-State: AOJu0Yxbu2jdo1T6pbHIpKByOROFSk9wRopA6aq7DcwPntOs56gVeZaY Fw51RhcPx2LAe2zlHftQ3q+5M2CdYbEjqTCDzNIhcgdDK7UGxZ76gGaltcDqVWw= X-Google-Smtp-Source: AGHT+IF98HidnPGUVFvzI2xsE2YE3vQpsgOpo4zu6VGIy3DHfDAVmeVes7HLvoLa1WcrZGU6Y3Ba8g== X-Received: by 2002:ae9:f104:0:b0:783:7aab:d0d1 with SMTP id k4-20020ae9f104000000b007837aabd0d1mr1464633qkg.136.1706272586951; Fri, 26 Jan 2024 04:36:26 -0800 (PST) Received: from ?IPV6:2605:a601:91f3:1900::2bb? ([2605:a601:91f3:1900::2bb]) by smtp.googlemail.com with ESMTPSA id l4-20020a05620a210400b007839e9ef1d7sm528518qkl.122.2024.01.26.04.36.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 04:36:26 -0800 (PST) Message-ID: <56da7612-9feb-c52f-1441-8fc4e51ca434@dunslane.net> Date: Fri, 26 Jan 2024 07:36:25 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: Michael Paquier , Dave Cramer Cc: Anthony Roberts , Peter Eisentraut , Daniel Gustafsson , Tom Lane , Mike Holmes , Andres Freund , Thomas Munro , PostgreSQL Hackers , Lina Iyer References: <70d20b11-8ed8-a34e-32d1-8f3015dd771b@dunslane.net> <5ba3cae0-0375-c3e6-4bce-89165e09bdd3@dunslane.net> From: Andrew Dunstan Subject: Re: [PATCH] Add native windows on arm64 support In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-01-25 Th 20:32, Michael Paquier wrote: > On Thu, Jan 25, 2024 at 04:52:30PM -0500, Dave Cramer wrote: >> On Thu, 25 Jan 2024 at 16:32, Andrew Dunstan wrote: >>> On 2024-01-25 Th 16:17, Dave Cramer wrote: >>> Yeah, I think the default Developer Command Prompt for VS2022 is set up >>> for x86 builds. AIUI you should start by executing "vcvarsall x64_arm64". >> Yup, now I'm in the same state you are > Wait a minute here. Based on [1], x64_arm64 means you can use a x64 > host and you'll be able to produce ARM64 builds, still these will not > be able to run on the host where they were built. How much of the > patch posted upthread is required to produce such builds? Basically > everything from it, I guess, so as build dependencies can be > satisfied? > > [1]: https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170 If you look at the table here x86 and x64 are the only supported host architectures. But that's OK, the x64 binaries will run on arm64 (W11 ARM64 has x64 emulation builtin). If that didn't work Dave and I would not have got as far as we have. But you want the x64_arm64 argument to vcvarsall so you will get ARM64 output. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com