Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p27Fd-00036Z-V7 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Dec 2022 08:55:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p27Fc-0005F3-Ck for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Dec 2022 08:55:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p27Fc-0005Et-2L for pgsql-hackers@lists.postgresql.org; Mon, 05 Dec 2022 08:55:00 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p27FZ-0000tC-Fn for pgsql-hackers@lists.postgresql.org; Mon, 05 Dec 2022 08:54:59 +0000 Received: by mail-wr1-x42c.google.com with SMTP id o5so17524968wrm.1 for ; Mon, 05 Dec 2022 00:54:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=j3e1DXbLSbabynyOvUbasWqsixy5uWJmzvo+TxhGkPY=; b=fXS29oSyIvXKzTDq2e7Ea9o7rDsbOSjxKDAva3diBPirLoE54WiueJIsRrGoOELzfw 4t+yWH5vlZS6EDQZVWdtY0JR4GGF1eOlfQ2sU1wcHR9RjDdgqM58DmUqJx8eYV+P4ie4 oJxDbqMmjTr4MVQMf7T4Kpc3smmaLrHQSY9+2h2DKL3KsP59JkFgrKfWK+Bu3O4csvYe i/7rvEXfFN1bnBVi4eCylmWcDxS5jA/+UkIhukHlRTuyh5b/oP6uso3cWECvjpJwJzeY kcoX5/054W/Y9dIndDe94YSfxhHko4VOzoJtVuf2dOJJLPN0YXChz1KwED4AVUP9DZ0y IbNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j3e1DXbLSbabynyOvUbasWqsixy5uWJmzvo+TxhGkPY=; b=gXK3hFbkHmZHvHp2cfq3pk6XDbUDYOYB87xlTDQTXPeQY5Xmr8SvLQyvM3UsPppFnj bd9AOKU7YVIE03XloVcXjwclXMQVDX14FQlZow1tDj9IZeclbaIL0pu5ha+vLaUVflLB bwu8O9ShQKVSdNR2wxAg/5i2vgRVeZ8VlB/gy42X/yRMUjMghjtBPIQUfPXXs2E0yy09 iNI6ByCrTZSxNyEtF86RXLD84UTACio46/yeuzZOMeaPhE/e7S6WH/XeL0WtiKSQ93KL vBIiEOWO/kiVlWZL5Mxx7YdX9gInuZaP56ZIT7z3Jw0Hj3ygZRWRPRmFlPIObUeV5Ia1 QUHA== X-Gm-Message-State: ANoB5pk93Rv6Btw4iwGHn9cQ44bSOtPfj6WlX7ymuJ0KKn2gI1qtyk2u F6y9W/Tj+/dP22NkFyXQGInUjw== X-Google-Smtp-Source: AA0mqf4HwU5VM1LzLUz0gM0gYpIUGkzJqzOl5bOqsH+R8n+/pohZNrCVvUSK4aikB9IQUtooHY4Eyg== X-Received: by 2002:a5d:6d42:0:b0:242:4dd5:327b with SMTP id k2-20020a5d6d42000000b002424dd5327bmr5406497wri.363.1670230494871; Mon, 05 Dec 2022 00:54:54 -0800 (PST) Received: from [192.168.1.166] ([212.228.7.114]) by smtp.gmail.com with ESMTPSA id t12-20020adfeb8c000000b0023662245d3csm13541634wrn.95.2022.12.05.00.54.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Dec 2022 00:54:54 -0800 (PST) Message-ID: <6c6ce6ed-6fc7-2957-9523-f2d08255b391@linaro.org> Date: Mon, 5 Dec 2022 08:54:52 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] Add native windows on arm64 support Content-Language: en-US To: Michael Paquier Cc: Andres Freund , Ian Lawrence Barwick , Tom Lane , Thomas Munro , Julien Rouhaud , PostgreSQL Hackers References: <271611.1661998926@sss.pgh.pa.us> <20221105183136.hfxyl5dclxdcoyih@awork3.anarazel.de> <7ff7c416-fdfe-517f-a65c-9e5bd8ff8cec@linaro.org> <8d46c46d-66d3-758b-b686-de371e0ba8ca@linaro.org> From: Niyas Sait 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 05/12/2022 05:12, Michael Paquier wrote: > - Last comes OpenSSL, that supports amd64_arm64 as build target (see > NOTES-WINDOWS.md), and the library names are libssl.lib and > libcrypto.lib. Looking at > https://slproweb.com/products/Win32OpenSSL.html, there are > experimental builds for arm64 with OpenSSL 3.0. Niyas or somebody > else, could you look at the contents of lib/VC/ and see what we could > rely on for the debug builds after installing this MSI? We should > rely on something like lib/VC/sslcrypto64MD.lib or > lib/VC/sslcrypto32MD.lib, but for arm64. I tried that installer. And I can see following libraries installed in lib/VC location. libcryptoarm64MD.lib libcryptoarm64MDd.lib libcryptoarm64MT.lib libcryptoarm64MTd.lib libsslarm64MD.lib libsslarm64MDd.lib libsslarm64MT.lib libsslarm64MTd.lib > - USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK => undef, > + USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK => $self->{platform} eq "ARM64" ? : 1 : undef, > Did you actually test this patch? This won't work at all with perl, > per se the double colon after the question mark. Yes I did a full build. I am not sure why I didn't see any error with that. My perl skills are very limited and I started with something bit more naive like "$self->{platform} == "ARM64" ? : 1 : undef" But that didn't work and I changed to using eq and the compilation was fine. Thanks for fixing the patch. > For now, please find attached an updated patch with all the fixes I > could come up with. Thanks. I did a quick sanity build with your updated patch and looks fine. -- Niyas