From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32767 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: Unable to build pandoc on M1 Mac Date: Thu, 8 Jun 2023 10:49:56 -0700 (PDT) Message-ID: <3fe7da0e-2dcf-4536-9c21-d563d0bcaf9bn@googlegroups.com> References: <944413bc-ca01-4e12-90bc-94932f0f0ce1n@googlegroups.com> <533BEC57-D926-4B73-82E5-4075A4F7C06A@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3546_1913403295.1686246596646" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22715"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJOHJEKUQNBBRVJRCSAMGQEKNWVS6Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 08 19:50:02 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q7Jlp-0005hO-NM for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 08 Jun 2023 19:50:01 +0200 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-1a31a9ddd87sf733712fac.3 for ; Thu, 08 Jun 2023 10:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686246600; x=1688838600; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=EWpds1BmyHK7cx6zwwcUDx3yVwwtTc4IFl50vKEOV60=; b=AVRAhoPX5t392EAhpC2otWGQaTqEQC8NtjUpbDkZ4F9AHT05ppTW9S0ZfirobzmGdg npiW1grAmTSVUL3QArPEWEGwFFc6/i8Y7gi7IjDiM8zEFClASZeVh3nkPkyxE9X0xwcA Hrm7XjbruOdk7dVTJMDEluk/LK2Hma+K6MWxO4m2bBjK3zVF3oHxyMBWxXNSxc9z6Igm 33R5WfNs83oeSwlrl8aXZuBfsi6CHz2AGNHnQqkowGTpWBPEHtl68OTAP3I490cIbA0u Z1KzpqBa1TOC701qVVWLKkZlQMWETYD3KA8BMiDHhIphJ5OS9M1HIWB/N53BpBzWIVZz 0Xzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686246600; x=1688838600; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=EWpds1BmyHK7cx6zwwcUDx3yVwwtTc4IFl50vKEOV60=; b=clX73so3DOg8sqja7WHs0nHmetvAyN+n9/cG71EPFl+qgdhQ8t6wrNBgX1278oSuoL nvX9dwPcb52FipqmpIiK4IAntQtRmJwS1VA+DnP9QYYb2zuTECKs9K6O9c6JA614Up5b Ju+bw+2GKJ6PA+nipUnfXnvDDwLmoLapMTh2rfqa3DV+lPxZv5bwcz35XjHlaQ2lMZtM kfbD+q0rbj2qxLltU5zhujj6/gKAW2h2w9vr6gaRY4VZIjXsn4zxYP21KAnNekPsUNEA GYrdtkM+69kZQJ4YvgsK9khEy3oiVvm2WUQkkgS5MR9BBDDGOL5Ih26f0jZ9XQ2INv51 G0vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686246600; x=1688838600; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=EWpds1BmyHK7cx6zwwcUDx3yVwwtTc4IFl50vKEOV60=; b=NPmLa3jQWSYQg/Wy1fqqsIXVFbK3+l/sCPxrgbLWiiiQx4p42XRtWw2C3uN1oBYxW1 PA5Ye3b5vLzZY4dWELxb+HHS7pk3EqECIOOjDAiEIYUIopdfazyHB2SLMeWY4AZeLhgk 9qI+5eOoh32SzWntARheHOrBOUdgnDwm4OkKw34lW7I5BTfHsG5aDW6id/Tb+6X5AfVJ nmi4Gzga8rBoaWH0O3IrHlgx0f7OdaKTtFdzUEFbXXLvKiekzZrbd+AKCAU/4mcyUeiL tEd3N3eVunUQewrt4w3NlGnuoIIfQDDVn+OVXb2F+TgPvPig2h Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyVYbguBEdabfVpCizFcbQqHNh5W0+dY/F3HZt8J2WC2UT55iTb dgIULvAQwqrOyoOH7x5/k48= X-Google-Smtp-Source: ACHHUZ4ebbUqqx+O2Y0tKNizj9IOD1764kim0TphEEHHQ4VgQtrhVsNjfWwNuDe/cEXI72Ly+n0mtQ== X-Received: by 2002:a05:6870:e516:b0:19f:1c1d:a261 with SMTP id y22-20020a056870e51600b0019f1c1da261mr6834349oag.50.1686246600632; Thu, 08 Jun 2023 10:50:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:ca03:0:b0:55a:ef1d:8b5c with SMTP id w3-20020a4aca03000000b0055aef1d8b5cls353455ooq.1.-pod-prod-03-us; Thu, 08 Jun 2023 10:49:57 -0700 (PDT) X-Received: by 2002:aca:f354:0:b0:39c:55c4:bd49 with SMTP id r81-20020acaf354000000b0039c55c4bd49mr1701471oih.8.1686246597456; Thu, 08 Jun 2023 10:49:57 -0700 (PDT) In-Reply-To: <533BEC57-D926-4B73-82E5-4075A4F7C06A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: krulis.tomas.tk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32767 Archived-At: ------=_Part_3546_1913403295.1686246596646 Content-Type: multipart/alternative; boundary="----=_Part_3547_1782251876.1686246596646" ------=_Part_3547_1782251876.1686246596646 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for the reply! Now I realized that I might have used the incorrect wording here. So far,= =20 I've been installing pandoc with just `cabal install pandoc` or=20 `pandoc-cli`, I wasn't building pandoc from source code clone. Is there a way how to pass the constraint to cabal on the command line? Dne st=C5=99eda 7. =C4=8Dervna 2023 v 18:42:09 UTC+2 u=C5=BEivatel John Mac= Farlane napsal: > This is due to the recent fork of cryptonite -> crypton. > > The cure, for now, is to add this to cabal.project: > > constraints: tls < 1.7 > > Hopefully downstream packages will be updated soon and we can remove the= =20 > constraint. > > > > On Jun 7, 2023, at 2:40 AM, krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org = =20 > wrote: > >=20 > > Dear pandoc mailing list, > >=20 > > I seem to be unable to build pandoc on a M1 MacOS. > >=20 > > I have setup haskell with `ghcup`, tried all permutations of: > >=20 > > cabal versions: 3.6.2.0 ; 3.8.1.0 ; 3.10.1.0 > > ghc versions: 9.2.8 ; 9.4.4 ; 9.6.1 > >=20 > > I am always getting the same error: > >=20 > > ``` > > Warning: connection.cabal:26:36: version operators used. To use version > > operators the package needs to specify at least 'cabal-version: >=3D 1.= 8'. > > Configuring connection-0.3.1... > > Preprocessing library for connection-0.3.1.. > > Building library for connection-0.3.1.. > > [1 of 2] Compiling Network.Connection.Types (=20 > Network/Connection/Types.hs, dist/build/Network/Connection/Types.o,=20 > dist/build/Network/Connection/Types.dyn_o ) > > [2 of 2] Compiling Network.Connection ( Network/Connection.hs,=20 > dist/build/Network/Connection.o, dist/build/Network/Connection.dyn_o ) > >=20 > > Network/Connection.hs:122:43: error: > > =E2=80=A2 Couldn't match expected type=20 > =E2=80=98crypton-x509-store-1.6.9:Data.X509.CertificateStore.CertificateS= tore=E2=80=99 > > with actual type =E2=80=98Data.X509.CertificateStore.CertificateStore= =E2=80=99 > > NB:=20 > =E2=80=98crypton-x509-store-1.6.9:Data.X509.CertificateStore.CertificateS= tore=E2=80=99 > > is defined in =E2=80=98Data.X509.CertificateStore=E2=80=99 > > in package =E2=80=98crypton-x509-store-1.6.9=E2=80=99 > > =E2=80=98Data.X509.CertificateStore.CertificateStore=E2=80=99 > > is defined in =E2=80=98Data.X509.CertificateStore=E2=80=99 > > in package =E2=80=98x509-store-1.6.9=E2=80=99 > > =E2=80=A2 In the =E2=80=98sharedCAStore=E2=80=99 field of a record > > In the =E2=80=98clientShared=E2=80=99 field of a record > > In the expression: > > (TLS.defaultParamsClient (fst cid) portString) > > {TLS.clientSupported =3D def > > {TLS.supportedCiphers =3D TLS.ciphersuite_default}, > > TLS.clientShared =3D def > > {TLS.sharedCAStore =3D globalCertificateStore cg, > > TLS.sharedValidationCache =3D validationCache}} > > | > > 122 | { TLS.sharedCAStore =3D globalCertificateStore cg > > | ^^^^^^^^^^^^^^^^^^^^^^^^^ > > cabal: Failed to build connection-0.3.1 (which is required by exe:pando= c=20 > from > > pandoc-cli-0.1.1). See the build log above for details. > > ``` > >=20 > > It seems to me that with `ghcup`, `cabal` is not picking the right=20 > versions of the toolchain. > >=20 > > How can I fix that? or should I install `pandoc` with `stack`? > >=20 > > I know that I can install `pandoc` on Mac with `brew`, but so far,=20 > installing `pandoc` with `cabal` always worked for me. > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/944413bc-ca01-4e12-90bc-= 94932f0f0ce1n%40googlegroups.com > . > > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/3fe7da0e-2dcf-4536-9c21-d563d0bcaf9bn%40googlegroups.com. ------=_Part_3547_1782251876.1686246596646 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for the reply!

Now I realized that I might have used t= he incorrect wording here. So far, I've been installing pandoc with just `c= abal install pandoc` or `pandoc-cli`, I wasn't building pandoc from source = code clone.

Is there a way how to pass the constraint to cabal o= n the command line?

Dne st=C5=99eda 7. =C4=8Dervna 2023=C2=A0v=C2=A018:42= :09 UTC+2 u=C5=BEivatel John MacFarlane napsal:
This is due to the recent fork of crypto= nite -> crypton.

The cure, for now, is to add this to cabal.project:

constraints: tls < 1.7

Hopefully downstream packages will be updated soon and we can remove th= e constraint.


> On Jun 7, 2023, at 2:40 AM, krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
> Dear pandoc mailing list,
>=20
> I seem to be unable to build pandoc on a M1 MacOS.
>=20
> I have setup haskell with `ghcup`, tried all permutations of:
>=20
> cabal versions: 3.6.2.0 ; 3.8.1.0 ; 3.10.1.0
> ghc versions: 9.2.8 ; 9.4.4 ; 9.6.1
>=20
> I am always getting the same error:
>=20
> ```
> Warning: connection.cabal:26:36: version operators used. To use ve= rsion
> operators the package needs to specify at least 'cabal-version= : >=3D 1.8'.
> Configuring connection-0.3.1...
> Preprocessing library for connection-0.3.1..
> Building library for connection-0.3.1..
> [1 of 2] Compiling Network.Connection.Types ( Network/Connection/T= ypes.hs, dist/build/Network/Connection/Types.o, dist/build/Network/Connecti= on/Types.dyn_o )
> [2 of 2] Compiling Network.Connection ( Network/Connection.hs, dis= t/build/Network/Connection.o, dist/build/Network/Connection.dyn_o )
>=20
> Network/Connection.hs:122:43: error:
> =E2=80=A2 Couldn't match expected type =E2=80=98crypton-x5= 09-store-1.6.9:Data.X509.CertificateStore.CertificateStore=E2=80=99
> with actual type =E2=80=98Data.X509.CertificateS= tore.CertificateStore=E2=80=99
> NB: =E2=80=98crypton-x509-store-1.6.9:Data.X509.CertificateS= tore.CertificateStore=E2=80=99
> is defined in =E2=80=98Data.X509.CertificateStore=E2= =80=99
> in package =E2=80=98crypton-x509-store-1.6.9=E2=80= =99
> =E2=80=98Data.X509.CertificateStore.CertificateStore=E2= =80=99
> is defined in =E2=80=98Data.X509.CertificateStore=E2= =80=99
> in package =E2=80=98x509-store-1.6.9=E2=80=99
> =E2=80=A2 In the =E2=80=98sharedCAStore=E2=80=99 field of a re= cord
> In the =E2=80=98clientShared=E2=80=99 field of a record
> In the expression:
> (TLS.defaultParamsClient (fst cid) portString)
> {TLS.clientSupported =3D def
> {TLS.supportedCiphers =3D TLS.c= iphersuite_default},
> TLS.clientShared =3D def
> {TLS.sharedCAStore =3D globalCerti= ficateStore cg,
> TLS.sharedValidationCache =3D val= idationCache}}
> |
> 122 | { TLS.sharedCAStore =3D globalCertificat= eStore cg
> | ^^^^^^^^^^^^^^^^^^= ^^^^^^^
> cabal: Failed to build connection-0.3.1 (which is required by exe:= pandoc from
> pandoc-cli-0.1.1). See the build log above for details.
> ```
>=20
> It seems to me that with `ghcup`, `cabal` is not picking the right= versions of the toolchain.
>=20
> How can I fix that? or should I install `pandoc` with `stack`?
>=20
> I know that I can install `pandoc` on Mac with `brew`, but so far,= installing `pandoc` with `cabal` always worked for me.
>=20
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/944413bc-c= a01-4e12-90bc-94932f0f0ce1n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/3fe7da0e-2dcf-4536-9c21-d563d0bcaf9bn%40googlegroups.= com.
------=_Part_3547_1782251876.1686246596646-- ------=_Part_3546_1913403295.1686246596646--