Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

New formula: GHC 6.12.1 #815

Closed
mietek opened this issue Feb 23, 2010 · 15 comments
Closed

New formula: GHC 6.12.1 #815

mietek opened this issue Feb 23, 2010 · 15 comments

Comments

@mietek
Copy link
Contributor

mietek commented Feb 23, 2010

GHC is a state-of-the-art open source compiler and interactive environment for the functional language Haskell.

This formula uses the official GHC binary package for Mac OS X.

http://github.com/mietek/homebrew/blob/master/Library/Formula/ghc.rb

@mkhl
Copy link
Contributor

mkhl commented Feb 23, 2010

As much as I applaud your effort:

  1. The GHC team advise users to install the Haskell Platform instead, which especially makes sense since lots of packages were moved out of GHC itself and onto for 6.12. Is it wise to still use the non-platform, no-batteries-included version with a smaller "set of libraries that are known to work together?"
  2. The package is marked as an installer for 10.5 on i386, and as far as I recall the 64 bit problems of GHC haven't been solved as of 6.12.1, so will this GHC even work (produce usable binaries) on x86_64 Snow Leopard machines?

@mietek
Copy link
Contributor Author

mietek commented Feb 23, 2010

Thanks for the kind words. To answer your questions:

  1. The Haskell Platform currently only provides GHC 6.10.4, and there's been a number of interesting developments to GHC since then. With a working cabal command-line tool (New formula: Cabal 0.8.0 #816), it's easy to install any Haskell package, and to brew up a Platform of your own.
  2. GHC on OS X currently does not emit 64-bit code; it only generates 32-bit binaries, which work fine on my x86_64 Snow Leopard machine. The earlier, more serious problem has been fixed.

@mkhl
Copy link
Contributor

mkhl commented Feb 24, 2010

Thanks for your answers, having cabal-install available and #3400 fixed upstream definitely alleviate my concerns.

@mxcl
Copy link
Contributor

mxcl commented Feb 24, 2010

Looks great. We are starting to prefer binary downloads for large projects, so unless there is good reason, we'll merge this one rather than the other source based formula in the issue tracker.

One thing, you should use the parametised versions of safe_system and system. Otherwise any paths with spaces in will break this build. Thanks.

@mietek
Copy link
Contributor Author

mietek commented Feb 24, 2010

Thanks for the comments. I think using the prebuilt binary makes a lot of sense for GHC, since the build process takes a fair amount of time and space (more than 1GB of RAM).

I updated the formula to use parameterized versions of system calls (2b2ae21b0b75d90753eccc7e8b7933387a38b1ed).

@sudish
Copy link
Contributor

sudish commented Mar 10, 2010

This formula needs a "skip_clean: 'lib'" line or ghci will fail to run as follows:

% ghci
GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
ghc: 
/usr/local/Cellar/ghc/6.12.1/lib/ghc/base-4.2.0.0/HSbase-4.2.0.0.o: unknown symbol `_environ'
Loading package base ... linking ... ghc: unable to load package `base'

Once we stop stripping the object files in lib/, ghci works just fine:

% ghci
GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> 

Thanks!

@mietek
Copy link
Contributor Author

mietek commented Mar 10, 2010

Indeed it does. I pushed a fix to my fork (824fdfa).

@mxcl
Copy link
Contributor

mxcl commented Mar 10, 2010

Pushed 824fdfa

@QwertyManiac
Copy link

GHC now supports 64-bit on OSX, could the formula be updated to use an appropriate arch?

@Sharpie
Copy link
Contributor

Sharpie commented Apr 30, 2011

@QwertyManiac: With the update to GHC 7.0.3, brew install --64bit ghc gives me a GHC that builds 64-bit binaries. Is there something beyond this that you wanted?

@QwertyManiac
Copy link

Nope, that's it @Sharpie. I did not know of the explicit --64bit handle (could that be made automatic if unspecified?).

@Sharpie
Copy link
Contributor

Sharpie commented May 1, 2011

@QwertyManiac It appears that the 64 bit version is flagged as experimental---it won't become a default until the community considers it stable and battle-tested.

The brew options command can help you discover which switches a given formula will react to during installation. Just run brew options <formula name> to get a list of available choices.

@QwertyManiac
Copy link

@Sharpie - Got it, thanks for the help! :)

@mietek
Copy link
Contributor Author

mietek commented Aug 13, 2011

I updated the GHC formula to 7.2.1 (2dc4aff) and submitted a pull request (#6979).

@adamv
Copy link
Contributor

adamv commented Aug 13, 2011

No need to mention it in this old closed thread; we'll see the new pull requests.

traymond pushed a commit to traymond/homebrew that referenced this issue Jul 22, 2014
R 3.1.0 (codename "Spring Dance") was released April 10, 2014.

More information at:
https://stat.ethz.ch/pipermail/r-announce/2014/000572.html

Closes Homebrew#815.
Closes Homebrew#821.
joshua-rutherford pushed a commit to joshua-rutherford/homebrew that referenced this issue Dec 15, 2015
Bump.

Release resolves a security issue:
http://www.gnutls.org/security.html#GNUTLS-SA-2015-2

Closes Homebrew#815.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants