From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32752 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Unable to build pandoc on M1 Mac Date: Wed, 7 Jun 2023 02:40:17 -0700 (PDT) Message-ID: <944413bc-ca01-4e12-90bc-94932f0f0ce1n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_952_669020751.1686130817549" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28900"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJOHJEKUQNBBAVBQGSAMGQEH242UYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 07 11:40:26 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f61.google.com ([209.85.160.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q6peR-0007Bh-JE for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 07 Jun 2023 11:40:23 +0200 Original-Received: by mail-oa1-f61.google.com with SMTP id 586e51a60fabf-19f9a0f9936sf6769983fac.1 for ; Wed, 07 Jun 2023 02:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686130822; x=1688722822; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=vTg0fBI3FH4OVTu1JfwBwhR536w4jRRFFhw9eMjGyhM=; b=Bd+8SrO3KyDIMr5dKdzuiwQgj7JS1WDd0NrVQrvOMEK/uQukM4/Nk8a0lddRnsmo75 zexdGNEVWzcBYQhG10jsyWEgN9NL0r48f/jpP7N597Hrk3pDkCbYMdEZTgj/vm/fEnVc ikWXBVi5hmaMuw2wO4nZG16Go4eWfHA1r0aD7A4U54Zu6UYcvPm05LC8/11C4+rsiNAv HNPDKwdSpEbxfaA8sjVmKVl0OkV+fzWl56pKJBfps2uXHXTC3VYKFANYRqtvRFmbQxe5 y2YCVno03c3yh1nENRc808BL74REZpSMSWRRv6sCi4JFfG5CKtn/Gc54xpAVlpttsbBs B4Lw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686130822; x=1688722822; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=vTg0fBI3FH4OVTu1JfwBwhR536w4jRRFFhw9eMjGyhM=; b=iuHfTQaZliVQh/emE9G4zv77v/sVr63wK/5p3AjXHCc0Yh4lLHfz76DIrTiK32O8+e vzdSgVP5JUynGnTG03bVqz70+dDDJdaGdT9sDsc8rSXXLDInbXm2CPrvFzM3+7SB4g4w xb4YiYENmdSEaiGCGslocDT6zWZ3PN0bqNYtwsYOeG7xsDtqXhrkZT4T87VzU73fAyaC 2j4k/WIeatsIP5J86l7MgitjXwSBG7D0thMxO3HdMY2hXVCT5N8jERZfCnuE92oaU3nX WUL9ja1wDG9o/Ql55Dyg53SoQmNtGYvsEnhh03+Xvbr7LQFVJk3N9Hq0akA0Cgg58gCU 8kug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686130822; x=1688722822; 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:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=vTg0fBI3FH4OVTu1JfwBwhR536w4jRRFFhw9eMjGyhM=; b=dytVun2e6SI/D4o644+JbUeA88fDebca3crlzRNKDfXPXzJwWWydzZ/jVWbSHazNUS EYG7lGgSGYrlRIfzqsFrbHzLIh6Sygz/th7qd+QZVBQvlC71U2KLg3BP/yVdNE1cj4fs g36X9vAlZE07GOUheTepM4rpimC1Um9a5uRDJXggTOYGneZQKYrCGEGcmdiIHNW31h5I a5kbkbkg00qOlqJCSTA7E01sOL8olPe/Hk+uxzxoOs4AFDTqNSIYhVqOuIYI9au60cYV rd8H9a6T6UMM5xCW8nU9Uz6eZrMVsHCw7HfBdVOZCZ//QiwV3bxweMV0Yzqf2Xhb+bI+ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDy3MzBOJLtPA5e6gkd52w8JiRXuNWbU2NpIYwWRWG3Kfes7jeNp u+GLC3BEMw8T8RF49ySn/lc= X-Google-Smtp-Source: ACHHUZ4U8sXFVFEkxiU99rK9qGzSvyGrFWjtQq9TlzLzhdM+0cw9g9yEE6ZWX7B3jsmQL38EFvFYGg== X-Received: by 2002:a05:6870:6c0c:b0:19f:3db1:e2cd with SMTP id na12-20020a0568706c0c00b0019f3db1e2cdmr6619315oab.49.1686130822518; Wed, 07 Jun 2023 02:40:22 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:d133:0:b0:558:123e:e59a with SMTP id n19-20020a4ad133000000b00558123ee59als177266oor.0.-pod-prod-02-us; Wed, 07 Jun 2023 02:40:18 -0700 (PDT) X-Received: by 2002:a9d:6a4c:0:b0:6b0:c72c:c9dc with SMTP id h12-20020a9d6a4c000000b006b0c72cc9dcmr1307214otn.7.1686130818220; Wed, 07 Jun 2023 02:40:18 -0700 (PDT) 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:32752 Archived-At: ------=_Part_952_669020751.1686130817549 Content-Type: multipart/alternative; boundary="----=_Part_953_431057315.1686130817549" ------=_Part_953_431057315.1686130817549 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear pandoc mailing list, I seem to be unable to build pandoc on a M1 MacOS. I have setup haskell with `ghcup`, tried all permutations of: 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 I am always getting the same error: ``` 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,=20 dist/build/Network/Connection/Types.o, 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 ) Network/Connection.hs:122:43: error: =E2=80=A2 Couldn't match expected type =E2=80=98crypton-x509-store-1.6.= 9: Data.X509.CertificateStore . CertificateStore=E2=80=99 with actual type =E2=80=98Data.X509.CertificateStore. CertificateStore=E2=80=99 NB: =E2=80=98crypton-x509-store-1.6.9:Data.X509.CertificateStore=20 .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 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=20 TLS.ciphersuite_default}, TLS.clientShared =3D def {TLS.sharedCAStore =3D globalCertificateSto= re=20 cg, TLS.sharedValidationCache =3D=20 validationCache}} | 122 | { TLS.sharedCAStore =3D globalCertificateStore cg | ^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Failed to build connection-0.3.1 (which is required by exe:pandoc=20 from pandoc-cli-0.1.1). See the build log above for details. ``` It seems to me that with `ghcup`, `cabal` is not picking the right versions= =20 of the toolchain. How can I fix that? or should I install `pandoc` with `stack`? I know that I can install `pandoc` on Mac with `brew`, but so far,=20 installing `pandoc` with `cabal` always worked for me. --=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/944413bc-ca01-4e12-90bc-94932f0f0ce1n%40googlegroups.com. ------=_Part_953_431057315.1686130817549 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear pandoc mailing list,

I see= m to be unable to build pandoc on a M1 MacOS.

I have setup haskell with `ghcup= `, tried all permutations of:


cabal versions: 3.6.2.0 ; 3.8.1.0 ;=C2=A03.10.1.= 0
ghc versions: 9.2.8 ;= 9.4.4 ; 9.6.1

I am always getting the same error:

```
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=C2=A0Network.= Connection.Types=C2=A0( Network/Connection/Types.hs, dist/build/Network= /Connection/Types.o, dist/build= /Network/Connection/Types.dyn_o= )
[2 of 2] Compiling Network.Connectio= n ( Network/Connection.hs, dist/build/Network/Connection.o, dist/build/Network/Connection.dyn_o )
Network/Connection.hs:122:43: error:
=C2=A0 =C2=A0 =E2=80=A2 Couldn't match expe= cted type =E2=80=98crypton-x509-store-1.6.9:Data.X509.CertificateS= tore.CertificateStore=E2=80= =99
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 with actual type =E2=80=98Data.X509.Certificate= Store.CertificateStore=E2=80=99=
=C2=A0 =C2=A0 =C2=A0 NB: =E2=80=98cryp= ton-x509-store-1.6.9:Data.X509.CertificateStore.CertificateStore=E2=80=99
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 is defined in = =E2=80=98Data.X509.CertificateStore=E2=80=99
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 in package = =E2=80=98crypton-x509-store-1.6.9=E2=80=99
CertificateStore=E2=80=99
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 is= defined in =E2=80=98Data.X509.CertificateStore=E2=80=99
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 i= n package =E2=80=98x509-store-1.6.9=E2=80=99
=C2=A0 =C2=A0 =E2=80=A2 In the =E2=80=98sharedCAStore=E2=80=99 field = of a record
=C2=A0 =C2=A0 =C2=A0 In the= =E2=80=98clientShared=E2=80=99 field of a record
=C2=A0 =C2=A0 =C2=A0 In the expression:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (TLS.defaultParamsClient (fst cid) = portString)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 {TLS.clientSupported =3D def
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{TLS.supportedCiphers = =3D TLS.ciphersuite_default},
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0TLS.clientShared =3D def
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {TLS.sharedCAStore= =3D globalCertificateStore cg,
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0TLS.sharedValidationCache =3D validat= ionCache}}
=C2=A0 =C2=A0 |
122 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { T= LS.sharedCAStore =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D globalCertificateStore cg<= br style=3D"box-sizing: inherit;" />=C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^^^^^^^^^^^^^^^^^^^^^^= ^^^
cabal: Failed to build connection-0= .3.1 (which is required by exe:pandoc from
```

It seems to me that with `ghcup`, `cabal` is not pic= king the right versions of the toolchain.

How can I fix that? or should I ins= tall `pandoc` with `stack`?

I know that I can install `pandoc` on Mac with = `brew`, but so far, installing `pandoc` with `cabal` always worked for me.<= br />

--
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/944413bc-ca01-4e12-90bc-94932f0f0ce1n%40googlegroups.= com.
------=_Part_953_431057315.1686130817549-- ------=_Part_952_669020751.1686130817549--