Re: A macOS static linking mystery

2022-08-09 Thread Brandon Allbery
One peculiarity with the ordering is that linkers only search static archives for existing undefined references. If the reference to `Cffi` actually comes first, then nothing should be required from it yet and *it shouldn't be linked* (absent options like GNU ld's `--whole-archive`). This said,

Re: A macOS static linking mystery

2022-08-09 Thread Ryan Scott
I believe I've figured out what is happening here. This will take a bit of explanation, so bear with me. First, it's important to note that this behavior depends on whether your GHC was configured with the `--with-system-libffi` flag or not. If it was configured with this flag, then GHC will

Re: [ANNOUNCE] GHC 9.4.1 is now available

2022-08-09 Thread Ben Gamari
Ben Gamari writes: > The GHC developers are very pleased to announce the availability of GHC > 9.4.1. Binary distributions, source distributions, and documentation are > available at downloads.haskell.org: > > https://downloads.haskell.org/ghc/9.4.1 > Hi all, Due to an unfortunate packaging

Re: ghc doesn't work after installing 9.4.1 on my Mac

2022-08-09 Thread Shayne Fletcher
Known issue George. See e.g. https://gitlab.haskell.org/ghc/ghc/-/issues/21985 On Tue, Aug 9, 2022, 4:33 PM George Colpitts wrote: > Unfortunately ghc doesn't work after installing 9.4.1 on my Mac. Does it > work for others? > > After the install finishes when I do the following: > > $ ghc

ghc doesn't work after installing 9.4.1 on my Mac

2022-08-09 Thread George Colpitts
Unfortunately ghc doesn't work after installing 9.4.1 on my Mac. Does it work for others? After the install finishes when I do the following: $ ghc --version bash: /usr/local/bin/ghc: Permission denied $ sudo chmod +x /usr/local/bin/ghc $ghc --version /usr/local/bin/ghc: line 1: exec: : not

Re: A macOS static linking mystery

2022-08-09 Thread Ryan Scott
No, I'm using macOS 10.15.7 (BuildVersion 19H2) on an x86_64 machine. Ryan ___ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Re: A macOS static linking mystery

2022-08-09 Thread Carter Schonwald
i think brandon is also referring to the Rosetta stuff on Arm Macs, are you using one of those? On Mon, Aug 8, 2022 at 8:00 PM Brandon Allbery wrote: > https://developer.apple.com/forums/thread/692383 is what I'm thinking > of, but in this case there would still be library references shown by >