stunnel / static-curl

static builds cURL with HTTP3
MIT License
198 stars 28 forks source link

MacOS installation failed #49

Closed avremy closed 7 months ago

avremy commented 8 months ago

Hey Installation on mac m1 seems to be failing.


    CURL_VERSION=${CURL_VERSION} \
    QUICTLS_VERSION=${QUICTLS_VERSION} \
    NGTCP2_VERSION=${NGTCP2_VERSION} \
    NGHTTP3_VERSION=${NGHTTP3_VERSION} \
    NGHTTP2_VERSION=${NGHTTP2_VERSION} \
    LIBIDN2_VERSION=${LIBIDN2_VERSION} \
    LIBUNISTRING_VERSION=${LIBUNISTRING_VERSION} \
    ZLIB_VERSION=${ZLIB_VERSION} \
    BROTLI_VERSION=${BROTLI_VERSION} \
    ZSTD_VERSION=${ZSTD_VERSION} \
    LIBSSH2_VERSION=${LIBSSH2_VERSION} \
    ARES_VERSION=${ARES_VERSION} \
    bash curl-static-mac.sh
Source directory: /Users/avremy/build
Prefix directory: /Users/avremy/build/curl
Release directory: /Users/avremy
Architecture:
Compiler: /usr/local/opt/llvm/bin/clang /usr/local/opt/llvm/bin/clang++
cURL version:
QuicTLS version:
ngtcp2 version:
nghttp3 version:
nghttp2 version:
zlib version:
libunistring version:
libidn2 version:
brotli version:
zstd version:
libssh2 version:
c-ares version:
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
Warning: automake 1.16.5 is already installed and up-to-date.
To reinstall 1.16.5, run:
  brew reinstall automake
Warning: autoconf 2.71 is already installed and up-to-date.
To reinstall 2.71, run:
  brew reinstall autoconf
Warning: libtool 2.4.7 is already installed and up-to-date.
To reinstall 2.4.7, run:
  brew reinstall libtool
Warning: binutils 2.41_1 is already installed and up-to-date.
To reinstall 2.41_1, run:
  brew reinstall binutils
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
  brew reinstall pkg-config
Warning: coreutils 9.4 is already installed and up-to-date.
To reinstall 9.4, run:
  brew reinstall coreutils
Warning: cmake 3.28.1 is already installed and up-to-date.
To reinstall 3.28.1, run:
  brew reinstall cmake
Warning: make 4.4.1 is already installed and up-to-date.
To reinstall 4.4.1, run:
  brew reinstall make
Warning: llvm 17.0.6 is already installed and up-to-date.
To reinstall 17.0.6, run:
  brew reinstall llvm
Warning: curl 8.5.0 is already installed and up-to-date.
To reinstall 8.5.0, run:
  brew reinstall curl
Warning: wget 1.21.4 is already installed and up-to-date.
To reinstall 1.21.4, run:
  brew reinstall wget
Warning: git 2.43.0 is already installed and up-to-date.
To reinstall 2.43.0, run:
  brew reinstall git
Warning: jq 1.7.1 is already installed and up-to-date.
To reinstall 1.7.1, run:
  brew reinstall jq
Warning: xz 5.4.5 is already installed and up-to-date.
To reinstall 5.4.5, run:
  brew reinstall xz
Warning: ripgrep 14.0.3 is already installed and up-to-date.
To reinstall 14.0.3, run:
  brew reinstall ripgrep
Warning: gnu-sed 4.9 is already installed and up-to-date.
To reinstall 4.9, run:
  brew reinstall gnu-sed
Warning: groff 1.23.0 is already installed and up-to-date.
To reinstall 1.23.0, run:
  brew reinstall groff
Warning: gnupg 2.4.3 is already installed and up-to-date.
To reinstall 2.4.3, run:
  brew reinstall gnupg
Warning: pcre2 10.42 is already installed and up-to-date.
To reinstall 10.42, run:
  brew reinstall pcre2
Warning: cunit 2.1-3 is already installed and up-to-date.
To reinstall 2.1-3, run:
  brew reinstall cunit
