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 1ms7eU-0008Cj-SB for pgsql-general@arkaria.postgresql.org; Tue, 30 Nov 2021 18:14:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ms7eT-00083J-Pa for pgsql-general@arkaria.postgresql.org; Tue, 30 Nov 2021 18:14:49 +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 1ms7eT-000839-Dl for pgsql-general@lists.postgresql.org; Tue, 30 Nov 2021 18:14:49 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ms7eQ-000558-Op for pgsql-general@lists.postgresql.org; Tue, 30 Nov 2021 18:14:49 +0000 Received: by mail-lf1-x136.google.com with SMTP id bi37so55978267lfb.5 for ; Tue, 30 Nov 2021 10:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject:content-transfer-encoding; bh=JFIwNtbOTYmXk2hVVHfEexscUj1NdnvQMokNPcbDCkU=; b=J85gRnBvhZW0ec04lbDe7n8rWcqG874j72+LILIYFgO7Ihshqd/fjgLiL1nsUo2E+f xFuBw8lYhEBp0lQvDw9Z7Vl89LOoRgBj9rImyTvr+8UOQFBD0JsdSkTQonRIGhYF8ApM /OnognwT4DuwYBu9LBel79C9tw99C8rL4+twUHfW+kB+xdttGS6Wv8YwvCd+lJ38dYmG li2jH3f2MYios3UeK2S667LGZUiTtZPe7g9dAHBdB9QlUzSiKrD9hsdlO/WzMzCQSgzw odqWqmeJXYmDoXxguzxd6Ur5Rc6BOT2JvNCax08ptLSOKf5RuIjM0BHxLUd1dp30GBdG HYZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject:content-transfer-encoding; bh=JFIwNtbOTYmXk2hVVHfEexscUj1NdnvQMokNPcbDCkU=; b=DJurQe2w6kFNmJpPXJ85lGELkqhFjfXauV3qR1vy0YoGnsHuc2QMJVv+6N2SF7vo1f ekybUZ+xbeQSj8hVGHLhnLYtTH2+ykgQESHrkkShBS7VsY1NIKB231VbYM92dhDt8Yb6 mSff8HP/9B4KQxFtzRs1rk/Mk03W3FhZoJ8RT4i88llJLV1VbrGsRxUCL8DQAY4JhQAG 8FYFt76BrxpGgNa37eZtnrRarbl2d2wxT6BOaZYT5SBrgNTcfc7jsQmxihRLbE8o+Vek 24fylc/o7ig246BlvCqzc7lrAa3ZxWqkVNhQ74wGwSKiZPRGf7TwA3bIrINeTGjYScNa SwbA== X-Gm-Message-State: AOAM530CscIg0d70NIrsOxCoJ7yFvPFKf80xlViFjiQYZ1sxOu/RqZ44 pk6PPrbZwTCqoCXAhX2XC044FCiN1xA= X-Google-Smtp-Source: ABdhPJzGpmwYl4UjNjQCin8Nx40scI36LFWwzQ7b0fafCWCGktkqmkOpwejrPAd86Z/4ufyUZqExNQ== X-Received: by 2002:a05:6512:3b13:: with SMTP id f19mr748233lfv.321.1638296083952; Tue, 30 Nov 2021 10:14:43 -0800 (PST) Received: from [192.168.1.10] (mail.dargis.net. [62.80.227.49]) by smtp.gmail.com with ESMTPSA id l5sm1584105ljh.66.2021.11.30.10.14.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Nov 2021 10:14:43 -0800 (PST) Message-ID: <0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com> Date: Tue, 30 Nov 2021 20:14:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: en-US To: pgsql-general@lists.postgresql.org From: Vincas Dargis Subject: Issues cross-compiling libpq 14.x to MacOS armv8 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 Hi list, I wanted to update [0] Conan package for building libpq 14.1. Usually it's enough to add new tarball and declare it's hash, but it seems that since 14.0 cross-compiling to armv8 MacOS now fails, and I *guess* it's due to removed `--disable-strong-random` option. Here's some snippets from build log: [1] ``` ... Cross-build from 'Macos:x86_64' to 'Macos:armv8' ... checking which random number source to use... /dev/urandom checking for /dev/urandom... libpq/14.1: libpq/14.1: WARN: Build folder is dirty, removing it: /Users/jenkins/w/BuildSingleReference@2/.conan/data/libpq/14.1/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb configure: WARNING: unrecognized options: --disable-strong-random configure: WARNING: using cross tools not prefixed with host triplet configure: error: cannot check for file existence when cross compiling libpq/14.1: ERROR: Package '30acef53c04f36d5f9412c84a1b3a7434a1f10fb' build failed ``` Could this mean that building on armv8 Macos cannot work with "strong random", or at least in the way PostgreSQL configure script expect that to be detected to work? Thanks! P.S. there was earlier attempt by another contributor to update Conan package to 14.0, which also failed in the same manner [2]. [0] https://github.com/conan-io/conan-center-index/pull/8109 [1] https://c3i.jfrog.io/c3i/misc/logs/pr/8109/2-configs/macos-m1-clang/libpq/14.1//30acef53c04f36d5f9412c84a1b3a7434a1f10fb-build.txt [2] https://github.com/conan-io/conan-center-index/pull/7676