Anyone have GHC 7.8.3 working on OSX Yosemite?

66 views
Skip to first unread message

Tim Watson

unread,
Dec 7, 2014, 3:19:12 PM12/7/14
to cloud-haskel...@googlegroups.com
Since upgrading nothing seems to work for me, everything from build to runtime seems to be segfaulting and I'm proving a total pita trying to get things re-installed. Maybe my brew/gcc toolchain needs to be rebuilt? Anyone else done this upgrade and had problems?

Tim Watson

unread,
Dec 7, 2014, 5:31:00 PM12/7/14
to Carter Schonwald, cloud-haskel...@googlegroups.com
Hi Carter,

Sorry yeah, considering I'm a seasoned question answering person, that was a terrible ask!

ghcformacosx.github.io fails for me:

<snip>

t4@iske:bin $ ghc

dyld: Library not loaded: @rpath/libffi.dylib

  Referenced from: /Users/t4/Library/Haskell/Versions/7.8.3-x86_64/lib/ghc-7.8.3/bin/ghc

  Reason: Incompatible library version: ghc requires version 7.0.0 or later, but libffi.dylib provides version 1.0.0

Trace/BPT trap: 5

</snip>

However I think I've figured out what's up, various bits that were built back on mavericks (or even mountain lion!?) via homebrew are probably gorked now I've upgraded. Re-building my gcc tool chain now and will attempt to recompile 7.8.3 from source.


Cheers,

Tim


On 7 December 2014 at 21:15, Carter Schonwald <carter.s...@gmail.com> wrote:
1) if you dont share pastes of the error messages no one can help you
2) what does ghc --info say?
3) what does clang --version  say?
4) what does gcc --version say?
5) have you tried using the GHC  For OS X app bundle? 

On Sun, Dec 7, 2014 at 3:19 PM, Tim Watson <watson....@gmail.com> wrote:
Since upgrading nothing seems to work for me, everything from build to runtime seems to be segfaulting and I'm proving a total pita trying to get things re-installed. Maybe my brew/gcc toolchain needs to be rebuilt? Anyone else done this upgrade and had problems?

--
You received this message because you are subscribed to the Google Groups "cloud-haskell-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-haskell-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Carter Schonwald

unread,
Dec 7, 2014, 5:31:21 PM12/7/14
to Tim Watson, cloud-haskel...@googlegroups.com
1) if you dont share pastes of the error messages no one can help you
2) what does ghc --info say?
3) what does clang --version  say?
4) what does gcc --version say?
5) have you tried using the GHC  For OS X app bundle? 
On Sun, Dec 7, 2014 at 3:19 PM, Tim Watson <watson....@gmail.com> wrote:
Since upgrading nothing seems to work for me, everything from build to runtime seems to be segfaulting and I'm proving a total pita trying to get things re-installed. Maybe my brew/gcc toolchain needs to be rebuilt? Anyone else done this upgrade and had problems?

--

Boespflug, Mathieu

unread,
Dec 7, 2014, 5:31:21 PM12/7/14
to Tim Watson, cloud-haskel...@googlegroups.com
build and runtime of distributed-process and tests, of GHC, or of
unrelated Haskell programs?
--
Mathieu Boespflug
Founder at http://tweag.io.

Tim Watson

unread,
Dec 7, 2014, 5:37:22 PM12/7/14
to cloud-haskel...@googlegroups.com
Nah, my whole haskell tool chain is borked. The only ghc that's building properly is 7.4.2 but all (and I do mean all) compiled programs segfault when run. The other two ghc installs aren't working at all.

Going to rebuild from sources and I suspect since upgrading to yosemite that I need to rebuild/reinstall bunch of stuff via homebrew (like the brew supplied gcc tool chain and a bunch of library dependencies). Certainly the brew installed GCC I was using for the CPP was broken, since running that also complains about a similar dynamic loading error:

t4@iske:ghc-7.8.3 $ /opt/local/bin/gcc

dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib

  Referenced from: /opt/local/bin/gcc

  Reason: Incompatible library version: gcc requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0

Trace/BPT trap: 5 

Carter Schonwald

unread,
Dec 8, 2014, 6:54:20 AM12/8/14
to Tim Watson, cloud-haskel...@googlegroups.com
this is not the right mailing list for getting support on how your macports + ghc setup on 10.10 doesnt work. 

i'd suggest opening a ticket on GHC for OS X github repo to get some help there. 

--

Antonio Nikishaev

unread,
Dec 8, 2014, 9:36:34 AM12/8/14
to Tim Watson, cloud-haskel...@googlegroups.com
> On 8 Dec 2014, at 02:37, Tim Watson <watson....@gmail.com> wrote:
>
> Going to rebuild from sources and I suspect since upgrading to yosemite that I need to rebuild/reinstall bunch of stuff via homebrew (like the brew supplied gcc tool chain and a bunch of library dependencies). Certainly the brew installed GCC I was using for the CPP was broken, since running that also complains about a similar dynamic loading error:
>
> t4@iske:ghc-7.8.3 $ /opt/local/bin/gcc

Are you sure it's brew? Brew doesn't install anything to /opt.

Also, ‘brew install ghc’ should get you going without any problems. (And you may want to nuke /opt and /usr/local partly before that)




-- lelf



Carter Schonwald

unread,
Dec 9, 2014, 4:13:39 AM12/9/14
to Antonio Nikishaev, Tim Watson, cloud-haskel...@googlegroups.com

I tend to not recommend brew based ghc because it hasn't been well maintained historically.  But if it works great.  Opt has macports usually.  Ghc for osx is what I like to recommend andthe maintainer is very responsive. 

Reply all
Reply to author
Forward
0 new messages