Warning: ca-certificates 2023-12-12 is already installed and up-to-date.
To reinstall 2023-12-12, run:
  brew reinstall ca-certificates
+ '[' -z 'x86_64 arm64' ']'
+ echo 'Compiling for all ARCHs: x86_64 arm64'
Compiling for all ARCHs: x86_64 arm64
+ for arch_temp in ${ARCHS}
+ export ARCH=x86_64
+ ARCH=x86_64
+ export PREFIX=/Users/avremy/build/curl-x86_64
+ PREFIX=/Users/avremy/build/curl-x86_64
+ export PKG_CONFIG_PATH=/Users/avremy/build/curl-x86_64/lib/pkgconfig
+ PKG_CONFIG_PATH=/Users/avremy/build/curl-x86_64/lib/pkgconfig
+ echo 'Compiling for x86_64...'
Compiling for x86_64...
+ echo 'Prefix directory: /Users/avremy/build/curl-x86_64'
Prefix directory: /Users/avremy/build/curl-x86_64
+ compile
+ arch_variants
+ echo 'Setting up the ARCH and OpenSSL arch ...'
Setting up the ARCH and OpenSSL arch ...
+ '[' -z x86_64 ']'
+ case "${ARCH}" in
+ export arch=amd64
+ arch=amd64
+ export 'ARCHFLAGS=-arch x86_64'
+ ARCHFLAGS='-arch x86_64'
+ export OPENSSL_ARCH=darwin64-x86_64
+ OPENSSL_ARCH=darwin64-x86_64
+ export TARGET=x86_64-apple-darwin
+ TARGET=x86_64-apple-darwin
+ compile_quictls
+ echo 'Compiling quictls ...'
Compiling quictls ...
+ local url
+ change_dir
+ mkdir -p /Users/avremy/build
+ cd /Users/avremy/build
+ url_from_github quictls/openssl ''
+ local browser_download_urls browser_download_url url repo version tag_name release_json release_file
+ repo=quictls/openssl
+ version=
+ release_file=github-openssl.json
+ '[' '!' -f github-openssl.json ']'
+ '[' -z '' ']'
++ _get_latest_tag github-openssl.json
++ local release_file release_json
++ release_file=github-openssl.json
+++ jq -c -r '[.[] | select ((.prerelease != true) and (.draft != true))][0]' github-openssl.json
++ release_json='{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = null ']'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = '' ']'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = null ']'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = '' ']'
++ echo '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
+ release_json='{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ printf %s '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ tr -d '\n'
++ tr -d '\000-\037'
++ jq -r '.assets[]'
++ rg browser_download_url
++ true
+ browser_download_urls=
+ '[' -n '' ']'
+ '[' -z '' ']'
++ printf %s '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ tr -d '\n'
++ tr -d '\000-\037'
++ jq -r '.tag_name // .name'
++ head -1
+ tag_name=openssl-3.1.4-quic1
+ '[' openssl-3.1.4-quic1 = null ']'
+ '[' openssl-3.1.4-quic1 = '' ']'
+ url=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ export URL=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ URL=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ url=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ download_and_extract https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ echo 'Downloading https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz ...'
Downloading https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz ...
+ local url
+ url=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ FILENAME=openssl-3.1.4-quic1.tar.gz
+ '[' '!' -f openssl-3.1.4-quic1.tar.gz ']'
+ wget -c --no-verbose --content-disposition https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
2023-12-20 15:43:38 URL:https://codeload.github.com/quictls/openssl/tar.gz/refs/tags/openssl-3.1.4-quic1 [15743124] -> "openssl-openssl-3.1.4-quic1.tar.gz" [1]
++ curl --retry 5 --retry-max-time 120 -sIL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
++ gsed -n -e 's/^Content-Disposition:.*filename=//ip'
++ tail -1
++ gsed 's/\r//g; s/\n//g; s/\"//g'
++ rg -oP '[\x20-\x7E]+'
+ FILENAME=openssl-openssl-3.1.4-quic1.tar.gz
+ '[' openssl-openssl-3.1.4-quic1.tar.gz = '' ']'
+ echo 'Downloaded openssl-openssl-3.1.4-quic1.tar.gz ...'
Downloaded openssl-openssl-3.1.4-quic1.tar.gz ...
+ echo openssl-openssl-3.1.4-quic1.tar.gz
+ rg -qP '.*\.(tar\.xz|tar\.gz|tar\.bz2|tgz)$'
++ echo openssl-openssl-3.1.4-quic1.tar.gz
++ gsed -E 's/\.tar\.(xz|bz2|gz)//g'
++ gsed 's/\.tgz//g'
+ SOURCE_DIR=openssl-openssl-3.1.4-quic1
+ '[' -d openssl-openssl-3.1.4-quic1 ']'
+ rm -rf openssl-openssl-3.1.4-quic1
+ tar -xf openssl-openssl-3.1.4-quic1.tar.gz
+ cd openssl-openssl-3.1.4-quic1
+ LDFLAGS='-framework CoreFoundation -framework SystemConfiguration'
+ ./Configure darwin64-x86_64 -fPIC --prefix=/Users/avremy/build/curl-x86_64 threads no-shared enable-ktls enable-ec_nistp_64_gcc_128 enable-tls1_3 enable-ssl3 enable-ssl3-method enable-des enable-rc4 enable-weak-ssl-ciphers
Configuring OpenSSL version 3.1.4+quic for target darwin64-x86_64
Using os-specific seed configuration
Created configdata.pm
Running configdata.pm
Created Makefile.in
Created Makefile
Created include/openssl/configuration.h

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL.md file first)      ***
***                                                                ***
**********************************************************************
+ gmake -j 10
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1.h.in > include/openssl/asn1.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1t.h.in > include/openssl/asn1t.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/bio.h.in > include/openssl/bio.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cmp.h.in > include/openssl/cmp.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cms.h.in > include/openssl/cms.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/conf.h.in > include/openssl/conf.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crmf.h.in > include/openssl/crmf.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crypto.h.in > include/openssl/crypto.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ct.h.in > include/openssl/ct.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/err.h.in > include/openssl/err.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ess.h.in > include/openssl/ess.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/fipskey.h.in > include/openssl/fipskey.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/lhash.h.in > include/openssl/lhash.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ocsp.h.in > include/openssl/ocsp.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/opensslv.h.in > include/openssl/opensslv.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs12.h.in > include/openssl/pkcs12.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs7.h.in > include/openssl/pkcs7.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/safestack.h.in > include/openssl/safestack.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/srp.h.in > include/openssl/srp.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ssl.h.in > include/openssl/ssl.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ui.h.in > include/openssl/ui.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509.h.in > include/openssl/x509.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509_vfy.h.in > include/openssl/x509_vfy.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509v3.h.in > include/openssl/x509v3.h
perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" test/provider_internal_test.cnf.in > test/provider_internal_test.cnf
gmake depend && gmake _build_sw
gmake[1]: Entering directory '/Users/avremy/build/openssl-openssl-3.1.4-quic1'
gmake[1]: Leaving directory '/Users/avremy/build/openssl-openssl-3.1.4-quic1'
gmake[1]: Entering directory '/Users/avremy/build/openssl-openssl-3.1.4-quic1'
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-app_params.o apps/lib/app_params.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-app_provider.o apps/lib/app_provider.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-app_rand.o apps/lib/app_rand.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-app_x509.o apps/lib/app_x509.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-apps.o apps/lib/apps.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-apps_ui.o apps/lib/apps_ui.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-columns.o apps/lib/columns.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-engine.o apps/lib/engine.c
/usr/local/opt/llvm/bin/clang  -I. -Iinclude -Iapps/include  -fPIC -arch x86_64 -O3 -Wall -fPIC -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/Users/avremy/build/curl-x86_64/ssl\"" -DENGINESDIR="\"/Users/avremy/build/curl-x86_64/lib/engines-81.3\"" -DMODULESDIR="\"/Users/avremy/build/curl-x86_64/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG   -c -o apps/lib/libapps-lib-engine_loader.o apps/lib/engine_loader.c
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
gmake[1]: *** [Makefile:2530: apps/lib/libapps-lib-app_libctx.o] Error 127
gmake[1]: *** Waiting for unfinished jobs....
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
gmake[1]: *** [Makefile:2538: apps/lib/libapps-lib-app_x509.o] Error 127
gmake[1]: *** [Makefile:2532: apps/lib/libapps-lib-app_params.o] Error 127
gmake[1]: *** [Makefile:2536: apps/lib/libapps-lib-app_rand.o] Error 127
gmake[1]: *** [Makefile:2534: apps/lib/libapps-lib-app_provider.o] Error 127
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
gmake[1]: *** [Makefile:2542: apps/lib/libapps-lib-apps_ui.o] Error 127
gmake[1]: *** [Makefile:2540: apps/lib/libapps-lib-apps.o] Error 127
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
gmake[1]: *** [Makefile:2544: apps/lib/libapps-lib-columns.o] Error 127
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
gmake[1]: *** [Makefile:2546: apps/lib/libapps-lib-engine.o] Error 127
/bin/sh: /usr/local/opt/llvm/bin/clang: No such file or directory
gmake[1]: *** [Makefile:2548: apps/lib/libapps-lib-engine_loader.o] Error 127
gmake[1]: Leaving directory '/Users/avremy/build/openssl-openssl-3.1.4-quic1'
gmake: *** [Makefile:1533: build_sw] Error 2```
travislee89 commented 8 months ago

Please run these commands in terminal and paste the results:

brew search llvm;
ls -ld /usr/local/opt/llvm*;
ls -lh /usr/local/Cellar/llvm*;
avremy commented 8 months ago

brew search llvm;

cargo-llvm-lines              llvm@11                       llvm@13                       llvm@15                       llvm@8                        spirv-llvm-translator         llm
llvm ✔                        llvm@12                       llvm@14                       llvm@16                       llvm@9                        wllvm

ls -ld /usr/local/opt/llvm*;

zsh: no matches found: /usr/local/opt/llvm*

ls -lh /usr/local/Cellar/llvm*;

zsh: no matches found: /usr/local/Cellar/llvm*

It is installed but not found in the default directories. Homebrew saves it in a different location , could that be the issue?

ls -ld /opt/homebrew/opt/llvm*

lrwxr-xr-x  1 admin  admin  21 Dec 20 15:23 /opt/homebrew/opt/llvm -> ../Cellar/llvm/17.0.6
lrwxr-xr-x  1 admin  admin  21 Dec 20 15:23 /opt/homebrew/opt/llvm@17 -> ../Cellar/llvm/17.0.6

ls -lh /opt/homebrew/Cellar/llv*

drwxr-xr-x  12 admin admin   384B Dec 20 15:23 17.0.6

It is in the PATH...

Thanks

travislee89 commented 8 months ago

I added a function that looks for clang in several paths and the default paths, it should work fine now.

avremy commented 8 months ago

Hey sorry it took me a while to test ,

I tried it again today , it seems to still be having issues with clang

 ARCHS="x86_64 arm64" \
    CURL_VERSION=${CURL_VERSION} \
    QUICTLS_VERSION=${QUICTLS_VERSION} \
    NGTCP2_VERSION=${NGTCP2_VERSION} \
    NGHTTP3_VERSION=${NGHTTP3_VERSION} \
    NGHTTP2_VERSION=${NGHTTP2_VERSION} \
    LIBIDN2_VERSION=${LIBIDN2_VERSION} \
    LIBUNISTRING_VERSION=${LIBUNISTRING_VERSION} \
    ZLIB_VERSION=${ZLIB_VERSION} \
    BROTLI_VERSION=${BROTLI_VERSION} \
    ZSTD_VERSION=${ZSTD_VERSION} \
    LIBSSH2_VERSION=${LIBSSH2_VERSION} \
    ARES_VERSION=${ARES_VERSION} \
    bash curl-static-mac.sh
Source directory: /Users/avremy/build
Prefix directory: /Users/avremy/build/curl
Release directory: /Users/avremy
Architecture:
cURL version:
QuicTLS version:
ngtcp2 version:
nghttp3 version:
nghttp2 version:
zlib version:
libunistring version:
libidn2 version:
brotli version:
zstd version:
libssh2 version:
c-ares version:
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
Warning: automake 1.16.5 is already installed and up-to-date.
To reinstall 1.16.5, run:
  brew reinstall automake
Warning: autoconf 2.72 is already installed and up-to-date.
To reinstall 2.72, run:
  brew reinstall autoconf
Warning: libtool 2.4.7 is already installed and up-to-date.
To reinstall 2.4.7, run:
  brew reinstall libtool
Warning: binutils 2.41_1 is already installed and up-to-date.
To reinstall 2.41_1, run:
  brew reinstall binutils
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
  brew reinstall pkg-config
Warning: coreutils 9.4 is already installed and up-to-date.
To reinstall 9.4, run:
  brew reinstall coreutils
Warning: cmake 3.28.1 is already installed and up-to-date.
To reinstall 3.28.1, run:
  brew reinstall cmake
Warning: make 4.4.1 is already installed and up-to-date.
To reinstall 4.4.1, run:
  brew reinstall make
Warning: llvm 17.0.6 is already installed and up-to-date.
To reinstall 17.0.6, run:
  brew reinstall llvm
Warning: curl 8.5.0 is already installed and up-to-date.
To reinstall 8.5.0, run:
  brew reinstall curl
Warning: wget 1.21.4 is already installed and up-to-date.
To reinstall 1.21.4, run:
  brew reinstall wget
Warning: git 2.43.0 is already installed and up-to-date.
To reinstall 2.43.0, run:
  brew reinstall git
Warning: jq 1.7.1 is already installed and up-to-date.
To reinstall 1.7.1, run:
  brew reinstall jq
Warning: xz 5.4.5 is already installed and up-to-date.
To reinstall 5.4.5, run:
  brew reinstall xz
Warning: ripgrep 14.1.0 is already installed and up-to-date.
To reinstall 14.1.0, run:
  brew reinstall ripgrep
Warning: gnu-sed 4.9 is already installed and up-to-date.
To reinstall 4.9, run:
  brew reinstall gnu-sed
Warning: groff 1.23.0 is already installed and up-to-date.
To reinstall 1.23.0, run:
  brew reinstall groff
Warning: gnupg 2.4.3 is already installed and up-to-date.
To reinstall 2.4.3, run:
  brew reinstall gnupg
Warning: pcre2 10.42 is already installed and up-to-date.
To reinstall 10.42, run:
  brew reinstall pcre2
Warning: cunit 2.1-3 is already installed and up-to-date.
To reinstall 2.1-3, run:
  brew reinstall cunit
Warning: ca-certificates 2023-12-12 is already installed and up-to-date.
To reinstall 2023-12-12, run:
  brew reinstall ca-certificates
+ '[' -z 'x86_64 arm64' ']'
+ echo 'Compiling for all ARCHs: x86_64 arm64'
Compiling for all ARCHs: x86_64 arm64
+ for arch_temp in ${ARCHS}
+ export ARCH=x86_64
+ ARCH=x86_64
+ export PREFIX=/Users/avremy/build/curl-x86_64
+ PREFIX=/Users/avremy/build/curl-x86_64
+ export PKG_CONFIG_PATH=/Users/avremy/build/curl-x86_64/lib/pkgconfig
+ PKG_CONFIG_PATH=/Users/avremy/build/curl-x86_64/lib/pkgconfig
+ echo 'Compiling for x86_64...'
Compiling for x86_64...
+ echo 'Prefix directory: /Users/avremy/build/curl-x86_64'
Prefix directory: /Users/avremy/build/curl-x86_64
+ compile
+ arch_variants
+ echo 'Setting up the ARCH and OpenSSL arch ...'
Setting up the ARCH and OpenSSL arch ...
+ _clang_path
++ which /usr/local/opt/llvm/bin/clang
++ which /opt/homebrew/opt/llvm/bin/clang which /Library/Developer/CommandLineTools/usr/bin/clang
+ clang_path='/opt/homebrew/opt/llvm/bin/clang
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang'
++ which /usr/local/opt/llvm/bin/clang++
++ which /opt/homebrew/opt/llvm/bin/clang++ which /Library/Developer/CommandLineTools/usr/bin/clang++
+ clang_pp_path='/opt/homebrew/opt/llvm/bin/clang++
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang++'
+ '[' -z '/opt/homebrew/opt/llvm/bin/clang
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang' ']'
+ '[' -z '/opt/homebrew/opt/llvm/bin/clang++
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang++' ']'
+ '[' -z x86_64 ']'
+ case "${ARCH}" in
+ export arch=amd64
+ arch=amd64
+ export 'ARCHFLAGS=-arch x86_64'
+ ARCHFLAGS='-arch x86_64'
+ export OPENSSL_ARCH=darwin64-x86_64
+ OPENSSL_ARCH=darwin64-x86_64
+ export TARGET=x86_64-apple-darwin
+ TARGET=x86_64-apple-darwin
+ export 'CC=/opt/homebrew/opt/llvm/bin/clang
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang -target x86_64-apple-macos11'
+ CC='/opt/homebrew/opt/llvm/bin/clang
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang -target x86_64-apple-macos11'
+ export 'CXX=/opt/homebrew/opt/llvm/bin/clang++
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang++ -target x86_64-apple-macos11'
+ CXX='/opt/homebrew/opt/llvm/bin/clang++
/usr/bin/which
/Library/Developer/CommandLineTools/usr/bin/clang++ -target x86_64-apple-macos11'
+ compile_quictls
+ echo 'Compiling quictls ...'
Compiling quictls ...
+ local url
+ change_dir
+ mkdir -p /Users/avremy/build
+ cd /Users/avremy/build
+ url_from_github quictls/openssl ''
+ local browser_download_urls browser_download_url url repo version tag_name release_json release_file
+ repo=quictls/openssl
+ version=
+ release_file=github-openssl.json
+ '[' '!' -f github-openssl.json ']'
+ _get_github quictls/openssl
+ local repo release_file auth_header status_code size_of
+ repo=quictls/openssl
+ release_file=github-openssl.json
+ echo 'Downloading quictls/openssl releases from GitHub ...'
Downloading quictls/openssl releases from GitHub ...
+ echo 'URL: https://api.github.com/repos/quictls/openssl/releases'
URL: https://api.github.com/repos/quictls/openssl/releases
+ auth_header=
+ set +o xtrace
++ gstat -c %s github-openssl.json
+ size_of=25432
+ '[' 25432 -lt 200 ']'
+ '[' 200 -ne 200 ']'
+ auth_header=
+ '[' 200 -ne 200 ']'
+ '[' -z '' ']'
++ _get_latest_tag github-openssl.json
++ local release_file release_json
++ release_file=github-openssl.json
+++ jq -c -r '[.[] | select ((.prerelease != true) and (.draft != true))][0]' github-openssl.json
++ release_json='{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = null ']'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = '' ']'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = null ']'
++ '[' '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}' = '' ']'
++ echo '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
+ release_json='{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ printf %s '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ tr -d '\n'
++ tr -d '\000-\037'
++ jq -r '.assets[]'
++ rg browser_download_url
++ true
+ browser_download_urls=
+ '[' -n '' ']'
+ '[' -z '' ']'
++ printf %s '{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359","assets_url":"https://api.github.com/repos/quictls/openssl/releases/126786359/assets","upload_url":"https://uploads.github.com/repos/quictls/openssl/releases/126786359/assets{?name,label}","html_url":"https://github.com/quictls/openssl/releases/tag/openssl-3.1.4-quic1","id":126786359,"author":{"login":"tmshort","id":10981912,"node_id":"MDQ6VXNlcjEwOTgxOTEy","avatar_url":"https://avatars.githubusercontent.com/u/10981912?v=4","gravatar_id":"","url":"https://api.github.com/users/tmshort","html_url":"https://github.com/tmshort","followers_url":"https://api.github.com/users/tmshort/followers","following_url":"https://api.github.com/users/tmshort/following{/other_user}","gists_url":"https://api.github.com/users/tmshort/gists{/gist_id}","starred_url":"https://api.github.com/users/tmshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmshort/subscriptions","organizations_url":"https://api.github.com/users/tmshort/orgs","repos_url":"https://api.github.com/users/tmshort/repos","events_url":"https://api.github.com/users/tmshort/events{/privacy}","received_events_url":"https://api.github.com/users/tmshort/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOFIWqDM4Hjps3","tag_name":"openssl-3.1.4-quic1","target_commitish":"openssl-3.1.4+quic","name":"OpenSSL 3.1.4 quic Release 1","draft":false,"prerelease":false,"created_at":"2023-10-26T14:13:18Z","published_at":"2023-10-26T14:21:12Z","assets":[],"tarball_url":"https://api.github.com/repos/quictls/openssl/tarball/openssl-3.1.4-quic1","zipball_url":"https://api.github.com/repos/quictls/openssl/zipball/openssl-3.1.4-quic1","body":"OpenSSL 3.1.4 quic Release 1","reactions":{"url":"https://api.github.com/repos/quictls/openssl/releases/126786359/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0}}'
++ tr -d '\n'
++ tr -d '\000-\037'
++ jq -r '.tag_name // .name'
++ head -1
+ tag_name=openssl-3.1.4-quic1
+ '[' openssl-3.1.4-quic1 = null ']'
+ '[' openssl-3.1.4-quic1 = '' ']'
+ url=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ export URL=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ URL=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ url=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ download_and_extract https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ echo 'Downloading https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz ...'
Downloading https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz ...
+ local url
+ url=https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
+ FILENAME=openssl-3.1.4-quic1.tar.gz
+ '[' '!' -f openssl-3.1.4-quic1.tar.gz ']'
+ wget -c --no-verbose --content-disposition https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
2024-01-07 00:18:58 URL:https://codeload.github.com/quictls/openssl/tar.gz/refs/tags/openssl-3.1.4-quic1 [15743124/15743124] -> "openssl-openssl-3.1.4-quic1.tar.gz" [1]
++ curl --retry 5 --retry-max-time 120 -sIL https://github.com/quictls/openssl/archive/refs/tags/openssl-3.1.4-quic1.tar.gz
++ gsed -n -e 's/^Content-Disposition:.*filename=//ip'
++ tail -1
++ gsed 's/\r//g; s/\n//g; s/\"//g'
++ rg -oP '[\x20-\x7E]+'
+ FILENAME=openssl-openssl-3.1.4-quic1.tar.gz
+ '[' openssl-openssl-3.1.4-quic1.tar.gz = '' ']'
+ echo 'Downloaded openssl-openssl-3.1.4-quic1.tar.gz ...'
Downloaded openssl-openssl-3.1.4-quic1.tar.gz ...
+ echo openssl-openssl-3.1.4-quic1.tar.gz
+ rg -qP '.*\.(tar\.xz|tar\.gz|tar\.bz2|tgz)$'
++ echo openssl-openssl-3.1.4-quic1.tar.gz
++ gsed -E 's/\.tar\.(xz|bz2|gz)//g'
++ gsed 's/\.tgz//g'
+ SOURCE_DIR=openssl-openssl-3.1.4-quic1
+ '[' -d openssl-openssl-3.1.4-quic1 ']'
+ tar -xf openssl-openssl-3.1.4-quic1.tar.gz
+ cd openssl-openssl-3.1.4-quic1
+ LDFLAGS='-framework CoreFoundation -framework SystemConfiguration'
+ ./Configure darwin64-x86_64 -fPIC --prefix=/Users/avremy/build/curl-x86_64 threads no-shared enable-ktls enable-ec_nistp_64_gcc_128 enable-tls1_3 enable-ssl3 enable-ssl3-method enable-des enable-rc4 enable-weak-ssl-ciphers
Configuring OpenSSL version 3.1.4+quic for target darwin64-x86_64
Using os-specific seed configuration
clang: error: no input files
usage: which [-as] program ...
clang++: error: no input files
usage: which [-as] program ...
Created configdata.pm
Running configdata.pm
Created Makefile.in
Created Makefile
Created include/openssl/configuration.h

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL.md file first)      ***
***                                                                ***
**********************************************************************
+ gmake -j 10
Makefile:2491: *** missing separator.  Stop.
travislee89 commented 8 months ago

I don't have an ARM Mac, I am not sure if the clang-arm in Mac can cross-build an x64 binary.

Could you set the environment variable ARCHS="x86_64 arm64" as ARCHS="arm64" to see if it compiles successfully?

dtretyakov commented 7 months ago

@avremy the issue with the mentioned issue was fixed:

+ gmake -j 10
Makefile:2491: *** missing separator.  Stop.

But cross-compilation of ARCHS=x86_64 on macOS arm64 host fails with:

>  ARCHS=x86_64 CURL_VERSION=8.5.0 TLS_LIB=quictls QUICTLS_VERSION=3.1.4 bash curl-static-mac.sh
...
gmake[2]: Entering directory '/Users/user/build/curl-8.5.0/src'
  CC       slist_wc.o
...
  CCLD     curl
ld: warning: search path '/Users/user/build/curl-x86_64/lib64' not found
ld: warning: ignoring file '/Users/user/build/curl-x86_64/lib/libbrotlidec.a[5](state.c.o)': found architecture 'arm64', required architecture 'x86_64'
...
ld: Undefined symbols:
  _BrotliDecoderCreateInstance, referenced from:
      _brotli_do_init in libcurl.a[18](libcurl_la-content_encoding.o)
  _BrotliDecoderDecompressStream, referenced from:
      _brotli_do_write in libcurl.a[18](libcurl_la-content_encoding.o)
  _BrotliDecoderDestroyInstance, referenced from:
      _brotli_do_write in libcurl.a[18](libcurl_la-content_encoding.o)
      _brotli_do_close in libcurl.a[18](libcurl_la-content_encoding.o)
  _BrotliDecoderGetErrorCode, referenced from:
      _brotli_do_write in libcurl.a[18](libcurl_la-content_encoding.o)
  _BrotliDecoderVersion, referenced from:
      _curl_version in libcurl.a[128](libcurl_la-version.o)
      _curl_version_info in libcurl.a[128](libcurl_la-version.o)
      _curl_version_info in libcurl.a[128](libcurl_la-version.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:1043: curl] Error 1
gmake[2]: Leaving directory '/Users/user/build/curl-8.5.0/src'
gmake[1]: *** [Makefile:1548: all-recursive] Error 1
gmake[1]: Leaving directory '/Users/user/build/curl-8.5.0/src'
gmake: *** [Makefile:1252: all-recursive] Error 1

It seems that libbrotli does not respect specifed arch:

lib % find . -type f -name "*.a" -exec lipo -info "{}" \;
Non-fat file: ./libcrypto.a is architecture: x86_64
Non-fat file: ./libngtcp2.a is architecture: x86_64
Non-fat file: ./libunistring.a is architecture: x86_64
Non-fat file: ./libz.a is architecture: x86_64
Non-fat file: ./libbrotlienc.a is architecture: arm64
Non-fat file: ./libnghttp2.a is architecture: x86_64
Non-fat file: ./libbrotlidec.a is architecture: arm64
Non-fat file: ./libbrotlicommon.a is architecture: arm64
Non-fat file: ./libidn2.a is architecture: x86_64
Non-fat file: ./libcares.a is architecture: x86_64
Non-fat file: ./libssl.a is architecture: x86_64
Non-fat file: ./libssh2.a is architecture: x86_64
Non-fat file: ./libzstd.a is architecture: x86_64
Non-fat file: ./libpsl.a is architecture: x86_64
Non-fat file: ./libngtcp2_crypto_quictls.a is architecture: x86_64
Non-fat file: ./libnghttp3.a is architecture: x86_64