-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
haskell-platform fails on mountain lion #13519
Comments
Can you try |
same |
Same here. |
@dysinger tweeted:
|
This was a fix for Ubuntu (Linux) - the same thing may or may not work on Mac. It's a temporary workaround also. I'll try the homebrew install today and see if it works. |
has anyone found a solution yet? |
no. I am banging my head on this today. haskell platform requires ghc 7.4.1 anyway. why is the recipe installing binary package of 7.4.2 and using a workaround flag to compile the haskell platform from source? |
IMHO you should either compile BOTH ghc 7.4.1 & haskell platform 2012.2.0.0 from source or use the binary packages. Using a mix of the two with 7.4.2 instead of 7.4.1 is just asked for problems. |
I am not sure that a build script that takes several hours is what On 29.07.2012, at 01:17, Tim Dysinger
|
As a workaround, on Mountain Lion, ghc 7.4.1 + haskell-platform 2012.2.0.0 worked for me:
|
If people can agree on the preferred versions, then someone should make a pull request to get things straightened out. |
same problem |
Same problem to me |
Let's pause a minute on this. I just installed the binary package of 7.4.1 w/ haskell platform 2012.2.0.0 on my mac. I had some problems last night & this morning though. I am building GHC & HP from scratch right now to see if that fixes it. The binaries that exist were for Lion (not Mt Lion) and they switch the GCC up a bit in Mt. Lion. My hunch is that everything is not perfect with using the Lion binaries for GHC. |
More later today. I can do the patch/pull request tonight. It might require 1-2 hours of compiling though unless we can host a tarball somewhere. GHC is a lengthy build. |
@tkho Thanks for your suggestion. that gave me a good starting point. Actually it could not find the commit you suggested.
|
@tkho I'd like to say thanks too. It worked for me. |
Hey, that worked for me too, but only after I removed already installed ghc. Thanks. |
I don't think you'll be happy with it though. I had major bugs yesterday & today from the binary GHC package. You may or may not be digging into concurrent haskell enough to see them but they are there with the binaries. If it stays as is, I just wont use the homebrew recipe. |
Make a small reproducible error case and explain exactly how to use it. Once we can verify the problem, then we will adjust the ghc formula as necessary. |
Here's my final script that completely bootstraps & compiles haskell from scratch on Mtn Lion using the new llvm gcc. https://gist.github.com/3211447 This version works great with the above project. |
how long does it take to compile with this script? what kind of machine are you on? thanks for the script. will try it should i run into any issues with the brew we still need a more permanent solution than removing ghc and then installing with llvm. @dysinger are you going to submit a pull-request with your install script then? On Tuesday, July 31, 2012 at 12:59 AM, Tim Dysinger wrote:
|
I don't know. My script takes about 1+ hours on a new 4core macbook air 13" w/ 8gb ram. That may be "too much" for some people. I spend a lot of time on Haskell development so 1hr+ is nothing to me to make sure that it's correct & built for my mac. What do others think? |
Having a working tool you can be confident in is critical. Homebrew can bottle ghc if it has a long compile. Homebrew can fix the formulas if you can show a reproducible error that is reported upstream so it can be linked in the formula comments. The sooner that gets done, the sooner this works better for everyone. |
@dysinger It's well worth the wait. The script worked perfectly for me. Thanks! |
awesome! |
alright, i tried it as well and it worked nicely. i'd say the long compile time is worth the wait so it would be good if you made a pull request with the updated formula. On Tuesday, July 31, 2012 at 9:47 PM, Tim Dysinger wrote:
|
+1 for the PR! Thanks! |
I can work on it this weekend. If anyone gets a chance first, the script is right there (above). |
So far so good, compiled... little over an hour. Ran ghci and used cabal to install yesod. Will keep using it. Thanks! |
I converted my |
There is a Spotlight Importer for Ruby which might help you help us. Sent from my iPhone On 24.08.2012, at 17:54, 2bits notifications@github.com wrote:
|
I think there was an unexpected Homebrew update to ghc that I let overwrite my file. I'll have to recreate it because I don't back up |
Sharpie: it is a pain in the butt to bootstrap from a binary. We could build binaries for 7.4.2 on each OS X platform and then just stick it on s3 or something. The build could use that to compile GHC. This is usually what's done elsewhere. I'm doing it for SmartOS right now. |
It might just be easier if we just nudged the people that build the binaries that exist on the GHC page to just update for mountain lion. Then the recipe doesn't have to change other than paying attention to the OS X platform version and downloading the right binary. |
This sounds exactly what bottles are for. We make the formula a time consuming pain and bottle it so it only needs done once per release. |
Yeah, that's what I ment by bottling the final product. We maintain binary distributions of many things that are either tough to build right or take a long time: http://sourceforge.net/projects/machomebrew/files/Bottles GHC would fit the bill nicely as it has no dependencies outside of XCode---to there are no linker snafus to worry about.
The problem is that upstream seems to maintain only one binary version at a time so a simple update to Mountain Lion would probably break 10.6 and 10.7. What we really need are versions for Snow Leopard, Lion and Moutain Lion. |
I rewrote a new ghc.rb in #14455 following @dysinger's gist nearly exactly. The build locations were changed from 45min with 3 cores on my 8GB iMac i5 Feel free to suggest modifications. |
Where I'm at is testing my PR using the new |
Following the discussion in Homebrew#13519, ghc gets a major overhaul: * Add a subformula that installs the ghc binary like before * Use the ghc binary to build ghc from source * Force ENV['LD'] = 'ld' to stop an assertion linking with llvm * Add an option to run the testsuite. 9 unexpected fails atm * Add a `j1` for an occasional install race * Remove the patch which was fixed in two commits in Apr 2011. 47ac5d859493ae0cd8dd02e1b4848f993acc3d5c a8d4731456ac3da0a70399e4ab821a763a4c04fb Fixes Homebrew#13519
Following the discussion in Homebrew#13519, ghc gets a major overhaul: * Add a subformula that installs the ghc binary like before * Use the ghc binary to build ghc from source * Force ENV['LD'] = 'ld' to stop an assertion linking with llvm * Add an option to run the testsuite. 9 unexpected fails atm * Add a `j1` for an occasional install race * Remove the patch which was fixed in two commits in Apr 2011. 47ac5d859493ae0cd8dd02e1b4848f993acc3d5c a8d4731456ac3da0a70399e4ab821a763a4c04fb Fixes Homebrew#13519 Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Following the discussion in Homebrew#13519, ghc gets a major overhaul: * Add a subformula that installs the ghc binary like before * Use the ghc binary to build ghc from source * Force ENV['LD'] = 'ld' to stop an assertion linking with llvm * Add an option to run the testsuite. 9 unexpected fails atm * Add a `j1` for an occasional install race * Remove the patch which was fixed in two commits in Apr 2011. 47ac5d859493ae0cd8dd02e1b4848f993acc3d5c a8d4731456ac3da0a70399e4ab821a763a4c04fb Fixes Homebrew#13519 Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
https://gist.github.com/9cca3b767cd39dfceab9
brew doctor
gives no warns.The text was updated successfully, but these errors were encountered: