Re: Installing GHC on my MacBook Air

2023-03-17 Thread Steven Smith
I recommend using macOS package managers to take care of all this. There’s a whole community of knowledgeable folks who have figured out all these build and install details, and I know that it’s simply a matter of doing this to get a working version of the latest, on either x86_64 or arm64 machines:sudo port install ghcThat’s using MacPorts. There are other options, but I strongly recommend MacPorts for several reasons, especially for development tools.On Mar 15, 2023, at 12:04, George Colpitts  wrote:Hi BillI'm cc'ing GHC dev and GHC users as someone else may have a better answer, catch a mistake I made etc. Please don't delete them.I believe you have encountered https://gitlab.haskell.org/ghc/ghc/-/issues/21506#note_447206I believe the way to fix this is to do the following:rm -fr /usr/local/bin/ghc*rm -fr /usr/local/lib/ghc*./configuresudo xattr -rc .sudo make installHowever I am unsure why you are encountering this as the issue is supposed to have been fixed.CheersGeorgeOn Wed, Mar 15, 2023 at 11:21 AM William McEnaney  wrote:Hi, George,I got this message when I ran make install with the sudo command. What should I do?libHSterminfo-0.4.1.5-ghc9.4.4.dylib” can’t be opened because Apple cannot check it for malicious software.What should I do now?Thanks.BillOn Wed, Mar 15, 2023 at 9:29 AM William McEnaney  wrote:Hi George,Thank you for your reply. I forget what I did to install it. But the compiler and other ghc-related programs live in /usr/local/bin. Since I installed the wrong binaries, I changed the directory to /usr/local/bin and tried to empty that directory with rm -rf ghc*.*, but that didn't delete anything. So I wonder whether I'll need to remove those programs before reinstalling ghc.Thanks for your help, too.Best,BillOn Wed, Mar 15, 2023 at 7:59 AM George Colpitts  wrote:Hi BillYes,GHC will run on your new MacBook Air. The cpu in that is Apple Silicon , the aarch64-apple-darwin platform. Older Macs run on Intel chips, the x86_64-apple-darwin platform. I'm not sure how you installed the compiler. I believe the standard way is described on https://www.haskell.org/ghcup/. Can you tell us how you installed it?Thanks GeorgeOn Wed, Mar 15, 2023 at 8:22 AM Simon Peyton Jones  wrote:Redirecting this query to ghc-devs.  Can anyone help William?  Thanks!
Will GHC run on my new MacBook Air? After installing the compiler, 
my laptop said its processor was wrong for the binary distribution I 
chose. If there is a dmg file for MacOS 12.5.1, please please link your 
reply to it.

SimonOn Tue, 14 Mar 2023 at 23:33, William McEnaney  wrote:Dear Dr. Jones,Will GHC run on my new MacBook Air? After installing the compiler, my laptop said its processor was wrong for the binary distribution I chose. If there is a dmg file for MacOS 12.5.1, please please link your reply to it.Thanks for your help.Best,Bill

___
ghc-devs mailing list
ghc-d...@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs





___Glasgow-haskell-users mailing listGlasgow-haskell-users@haskell.orghttp://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: [Haskell] [ANNOUNCE] GHC 9.2.3 released

2022-05-27 Thread Steven Smith
FYI, gpg documentation is incorrect, should be your public key: 
http://pgp.mit.edu/pks/lookup?op=get=0x88b57fcf7db53b4db3bfa4b1588764fbe22d19c4
 


Thanks for the release!

> $ gpg --import 
> /opt/local/ports/lang/ghc/files/keyid-ffeb7ce81e16a36b3e2ded6f2de04d4e97db64ad.txt
>  
> gpg: key 2DE04D4E97DB64AD: 3 signatures not checked due to missing keys
> gpg: key 2DE04D4E97DB64AD: public key "Benjamin Gamari " 
> imported
> gpg: Total number processed: 1
> gpg:   imported: 1
> gpg: no ultimately trusted keys found
> $ gpg --verify 
> /opt/local/var/macports/distfiles/ghc/ghc-9.2.3-x86_64-apple-darwin.tar.xz.sig
>  /opt/local/var/macports/distfiles/ghc/ghc-9.2.3-x86_64-apple-darwin.tar.xz
> gpg: Signature made Fri May 27 12:03:10 2022 EDT
> gpg:using RSA key 88B57FCF7DB53B4DB3BFA4B1588764FBE22D19C4
> gpg: Can't check signature: No public key


> On May 27, 2022, at 3:31 PM, Zubin Duggal  wrote:
> 
> https://www.haskell.org/ghc/download_ghc_9_2_3.html 
> 


smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: osx conundrum

2021-10-14 Thread Steven Smith
> The issue would be macports.  It uses its own version of the iconv lib and 
> that always gets headaches if the ghc touches anything else. 


No, Macports ghc links against the symbol iconv from /usr/lib/libSystem. See: 
https://github.com/macports/macports-ports/blob/c7c7f3f90e1140a0d4826bb94502fd7a4ae40459/lang/ghc/Portfile#L213-L218
 
<https://github.com/macports/macports-ports/blob/c7c7f3f90e1140a0d4826bb94502fd7a4ae40459/lang/ghc/Portfile#L213-L218>
https://gitlab.haskell.org/ghc/ghc/-/issues/18752 
<https://gitlab.haskell.org/ghc/ghc/-/issues/18752>
https://trac.macports.org/ticket/57821 <https://trac.macports.org/ticket/57821>

The MacPorts ghc binary is rock solid to the best of my knowledge.

If you want to compile ghc against libiconv (not libSystem), then must contend 
with the name mangling issue inherent in the libiconv library, discussed in the 
last link above.

Recommendation on macOS: just install the MacPorts binaries. They work, they’re 
compiled from source, and they’re managed.


> On Oct 13, 2021, at 9:49 PM, Carter Schonwald  
> wrote:
> 
> The issue would be macports.  It uses its own version of the iconv lib and 
> that always gets headaches if the ghc touches anything else. 
> 
> if you’re using macports you have to make sure everything is Mac ports only 
> for ghc linking. 
> 
> Else you have to make sure you don’t touch any macports c Libs via ghc.  
> 
> On Wed, Oct 13, 2021 at 7:57 AM David Duke  <mailto:duke.j.da...@gmail.com>> wrote:
> Thanks Steven. Looks like it might be something with my system.
> I reinstalled from macports  8.10.7
> @ Carter yes I've been carefully   check the compiler version on each trial.
> However trying to compile a Haskell source gives the same libHSbase error
> 
> 
> 
> ndefined symbols for architecture x86_64:
>   "_iconv", referenced from:
>   _hs_iconv in libHSbase-4.14.3.0.a(iconv.o
> 
> 
> 
> 
> On Tue, Oct 12, 2021 at 2:54 AM Steven Smith  <mailto:steve.t.sm...@gmail.com>> wrote:
> I’m a maintainer of the MacPorts ghc port. The MacPorts installations do not 
> have this issue, whether installed from the buildbot binaries or compiled 
> from source, that all work on multiple macOS versions 10.9–11.  Here’s the 
> build recipe: 
> https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile 
> <https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile>
> 
> The iconv symbol issue is known, 
> https://gitlab.haskell.org/ghc/ghc/-/issues/18752 
> <https://gitlab.haskell.org/ghc/ghc/-/issues/18752>, and packages like 
> MacPorts must build around it.
> 
> This looks like something specific to your configuration.
> 
> If you believe that there is an issue outside your system, please initiate a 
> trac ticket at https://trac.macports.org <https://trac.macports.org/>.
> 
> 
>> On Oct 11, 2021, at 5:00 AM, David Duke > <mailto:duke.j.da...@gmail.com>> wrote:
>> 
>> I have a conundrum on which advice would be appreciate. Does
>> anyone know how to successfully install ghc on OSX 
>> I've tried various binary instalation routes:
>> macports, brew, direct binary downloads from haskel.org <http://haskel.org/>
> 
> 
> -- 
> David Duke
> Emeritus Professor of Computer Science
> School of Computing University of Leeds UK
> E:duke.j.da...@gmail.com <mailto:e%3aduke.j.da...@gmail.com>
> W:https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke 
> <https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke>___
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.org <mailto:Glasgow-haskell-users@haskell.org>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users 
> <http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users>



smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: osx conundrum

2021-10-13 Thread Steven Smith
FWIW, MacPorts does compile from source. If you want, just do

sudo port -s install ghc

and watch a multistage compiler build.

That’s where the MacPorts binary installs come from, so it’s just easier to use 
those.

> On Oct 13, 2021, at 07:57, David Duke  wrote:
> 
> 
> Thanks Steven. Looks like it might be something with my system.
> I reinstalled from macports  8.10.7
> @ Carter yes I've been carefully   check the compiler version on each trial.
> However trying to compile a Haskell source gives the same libHSbase error
> 
> 
> 
> ndefined symbols for architecture x86_64:
>   "_iconv", referenced from:
>   _hs_iconv in libHSbase-4.14.3.0.a(iconv.o
> 
> 
> 
> 
>> On Tue, Oct 12, 2021 at 2:54 AM Steven Smith  wrote:
>> I’m a maintainer of the MacPorts ghc port. The MacPorts installations do not 
>> have this issue, whether installed from the buildbot binaries or compiled 
>> from source, that all work on multiple macOS versions 10.9–11.  Here’s the 
>> build recipe: 
>> https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile
>> 
>> The iconv symbol issue is known, 
>> https://gitlab.haskell.org/ghc/ghc/-/issues/18752, and packages like 
>> MacPorts must build around it.
>> 
>> This looks like something specific to your configuration.
>> 
>> If you believe that there is an issue outside your system, please initiate a 
>> trac ticket at https://trac.macports.org.
>> 
>> 
>>> On Oct 11, 2021, at 5:00 AM, David Duke  wrote:
>>> 
>>> I have a conundrum on which advice would be appreciate. Does
>>> anyone know how to successfully install ghc on OSX 
>>> I've tried various binary instalation routes:
>>> macports, brew, direct binary downloads from haskel.org
>> 
> 
> 
> -- 
> David Duke
> Emeritus Professor of Computer Science
> School of Computing University of Leeds UK
> E:duke.j.da...@gmail.com
> W:https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: osx conundrum

2021-10-11 Thread Steven Smith
I’m a maintainer of the MacPorts ghc port. The MacPorts installations do not 
have this issue, whether installed from the buildbot binaries or compiled from 
source, that all work on multiple macOS versions 10.9–11.  Here’s the build 
recipe: 
https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile 


The iconv symbol issue is known, 
https://gitlab.haskell.org/ghc/ghc/-/issues/18752 
, and packages like MacPorts 
must build around it.

This looks like something specific to your configuration.

If you believe that there is an issue outside your system, please initiate a 
trac ticket at https://trac.macports.org .


> On Oct 11, 2021, at 5:00 AM, David Duke  wrote:
> 
> I have a conundrum on which advice would be appreciate. Does
> anyone know how to successfully install ghc on OSX 
> I've tried various binary instalation routes:
> macports, brew, direct binary downloads from haskel.org 


smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: [ANN] Cabal-3.6.0.0

2021-08-15 Thread Steven Smith
Sorry, I still do not see 3.6.0.0 on the downloads site. Here’s the tail of 
what I see at https://downloads.haskell.org/~cabal/

…
> cabal-install-3.2.0.0/ 16-May-2020 07:42  
>  -
> cabal-install-3.4.0.0/ 23-Feb-2021 23:00  
>  -
> cabal-install-latest/  23-Feb-2021 23:00  
>  -
> old/   17-Feb-2019 01:10  
>  -


> On Aug 14, 2021, at 22:50, Emily Pillmore  wrote:
> 
> 
> There, we've purged the cache and I'm seeing everything up to date :)
> 
> 
>> On Sat, Aug 14, 2021 at 8:17 PM, Emily Pillmore  wrote:
>> It already exists on the site, but it looks like the old dirs are cached
>> 
>> 
>> 
>> On Sat, Aug 14, 2021 at 7:56 PM, Steven Smith  
>> wrote:
>> Thank you! Will the release be posted to the haskell downloads site?
>> 
>> https://downloads.haskell.org/~cabal/
>> 
>> Several package managers (e.g. MacPorts) build using this site.
>> 
>> 
>>> On Aug 5, 2021, at 5:27 PM, Emily Pillmore  wrote:
>>> 
>>> Hello All,
>>> 
>>> The Cabal team is excited to announce the release of Cabal-3.6.0.0!
>>> 
>>> 
>>> This is the fourth release of the 3.0 release series, and highlights 
>>> include support for GHC 9.2, as well as many new code quality improvements 
>>> + organization work on the repo itself.
>>> 
>>> For future plans, we've announced a State of the Cabal post which describes 
>>> where we want to take the library and executable over the next year or two 
>>> here: https://discourse.haskell.org/t/state-of-the-cabal-q1-q2-2021/2548.
>>> 
>>> If you'd like to get involved, feel free to contact anyone from the 
>>> maintainer team directly, or drop by #hackage on libera.chat to speak with 
>>> us. Additionally, as we continue to modernize Cabal, I'd like to highlight 
>>> and show appreciation for all of the help we've gotten from the community, 
>>> including the developer hours coming from Well-Typed, Haskell 
>>> Foundation/Haskell.org, Obsidian Systems, and the Haskell Language Server 
>>> folks. I'm glad we could work together!
>>> 
>>> For a full set of release notes, see 
>>> https://github.com/haskell/cabal/blob/master/release-notes/Cabal-3.6.0.0.md.
>>>  If you have issues, we'd love to hear about there here: 
>>> https://github.com/haskell/cabal/issues.
>>> 
>>> Happy hacking!
>>> 
>>> Emily
>>> 
>>> ___
>>> Glasgow-haskell-users mailing list
>>> Glasgow-haskell-users@haskell.org
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users
> 
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: [ANN] Cabal-3.6.0.0

2021-08-14 Thread Steven Smith
Thank you! Will the release be posted to the haskell downloads site?

https://downloads.haskell.org/~cabal/

Several package managers (e.g. MacPorts) build using this site.


> On Aug 5, 2021, at 5:27 PM, Emily Pillmore  wrote:
> 
> Hello All,
> 
> The Cabal team is excited to announce the release of Cabal-3.6.0.0!
> 
> 
> This is the fourth release of the 3.0 release series, and highlights include 
> support for GHC 9.2, as well as many new code quality improvements + 
> organization work on the repo itself.
> 
> For future plans, we've announced a State of the Cabal post which describes 
> where we want to take the library and executable over the next year or two 
> here: https://discourse.haskell.org/t/state-of-the-cabal-q1-q2-2021/2548 
> .
> 
> If you'd like to get involved, feel free to contact anyone from the 
> maintainer team directly, or drop by #hackage on libera.chat 
>  to speak with us. Additionally, as we continue to 
> modernize Cabal, I'd like to highlight and show appreciation for all of the 
> help we've gotten from the community, including the developer hours coming 
> from Well-Typed, Haskell Foundation/Haskell.org 
> , Obsidian Systems, and the Haskell Language 
> Server folks. I'm glad we could work together!
> 
> For a full set of release notes, see 
> https://github.com/haskell/cabal/blob/master/release-notes/Cabal-3.6.0.0.md 
> .
>  If you have issues, we'd love to hear about there here: 
> https://github.com/haskell/cabal/issues 
> .
> 
> Happy hacking!
> 
> Emily
> 
> ___
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users



smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


GHC Full Bootstrap from Source on macOS

2020-01-19 Thread Steven Smith
Is there a guide or script to build ghc from source (not the prebuilt binary)?

At MacPorts we’re running into issues on macOS Catalina 10.15 with the 
bootstrapped-from-prebuilt ghc. See https://trac.macports.org/ticket/59467 .

It would preferable and probably more robust to be able to bootstrap everything 
from source, and highly preferable to be able to do this with a clang compiler 
of choice.

smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


GHC 8.8.2 Bootstrap Build Fails on macOS Catalina 10.15, undeclared identifier 'TAG_MASK'

2020-01-17 Thread Steven Smith
I’m trying to upgrade the MacPorts ghc install to the latest 8.8.2.

The build fails with:
> error: use of undeclared identifier 'TAG_MASK'
> :info:build return (StgWord)p & TAG_MASK;


This is an error observed with previous ghc versions and on other systems, so I 
do not believe it is macOS-specific.  Also, the MacPorts build process simply 
follows the ghc Build & Install instructions: 
https://github.com/ghc/ghc/blob/master/README.md#building--installing

Is there a simple fix by adding an extra flag somewhere?

Logs:

> :info:build In file included from compiler/ghci/keepCAFsForGHCi.c:1:0: error: 
> :info:build In file included from includes/Rts.h:191:0: error: 
> :info:build includes/rts/storage/ClosureMacros.h:211:25: error:
> :info:build  error: use of undeclared identifier 'TAG_MASK'
> :info:build return (StgWord)p & TAG_MASK;
> :info:build ^
> :info:build |
> :info:build 211 | return (StgWord)p & TAG_MASK;
> :info:build | ^
> :info:build includes/rts/storage/ClosureMacros.h:217:40: error:
> :info:build  error: use of undeclared identifier 'TAG_MASK'
> :info:build return (StgClosure*)((StgWord)p & ~TAG_MASK);
> :info:build^
> :info:build |
> :info:build 217 | return (StgClosure*)((StgWord)p & ~TAG_MASK);
> :info:build |^
> :info:build includes/rts/storage/ClosureMacros.h:223:46: error:
> :info:build  error: use of undeclared identifier 'TAG_MASK'
> :info:build return (const StgClosure*)((StgWord)p & ~TAG_MASK);
> :info:build  ^


smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: GHC 8.8.1 Fails to Build on macOS with Native clang 11.0.0

2019-12-23 Thread Steven Smith
> I’m trying to update the MacPorts ghc port. The build isn’t getting the 
> TAG_MASK #define for some reason, which breaks the build.


I see this is a known issue:

https://gitlab.haskell.org/ghc/ghc/issues/17146




smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


downloads.haskell.org server is misconfigured, ignores Accept-Encoding, prevents update checks

2019-12-23 Thread Steven Smith
The downloads.haskell.org server is misconfigured. It's always gzipping its 
response content, ignoring the Accept-Encoding headers. Even if you set 
Accept-Encoding: identity the server sends a compressed response. 

This prevents automated version update checking.

For details, see:

https://lists.macports.org/pipermail/macports-dev/2019-December/041581.html 




smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


GHC 8.8.1 Fails to Build on macOS with Native clang 11.0.0

2019-12-23 Thread Steven Smith
I’m trying to update the MacPorts ghc port. The build isn’t getting the 
TAG_MASK #define for some reason, which breaks the build. The previous release 
ghc 8.6.5 builds successfully.

I’m following the simple build instructions here: 
https://github.com/ghc/ghc#building--installing 


# Use prebuilt bootstrap ghc binary
export 
GHC='/opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/bootstrap/bin/ghc’
./boot
./configure
make -j7

Error:

> Creating compiler/stage2/build/Config.hs ... 
> 
> In file included from compiler/parser/cutils.c:6:0: error: 
> 
> In file included from includes/Rts.h:191:0: error: 
> 
> includes/rts/storage/ClosureMacros.h:211:25: error:
>  error: use of undeclared identifier 'TAG_MASK'
> return (StgWord)p & TAG_MASK;
> ^
> |
> 211 | return (StgWord)p & TAG_MASK;
> | ^
> 
…
> make[1]: *** [compiler/stage1/build/cbits/genSym.o] Error 1
> < (18 samples), 150M in use, 0.001 INIT (0.004 elapsed), 2.217 MUT (2.637 
> elapsed), 1.677 GC (1.738 elapsed) :ghc>>
> make: *** [all] Error 2


I’m using the macOS native clang:

$ which clang
/usr/bin/clang
$ clang --version
Apple clang version 11.0.0 (clang-1100.0.33.16)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users