[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-cafe
Subject:    Re: [Haskell-cafe] ghc doesn't work after installing 9.4.1 on my Mac
From:       Shayne Fletcher <shayne.fletcher.50 () gmail ! com>
Date:       2022-08-09 22:40:48
Message-ID: CAMsAzy9YZOpQdGrRQSwYhnJ=CQyx1pgRNBvJp71YvvRBiXJy9A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Known issue George. See e.g.
https://gitlab.haskell.org/ghc/ghc/-/issues/21985

On Tue, Aug 9, 2022, 4:33 PM George Colpitts <george.colpitts@gmail.com>
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 --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 found
> $ cat /usr/local/bin/ghc
> exec "$executablename" -B"$libdir" ${1+"$@"}
> $ cat /usr/local/bin/ghc-9.4.1
> #!/bin/sh
> exedir="/usr/local/lib/ghc-9.4.1/bin"
> exeprog="ghc-9.4.1"
> executablename="/usr/local/lib/ghc-9.4.1/bin/ghc-9.4.1"
> bindir="/usr/local/bin"
> libdir="/usr/local/lib/ghc-9.4.1/lib"
> docdir="/usr/local/share/doc/ghc-9.4.1"
> includedir="/usr/local/include"
> 
> exec "$executablename" -B"$libdir" ${1+"$@"}
> 
> 
> Thanks
> George
> 
> 
> 
> On Sun, Aug 7, 2022 at 6:30 PM Ben Gamari <ben@well-typed.com> wrote:
> 
> > 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
> > 
> > This release includes:
> > 
> > - A new profiling mode, `-fprof-late`, which adds automatic cost-center
> > annotations to all top-level functions *after* Core optimisation has
> > run. This provides informative profiles while interfering
> > significantly less with GHC's aggressive optimisations, making it
> > easier to understand the performance of programs which depend upon
> > simplification..
> > 
> > - A variety of plugin improvements including the introduction of a new
> > plugin type, *defaulting plugins*, and the ability for typechecking
> > plugins to rewrite type-families.
> > 
> > - An improved constructed product result analysis, allowing unboxing of
> > nested structures, and a new boxity analysis, leading to less reboxing.
> > 
> > - Introduction of a tag-check elision optimisation, bringing
> > significant performance improvements in strict programs.
> > 
> > - Generalisation of a variety of primitive types to be levity
> > polymorphic. Consequently, the `ArrayArray#` type can at long last be
> > retired, replaced by standard `Array#`.
> > 
> > - Introduction of the `\cases` syntax from [GHC proposal 0302].
> > 
> > - A complete overhaul of GHC's Windows support. This includes a
> > migration to a fully Clang-based C toolchain, a deep refactoring of
> > the linker, and many fixes in WinIO.
> > 
> > - Support for multiple home packages, significantly improving support
> > in IDEs and other tools for multi-package projects.
> > 
> > - A refactoring of GHC's error message infrastructure, allowing GHC to
> > provide diagnostic information to downstream consumers as structured
> > data, greatly easing IDE support.
> > 
> > - Significant compile-time improvements to runtime and memory
> > consumption.
> > 
> > - On overhaul of our packaging infrastructure, allowing full
> > traceability of release artifacts and more reliable binary
> > distributions.
> > 
> > - Reintroduction of deep subsumption (which was previously dropped with
> > the
> > *simplified subsumption* change) as a language extension.
> > 
> > - ... and much more. See the [release notes] for a full accounting.
> > 
> > Note that, as 9.4.1 is the first release for which the released artifacts
> > will
> > all be generated by our Hadrian build system, it is possible that there
> > will be
> > packaging issues. If you enounter trouble while using a binary
> > distribution,
> > please open a [ticket]. Likewise, if you are a downstream packager, do
> > consider
> > migrating to [Hadrian] to run your build; the Hadrian build system can be
> > built
> > using `cabal-install`, `stack`, or the in-tree [bootstrap script]. See
> > the accompanying
> > [blog post] for details on migrating packaging to Hadrian.
> > 
> > We would like to thank Microsoft Azure, GitHub, IOG, the Zw3rk stake pool,
> > Well-Typed, Tweag I/O, Serokell, Equinix, SimSpace, Haskell Foundation,
> > and
> > other anonymous contributors whose on-going financial and in-kind support
> > has
> > facilitated GHC maintenance and release management over the years.
> > Finally,
> > this release would not have been possible without the hundreds of
> > open-source
> > contributors whose work comprise this release.
> > 
> > As always, do give this release a try and open a [ticket] if you see
> > anything amiss.
> > 
> > Happy testing,
> > 
> > - Ben
> > 
> > 
> > [GHC proposal 0302]:
> > https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0302-cases.rst
> >  [ticket]: https://gitlab.haskell.org/ghc/ghc/-/issues/new
> > [bootstrap script]:
> > https://gitlab.haskell.org/ghc/ghc/-/blob/e2520df3fffa0cf22fb19c5fb872832d11c07d35/hadrian/bootstrap/README.md
> >  [Hadrian]:
> > https://gitlab.haskell.org/ghc/ghc/-/blob/e2520df3fffa0cf22fb19c5fb872832d11c07d35/hadrian
> >  [release notes]:
> > https://downloads.haskell.org/~ghc/9.4.1/docs/users_guide/9.4.1-notes.html
> > [blog post]:
> > https://www.haskell.org/ghc/blog/20220805-make-to-hadrian.html
> > _______________________________________________
> > ghc-devs mailing list
> > ghc-devs@haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
> > 
> _______________________________________________
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
> 


[Attachment #5 (text/html)]

<div dir="auto">Known issue George. See e.g.  <a \
href="https://gitlab.haskell.org/ghc/ghc/-/issues/21985">https://gitlab.haskell.org/ghc/ghc/-/issues/21985</a></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 9, 2022, 4:33 PM \
George Colpitts &lt;<a \
href="mailto:george.colpitts@gmail.com">george.colpitts@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div \
class="gmail_default" style="font-family:times new \
roman,serif;font-size:large">Unfortunately  ghc doesn&#39;t work after installing \
9.4.1 on my Mac. Does it work for others?</div><div class="gmail_default" \
style="font-family:times new roman,serif;font-size:large"><br></div><div \
class="gmail_default" style="font-family:times new roman,serif;font-size:large">After \
the install finishes when I do the following:</div><div class="gmail_default" \
style="font-family:times new roman,serif;font-size:large"><br></div></div><blockquote \
style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div \
class="gmail_default" style="font-family:times new roman,serif;font-size:large">$ ghc \
--version  </div><div class="gmail_default" style="font-family:times new \
roman,serif;font-size:large">bash: /usr/local/bin/ghc: Permission denied</div><div \
class="gmail_default" style="font-family:times new roman,serif;font-size:large">$  \
sudo chmod +x /usr/local/bin/ghc</div><div class="gmail_default" \
style="font-family:times new roman,serif;font-size:large">$ghc \
--version<br>/usr/local/bin/ghc: line 1: exec: : not found<br>$ cat \
/usr/local/bin/ghc<br>exec &quot;$executablename&quot; -B&quot;$libdir&quot; \
${1+&quot;$@&quot;}<br></div><div class="gmail_default" style="font-family:times new \
roman,serif;font-size:large">$ cat \
/usr/local/bin/ghc-9.4.1<br>#!/bin/sh<br>exedir=&quot;/usr/local/lib/ghc-9.4.1/bin&quo \
t;<br>exeprog=&quot;ghc-9.4.1&quot;<br>executablename=&quot;/usr/local/lib/ghc-9.4.1/b \
in/ghc-9.4.1&quot;<br>bindir=&quot;/usr/local/bin&quot;<br>libdir=&quot;/usr/local/lib \
/ghc-9.4.1/lib&quot;<br>docdir=&quot;/usr/local/share/doc/ghc-9.4.1&quot;<br>includedir=&quot;/usr/local/include&quot;<br><br>exec \
&quot;$executablename&quot; -B&quot;$libdir&quot; ${1+&quot;$@&quot;}<br></div><div \
class="gmail_default" style="font-family:times new \
roman,serif;font-size:large"><br></div><div class="gmail_default" \
style="font-family:times new \
roman,serif;font-size:large"><br></div></div></blockquote><span \
style="font-family:&quot;times new roman&quot;,serif;font-size:large"><span \
class="gmail_default" style="font-family:&quot;times new \
roman&quot;,serif;font-size:large">Thanks  </span></span><div><span \
style="font-family:&quot;times new roman&quot;,serif;font-size:large"><span \
class="gmail_default" style="font-family:&quot;times new \
roman&quot;,serif;font-size:large">George</span></span></div><div><span \
style="font-family:&quot;times new roman&quot;,serif;font-size:large"><span \
class="gmail_default" style="font-family:&quot;times new \
roman&quot;,serif;font-size:large"></span>  </span><br><br><div><font face="times new \
roman, serif" size="4"><span class="gmail_default" style="font-family:&quot;times new \
roman&quot;,serif;font-size:large"><br></span></font></div><blockquote \
style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="times new roman, \
serif" size="4"><span class="gmail_default" style="font-family:&quot;times new \
roman&quot;,serif;font-size:large"></span></font></div></blockquote><div><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 7, 2022 at 6:30 PM \
Ben Gamari &lt;<a href="mailto:ben@well-typed.com" target="_blank" \
rel="noreferrer">ben@well-typed.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">The GHC developers are very pleased to announce \
the availability of GHC<br> 9.4.1. Binary distributions, source distributions, and \
documentation are<br> available at <a href="http://downloads.haskell.org" \
rel="noreferrer noreferrer" target="_blank">downloads.haskell.org</a>:<br> <br>
      <a href="https://downloads.haskell.org/ghc/9.4.1" rel="noreferrer noreferrer" \
target="_blank">https://downloads.haskell.org/ghc/9.4.1</a><br> <br>
This release includes:<br>
<br>
  - A new profiling mode, `-fprof-late`, which adds automatic cost-center<br>
     annotations to all top-level functions *after* Core optimisation has<br>
     run. This provides informative profiles while interfering<br>
     significantly less with GHC&#39;s aggressive optimisations, making it<br>
     easier to understand the performance of programs which depend upon<br>
     simplification..<br>
<br>
  - A variety of plugin improvements including the introduction of a new<br>
     plugin type, *defaulting plugins*, and the ability for typechecking<br>
     plugins to rewrite type-families.<br>
<br>
  - An improved constructed product result analysis, allowing unboxing of<br>
     nested structures, and a new boxity analysis, leading to less reboxing.<br>
<br>
  - Introduction of a tag-check elision optimisation, bringing<br>
     significant performance improvements in strict programs.<br>
<br>
  - Generalisation of a variety of primitive types to be levity<br>
     polymorphic. Consequently, the `ArrayArray#` type can at long last be<br>
     retired, replaced by standard `Array#`.<br>
<br>
  - Introduction of the `\cases` syntax from [GHC proposal 0302].<br>
<br>
  - A complete overhaul of GHC&#39;s Windows support. This includes a<br>
     migration to a fully Clang-based C toolchain, a deep refactoring of<br>
     the linker, and many fixes in WinIO.<br>
<br>
  - Support for multiple home packages, significantly improving support<br>
     in IDEs and other tools for multi-package projects.<br>
<br>
  - A refactoring of GHC&#39;s error message infrastructure, allowing GHC to<br>
     provide diagnostic information to downstream consumers as structured<br>
     data, greatly easing IDE support.<br>
<br>
  - Significant compile-time improvements to runtime and memory consumption.<br>
<br>
  - On overhaul of our packaging infrastructure, allowing full<br>
     traceability of release artifacts and more reliable binary<br>
     distributions.<br>
<br>
  - Reintroduction of deep subsumption (which was previously dropped with the<br>
     *simplified subsumption* change) as a language extension.<br>
<br>
  - ... and much more. See the [release notes] for a full accounting.<br>
<br>
Note that, as 9.4.1 is the first release for which the released artifacts will<br>
all be generated by our Hadrian build system, it is possible that there will be<br>
packaging issues. If you enounter trouble while using a binary distribution,<br>
please open a [ticket]. Likewise, if you are a downstream packager, do consider<br>
migrating to [Hadrian] to run your build; the Hadrian build system can be built<br>
using `cabal-install`, `stack`, or the in-tree [bootstrap script]. See the \
accompanying<br> [blog post] for details on migrating packaging to Hadrian.<br>
<br>
We would like to thank Microsoft Azure, GitHub, IOG, the Zw3rk stake pool,<br>
Well-Typed, Tweag I/O, Serokell, Equinix, SimSpace, Haskell Foundation, and<br>
other anonymous contributors whose on-going financial and in-kind support has<br>
facilitated GHC maintenance and release management over the years. Finally,<br>
this release would not have been possible without the hundreds of open-source<br>
contributors whose work comprise this release.<br>
<br>
As always, do give this release a try and open a [ticket] if you see<br>
anything amiss.<br>
<br>
Happy testing,<br>
<br>
- Ben<br>
<br>
<br>
[GHC proposal 0302]: <a \
href="https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0302-cases.rst" \
rel="noreferrer noreferrer" \
target="_blank">https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0302-cases.rst</a> \
<br> [ticket]: <a href="https://gitlab.haskell.org/ghc/ghc/-/issues/new" \
rel="noreferrer noreferrer" \
target="_blank">https://gitlab.haskell.org/ghc/ghc/-/issues/new</a><br> [bootstrap \
script]: <a href="https://gitlab.haskell.org/ghc/ghc/-/blob/e2520df3fffa0cf22fb19c5fb872832d11c07d35/hadrian/bootstrap/README.md" \
rel="noreferrer noreferrer" \
target="_blank">https://gitlab.haskell.org/ghc/ghc/-/blob/e2520df3fffa0cf22fb19c5fb872832d11c07d35/hadrian/bootstrap/README.md</a><br>
 [Hadrian]: <a href="https://gitlab.haskell.org/ghc/ghc/-/blob/e2520df3fffa0cf22fb19c5fb872832d11c07d35/hadrian" \
rel="noreferrer noreferrer" \
target="_blank">https://gitlab.haskell.org/ghc/ghc/-/blob/e2520df3fffa0cf22fb19c5fb872832d11c07d35/hadrian</a><br>
 [release notes]: <a \
href="https://downloads.haskell.org/~ghc/9.4.1/docs/users_guide/9.4.1-notes.html" \
rel="noreferrer noreferrer" \
target="_blank">https://downloads.haskell.org/~ghc/9.4.1/docs/users_guide/9.4.1-notes.html</a><br>
 [blog post]: <a href="https://www.haskell.org/ghc/blog/20220805-make-to-hadrian.html" \
rel="noreferrer noreferrer" \
target="_blank">https://www.haskell.org/ghc/blog/20220805-make-to-hadrian.html</a><br>
 _______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank" \
rel="noreferrer">ghc-devs@haskell.org</a><br> <a \
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer \
noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
 </blockquote></div></div></div></div>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank" \
rel="noreferrer">ghc-devs@haskell.org</a><br> <a \
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer \
noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
 </blockquote></div>


[Attachment #6 (text/plain)]

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic