
Hi all, To check ticket #8139, I'm wondering whether or not I should install XCode 5 to my MacBook Air. I heard that GCC will be removed if XCode 5 is installed. I also heard that if we modify "lib/settings" of GHC 7.6.3, GHC 7.6.3 can work with clang. So, my question: how can I build GHC head with clang? Is "make maintainer-clean; perl boot; ./configure" just enough? Does "configure" automatically find clang and use it if GCC does not exist? --Kazu

Darin Morrison has a brew tap https://github.com/darinmorrison/homebrew-haskell that works, alternatively, have a build of a more recent GCC locally (i have gcc 4.8 installed ) alternatively, manuel, Luke i, and darin hacked out a way to wrap clang so 7.6 could use clang as if it were gcc. the current version lives over https://github.com/ghc-ios/ghc-ios-scripts/blob/master/clang-xcode5-wrapper...., as linked from the ghcIOS directions here http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS the simplest way might be the last in terms of extra deps to install. alternatively you can do something like brew install gcc48 or brew install apple-gcc42 (i've got 4.8 installed) cheers

Hi Carter, Thank you for your information. That is really helpful. I wrote a blog article on "Building GHC head on Mavericks with Xcode 5": http://d.hatena.ne.jp/kazu-yamamoto/20131028/1382921924 --Kazu
Darin Morrison has a brew tap https://github.com/darinmorrison/homebrew-haskell that works, alternatively, have a build of a more recent GCC locally (i have gcc 4.8 installed )
alternatively, manuel, Luke i, and darin hacked out a way to wrap clang so 7.6 could use clang as if it were gcc. the current version lives over https://github.com/ghc-ios/ghc-ios-scripts/blob/master/clang-xcode5-wrapper...., as linked from the ghcIOS directions here http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS
the simplest way might be the last in terms of extra deps to install.
alternatively you can do something like brew install gcc48 or brew install apple-gcc42 (i've got 4.8 installed)
cheers

glad I could help!
I also have my own set of directions here
https://gist.github.com/cartazio/7131371
which seems to be roughy equivalent to your directions.
On Sun, Oct 27, 2013 at 9:02 PM, Kazu Yamamoto
Hi Carter,
Thank you for your information. That is really helpful. I wrote a blog article on "Building GHC head on Mavericks with Xcode 5":
http://d.hatena.ne.jp/kazu-yamamoto/20131028/1382921924
--Kazu
Darin Morrison has a brew tap https://github.com/darinmorrison/homebrew-haskell that works, alternatively, have a build of a more recent GCC locally (i have gcc 4.8 installed )
alternatively, manuel, Luke i, and darin hacked out a way to wrap clang so 7.6 could use clang as if it were gcc. the current version lives over
https://github.com/ghc-ios/ghc-ios-scripts/blob/master/clang-xcode5-wrapper.... ,
as linked from the ghcIOS directions here http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS
the simplest way might be the last in terms of extra deps to install.
alternatively you can do something like brew install gcc48 or brew install apple-gcc42 (i've got 4.8 installed)
cheers
participants (2)
-
Carter Schonwald
-
Kazu Yamamoto