From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32777 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: Fri, 9 Jun 2023 10:45:55 -0700 (PDT) Message-ID: <0323dd4e-3b10-4006-9159-7db9c42363f2n@googlegroups.com> References: <944413bc-ca01-4e12-90bc-94932f0f0ce1n@googlegroups.com> <533BEC57-D926-4B73-82E5-4075A4F7C06A@gmail.com> <3fe7da0e-2dcf-4536-9c21-d563d0bcaf9bn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5056_556489291.1686332755985" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31065"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJOHJEKUQNBBVOKRWSAMGQEESQXG6A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 09 19:46:13 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 1q7gBU-0007PH-CM for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 09 Jun 2023 19:46:00 +0200 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-19f1d9056fbsf1072760fac.0 for ; Fri, 09 Jun 2023 10:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686332759; x=1688924759; 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=chrqBpQnHP6KA+zsr71zN/rwtf34Q2jiPojsprOEkV0=; b=GSINGQYAEy4G9J7MW5/wfS9KzDCLZ8lYMx2REshPB1vgOvz/0vjKx/rXQZHxVxQHA7 3jQrlnNmmsLKF7BqutyGqML8Njvo3M+ZteraDRJ38p1/Qc4Er7GcYpqoKdJfgoUfdLJJ t+4yvtKtGcZ0oZDeeNmK4NiXhFaebqQ8HIznuBppiduV25MY7gffCZaGO5pVbJ0NhPH/ dtMsp3/gc7LL/xE00BvVUF/KyLJU6hwBdfKYJc3iAyCGloFPocfbarSytKXJMYAc0ATW xBnDZEVKqHaF6dAC955U20IsZUfI+UGf4D9hI6avDZFfVygDXO4O4G9KkyF1y/E4xCsn r6fQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686332759; x=1688924759; 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=chrqBpQnHP6KA+zsr71zN/rwtf34Q2jiPojsprOEkV0=; b=VQjxyQfl5yWc/6pAPuHcnerKYR7MwFH5sfYM0V6sKglLPAnIDgqv5QHUNoDXPMwS6M arBB3gDlpV213y3mL/VgJfUjKDbw6w7bm6N7D80Fp+gyXQ5BqmRxJcKrX0ivR8UoEOUX QwJ5JsG1I1bz2KgPydwacJADw0+NtnciDaag12FFaldFw6op4BdMp05Sx5yleZYczk5X 8Z6XUPLdN9lYUE015ns8tdNNjou+3VC4tm8+z5vZP35EB2nqSA6m1MlM7a72Y14xejcN mnJsBpZqanbJl+QMzSxhwOXWWrafQfDnZPfuvP3cVLqg7Lfe8zGQp72AMTtUK7SdAQXH hEBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686332759; x=1688924759; 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=chrqBpQnHP6KA+zsr71zN/rwtf34Q2jiPojsprOEkV0=; b=Dcg2Rf51McVRcTKPI/ZMICZ9oFAusgM4hCrf1gZvSY1x6z0Vip44RA5S/oVMXnlbxO SwRI/BMq30CUGoEcb21MxKCCDU374xuJwHrIiYeUnPW1vXM+pIocjtX5iMXO4n6FtptH yPHwd9jo+W510qnJBGtJV4YBrc/kVZ/y0qAQbfHp1Rvd8DFpGXKVgF/BDTwac81z89xC ANBLU05V3LA6NUB0l4gTBacSDx6B3OtS/RcD0em3lDNEYtVXzI0AsL9gtO6cjzdlslMr 4pV9IF+ch6CjZU+L0rexJJdTaKAMLb8UxtPXrN/0O2aOpn6rmn Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwxUH4TSbUCKyentbeBluao0W5Bqcgz13DXbkFlFdMpdiBt1f29 Jb8TAfQPHVRUzjrbNPZidWE= X-Google-Smtp-Source: ACHHUZ7++qZr5P3fiD+tYYT+wzasUBNmMW42w+PdbSOhuwLxUyytyD+fCacKFeTvr+GCIRM8J5qwTQ== X-Received: by 2002:a05:6870:9187:b0:1a6:4f6a:8a54 with SMTP id b7-20020a056870918700b001a64f6a8a54mr70934oaf.3.1686332759150; Fri, 09 Jun 2023 10:45:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:9d9a:b0:19a:1554:7a3c with SMTP id pv26-20020a0568709d9a00b0019a15547a3cls625522oab.1.-pod-prod-01-us; Fri, 09 Jun 2023 10:45:56 -0700 (PDT) X-Received: by 2002:a9d:6c8b:0:b0:6b1:592d:9711 with SMTP id c11-20020a9d6c8b000000b006b1592d9711mr780578otr.2.1686332756568; Fri, 09 Jun 2023 10:45:56 -0700 (PDT) In-Reply-To: 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:32777 Archived-At: ------=_Part_5056_556489291.1686332755985 Content-Type: multipart/alternative; boundary="----=_Part_5057_721799447.1686332755985" ------=_Part_5057_721799447.1686332755985 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It worked perfectly, thank you for helping me! Dne =C4=8Dtvrtek 8. =C4=8Dervna 2023 v 21:09:03 UTC+2 u=C5=BEivatel John Ma= cFarlane napsal: > --constraint 'tls < 1.7' > will work I think > > > > On Jun 8, 2023, at 10:49 AM, krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org =20 > wrote: > >=20 > > Thank you for the reply! > >=20 > > Now I realized that I might have used the incorrect wording here. So=20 > far, I've been installing pandoc with just `cabal install pandoc` or=20 > `pandoc-cli`, I wasn't building pandoc from source code clone. > >=20 > > Is there a way how to pass the constraint to cabal on the command line? > >=20 > > Dne st=C5=99eda 7. =C4=8Dervna 2023 v 18:42:09 UTC+2 u=C5=BEivatel John= MacFarlane=20 > napsal: > > This is due to the recent fork of cryptonite -> crypton.=20 > >=20 > > The cure, for now, is to add this to cabal.project:=20 > >=20 > > constraints: tls < 1.7=20 > >=20 > > Hopefully downstream packages will be updated soon and we can remove th= e=20 > constraint.=20 > >=20 > >=20 > > > On Jun 7, 2023, at 2:40 AM, krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org =20 > wrote:=20 > > >=20 > > > Dear pandoc mailing list,=20 > > >=20 > > > I seem to be unable to build pandoc on a M1 MacOS.=20 > > >=20 > > > I have setup haskell with `ghcup`, tried all permutations of:=20 > > >=20 > > > cabal versions: 3.6.2.0 ; 3.8.1.0 ; 3.10.1.0=20 > > > ghc versions: 9.2.8 ; 9.4.4 ; 9.6.1=20 > > >=20 > > > I am always getting the same error:=20 > > >=20 > > > ```=20 > > > Warning: connection.cabal:26:36: version operators used. To use=20 > version=20 > > > operators the package needs to specify at least 'cabal-version: >=3D= =20 > 1.8'.=20 > > > Configuring connection-0.3.1...=20 > > > Preprocessing library for connection-0.3.1..=20 > > > Building library for connection-0.3.1..=20 > > > [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 )=20 > > > [2 of 2] Compiling Network.Connection ( Network/Connection.hs,=20 > dist/build/Network/Connection.o, dist/build/Network/Connection.dyn_o )=20 > > >=20 > > > Network/Connection.hs:122:43: error:=20 > > > =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=20 > > > with actual type =E2=80=98Data.X509.CertificateStore.CertificateStore= =E2=80=99=20 > > > NB:=20 > =E2=80=98crypton-x509-store-1.6.9:Data.X509.CertificateStore.CertificateS= tore=E2=80=99=20 > > > is defined in =E2=80=98Data.X509.CertificateStore=E2=80=99=20 > > > in package =E2=80=98crypton-x509-store-1.6.9=E2=80=99=20 > > > =E2=80=98Data.X509.CertificateStore.CertificateStore=E2=80=99=20 > > > is defined in =E2=80=98Data.X509.CertificateStore=E2=80=99=20 > > > in package =E2=80=98x509-store-1.6.9=E2=80=99=20 > > > =E2=80=A2 In the =E2=80=98sharedCAStore=E2=80=99 field of a record=20 > > > In the =E2=80=98clientShared=E2=80=99 field of a record=20 > > > In the expression:=20 > > > (TLS.defaultParamsClient (fst cid) portString)=20 > > > {TLS.clientSupported =3D def=20 > > > {TLS.supportedCiphers =3D TLS.ciphersuite_default},=20 > > > TLS.clientShared =3D def=20 > > > {TLS.sharedCAStore =3D globalCertificateStore cg,=20 > > > TLS.sharedValidationCache =3D validationCache}}=20 > > > |=20 > > > 122 | { TLS.sharedCAStore =3D globalCertificateStore cg=20 > > > | ^^^^^^^^^^^^^^^^^^^^^^^^^=20 > > > cabal: Failed to build connection-0.3.1 (which is required by=20 > exe:pandoc from=20 > > > pandoc-cli-0.1.1). See the build log above for details.=20 > > > ```=20 > > >=20 > > > It seems to me that with `ghcup`, `cabal` is not picking the right=20 > versions of the toolchain.=20 > > >=20 > > > How can I fix that? or should I install `pandoc` with `stack`?=20 > > >=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 > > > --=20 > > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group.=20 > > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > > > 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 > > >=20 > >=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/3fe7da0e-2dcf-4536-9c21-= d563d0bcaf9bn%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/0323dd4e-3b10-4006-9159-7db9c42363f2n%40googlegroups.com. ------=_Part_5057_721799447.1686332755985 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It worked perfectly, thank you for helping me!

Dne =C4=8Dtvrtek 8. =C4=8D= ervna 2023=C2=A0v=C2=A021:09:03 UTC+2 u=C5=BEivatel John MacFarlane napsal:=
--constraint= 'tls < 1.7'
will work I think


> On Jun 8, 2023, at 10:49 AM, krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
> Thank you for the reply!
>=20
> Now I realized that I might have used the incorrect wording here. = So far, I've been installing pandoc with just `cabal install pandoc` or= `pandoc-cli`, I wasn't building pandoc from source code clone.
>=20
> Is there a way how to pass the constraint to cabal on the command = line?
>=20
> Dne st=C5=99eda 7. =C4=8Dervna 2023 v 18:42:09 UTC+2 u=C5=BEivatel= John MacFarlane napsal:
> This is due to the recent fork of cryptonite -> crypton.=20
>=20
> The cure, for now, is to add this to cabal.project:=20
>=20
> constraints: tls < 1.7=20
>=20
> Hopefully downstream packages will be updated soon and we can remo= ve the constraint.=20
>=20
>=20
> > On Jun 7, 2023, at 2:40 AM, krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:=20
> >=20
> > Dear pandoc mailing list,=20
> >=20
> > I seem to be unable to build pandoc on a M1 MacOS.=20
> >=20
> > I have setup haskell with `ghcup`, tried all permutations of:= =20
> >=20
> > cabal versions: 3.6.2.0 ; 3.8.1.0 ; 3.10.1.0=20
> > ghc versions: 9.2.8 ; 9.4.4 ; 9.6.1=20
> >=20
> > I am always getting the same error:=20
> >=20
> > ```=20
> > Warning: connection.cabal:26:36: version operators used. To u= se version=20
> > operators the package needs to specify at least 'cabal-ve= rsion: >=3D 1.8'.=20
> > Configuring connection-0.3.1...=20
> > Preprocessing library for connection-0.3.1..=20
> > Building library for connection-0.3.1..=20
> > [1 of 2] Compiling Network.Connection.Types ( Network/Connect= ion/Types.hs, dist/build/Network/Connection/Types.o, dist/build/Network/Con= nection/Types.dyn_o )=20
> > [2 of 2] Compiling Network.Connection ( Network/Connection.hs= , dist/build/Network/Connection.o, dist/build/Network/Connection.dyn_o )=20
> >=20
> > Network/Connection.hs:122:43: error:=20
> > =E2=80=A2 Couldn't match expected type =E2=80=98crypton-x= 509-store-1.6.9:Data.X509.CertificateStore.CertificateStore=E2=80=99=20
> > with actual type =E2=80=98Data.X509.CertificateStore.Certific= ateStore=E2=80=99=20
> > NB: =E2=80=98crypton-x509-store-1.6.9:Data.X509.CertificateSt= ore.CertificateStore=E2=80=99=20
> > is defined in =E2=80=98Data.X509.CertificateStore=E2=80=99=20
> > in package =E2=80=98crypton-x509-store-1.6.9=E2=80=99=20
> > =E2=80=98Data.X509.CertificateStore.CertificateStore=E2=80=99= =20
> > is defined in =E2=80=98Data.X509.CertificateStore=E2=80=99=20
> > in package =E2=80=98x509-store-1.6.9=E2=80=99=20
> > =E2=80=A2 In the =E2=80=98sharedCAStore=E2=80=99 field of a r= ecord=20
> > In the =E2=80=98clientShared=E2=80=99 field of a record=20
> > In the expression:=20
> > (TLS.defaultParamsClient (fst cid) portString)=20
> > {TLS.clientSupported =3D def=20
> > {TLS.supportedCiphers =3D TLS.ciphersuite_default},=20
> > TLS.clientShared =3D def=20
> > {TLS.sharedCAStore =3D globalCertificateStore cg,=20
> > TLS.sharedValidationCache =3D validationCache}}=20
> > |=20
> > 122 | { TLS.sharedCAStore =3D globalCertificateStore cg=20
> > | ^^^^^^^^^^^^^^^^^^^^^^^^^=20
> > cabal: Failed to build connection-0.3.1 (which is required by= exe:pandoc from=20
> > pandoc-cli-0.1.1). See the build log above for details.=20
> > ```=20
> >=20
> > It seems to me that with `ghcup`, `cabal` is not picking the = right versions of the toolchain.=20
> >=20
> > How can I fix that? or should I install `pandoc` with `stack`= ?=20
> >=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
> > --=20
> > You received this message because you are subscribed to the G= oogle Groups "pandoc-discuss" group.=20
> > To unsubscribe from this group and stop receiving emails from= it, send an email to pandoc-dis= cus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.=20
> > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/944413b= c-ca01-4e12-90bc-94932f0f0ce1n%40googlegroups.com.=20
>=20
>=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/3fe7da0e-2= dcf-4536-9c21-d563d0bcaf9bn%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/0323dd4e-3b10-4006-9159-7db9c42363f2n%40googlegroups.= com.
------=_Part_5057_721799447.1686332755985-- ------=_Part_5056_556489291.1686332755985--