pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vincas Dargis <vindrg@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Issues cross-compiling libpq 14.x to MacOS armv8
Date: Tue, 30 Nov 2021 20:14:43 +0200
Message-ID: <0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com> (raw)

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//30acef53c04f36d5f941...
[2] https://github.com/conan-io/conan-center-index/pull/7676





view thread (12+ messages)  latest in thread

Message-ID: <0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com>
Permalink:  ../0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com/
Also on:    postgresql.org/message-id/0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: vindrg@gmail.com
  Subject: Re: Issues cross-compiling libpq 14.x to MacOS armv8
  In-Reply-To: <0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com>
  References: <0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox