
Hey all: I've drafted some hopefully cleaner Mac build directions and I'd love some feedback on them Nb: I think I forgot to mention the cabal install hscolour step, I'll add that -Carter

Woops forgot to link them this morning
https://gist.github.com/cartazio/32038db09222a2aac767cb5c03b406c6
Feedback would be appreciated.
And still need to mention cabal install hscolour :)
Pardon the noise and feedback would be appreciated!
On Thursday, April 28, 2016, Carter Schonwald
Hey all: I've drafted some hopefully cleaner Mac build directions and I'd love some feedback on them
Nb: I think I forgot to mention the cabal install hscolour step, I'll add that
-Carter

Thanks for working on this!
fwiw, my comments:
1. It would be good to provide a link to the current doc so we can
compare with that.
2. Steps 12, 13, 14 and 15 are only necessary if you are building from
a fresh git checkout, not necessary if you're building from source tree
tarball from a release candidate , right?
3. If your path is set so that the gcc you want to use is one it
specifies than you don't need either of the two (!!) step 16s, at least in
my experience.
4. For step 17, in my experience, I don't have to use --with-gcc ....
For with-nm the best way to specify is as Brandon wrote --with-nm=$(xcrun
--find nm-classic)
5. After either 18 or 19 it would probably be good to mention the option
of doing sudo make install
Thanks for jumping on this, the old doc definitely needs updating
Cheers
George
On Thu, Apr 28, 2016 at 7:24 PM Carter Schonwald
Woops forgot to link them this morning
https://gist.github.com/cartazio/32038db09222a2aac767cb5c03b406c6
Feedback would be appreciated. And still need to mention cabal install hscolour :)
Pardon the noise and feedback would be appreciated!
On Thursday, April 28, 2016, Carter Schonwald
wrote: Hey all: I've drafted some hopefully cleaner Mac build directions and I'd love some feedback on them
Nb: I think I forgot to mention the cabal install hscolour step, I'll add that
-Carter

1) done
2) steps 12,13,15 are specific to git checkout, step 14 is still
necessary!
a) hyperlinked-source is not enabled by default for the boot libs and ghc
source, which is AMAZING to have
b) buliding the pdf version of the user guide isn't enabled by default
c) if you have gmp lib somewhere installled in userland, ghc will by
default pick that instead of doing in tree gmp, and on mac if you want to
share you executables, that a no go!
d) unrelatedly, it seems that ghc build no longer includes the haddock
manual in html/pdf form as it used to
3/4) i think we shouldn't make any assumptions about the path and what
gcc/clang is where / shows up first, or at least that choice should be
explicit :), good point on the --with-nm idea
5) i prefer not mentioning sudo ever in directions, and i actually these
days install my various ghc versions into paths like
~/.install-ghc/$GHCVERSION :), and certain prefixes may or may not be
locked down on recent osx it seems :)
On Thu, Apr 28, 2016 at 7:25 PM, George Colpitts
Thanks for working on this!
fwiw, my comments:
1. It would be good to provide a link to the current doc so we can compare with that. 2. Steps 12, 13, 14 and 15 are only necessary if you are building from a fresh git checkout, not necessary if you're building from source tree tarball from a release candidate , right? 3. If your path is set so that the gcc you want to use is one it specifies than you don't need either of the two (!!) step 16s, at least in my experience. 4. For step 17, in my experience, I don't have to use --with-gcc .... For with-nm the best way to specify is as Brandon wrote --with-nm=$(xcrun --find nm-classic) 5. After either 18 or 19 it would probably be good to mention the option of doing sudo make install
Thanks for jumping on this, the old doc definitely needs updating
Cheers George
On Thu, Apr 28, 2016 at 7:24 PM Carter Schonwald < carter.schonwald@gmail.com> wrote:
Woops forgot to link them this morning
https://gist.github.com/cartazio/32038db09222a2aac767cb5c03b406c6
Feedback would be appreciated. And still need to mention cabal install hscolour :)
Pardon the noise and feedback would be appreciated!
On Thursday, April 28, 2016, Carter Schonwald
wrote: Hey all: I've drafted some hopefully cleaner Mac build directions and I'd love some feedback on them
Nb: I think I forgot to mention the cabal install hscolour step, I'll add that
-Carter

i also added mention of invoking ulimit before make to work around a current bug in haddock resource usage when generating hyperlinked-source files for all of ghc :) On Thu, Apr 28, 2016 at 8:22 PM, Carter Schonwald < carter.schonwald@gmail.com> wrote:
1) done
2) steps 12,13,15 are specific to git checkout, step 14 is still necessary! a) hyperlinked-source is not enabled by default for the boot libs and ghc source, which is AMAZING to have b) buliding the pdf version of the user guide isn't enabled by default c) if you have gmp lib somewhere installled in userland, ghc will by default pick that instead of doing in tree gmp, and on mac if you want to share you executables, that a no go! d) unrelatedly, it seems that ghc build no longer includes the haddock manual in html/pdf form as it used to
3/4) i think we shouldn't make any assumptions about the path and what gcc/clang is where / shows up first, or at least that choice should be explicit :), good point on the --with-nm idea
5) i prefer not mentioning sudo ever in directions, and i actually these days install my various ghc versions into paths like ~/.install-ghc/$GHCVERSION :), and certain prefixes may or may not be locked down on recent osx it seems :)
On Thu, Apr 28, 2016 at 7:25 PM, George Colpitts < george.colpitts@gmail.com> wrote:
Thanks for working on this!
fwiw, my comments:
1. It would be good to provide a link to the current doc so we can compare with that. 2. Steps 12, 13, 14 and 15 are only necessary if you are building from a fresh git checkout, not necessary if you're building from source tree tarball from a release candidate , right? 3. If your path is set so that the gcc you want to use is one it specifies than you don't need either of the two (!!) step 16s, at least in my experience. 4. For step 17, in my experience, I don't have to use --with-gcc .... For with-nm the best way to specify is as Brandon wrote --with-nm=$(xcrun --find nm-classic) 5. After either 18 or 19 it would probably be good to mention the option of doing sudo make install
Thanks for jumping on this, the old doc definitely needs updating
Cheers George
On Thu, Apr 28, 2016 at 7:24 PM Carter Schonwald < carter.schonwald@gmail.com> wrote:
Woops forgot to link them this morning
https://gist.github.com/cartazio/32038db09222a2aac767cb5c03b406c6
Feedback would be appreciated. And still need to mention cabal install hscolour :)
Pardon the noise and feedback would be appreciated!
On Thursday, April 28, 2016, Carter Schonwald < carter.schonwald@gmail.com> wrote:
Hey all: I've drafted some hopefully cleaner Mac build directions and I'd love some feedback on them
Nb: I think I forgot to mention the cabal install hscolour step, I'll add that
-Carter

Do we really need hscolour when using haddock with --hyperlinked-source? Also, a section on building for development (which is what I believe the current instructions are aimed at) would be nice! I very much welcome this clean up! Cheers, Adam
On 29 Apr 2016, at 02:24, Carter Schonwald
wrote: i also added mention of invoking ulimit before make to work around a current bug in haddock resource usage when generating hyperlinked-source files for all of ghc :)
On Thu, Apr 28, 2016 at 8:22 PM, Carter Schonwald
wrote: 1) done 2) steps 12,13,15 are specific to git checkout, step 14 is still necessary! a) hyperlinked-source is not enabled by default for the boot libs and ghc source, which is AMAZING to have b) buliding the pdf version of the user guide isn't enabled by default c) if you have gmp lib somewhere installled in userland, ghc will by default pick that instead of doing in tree gmp, and on mac if you want to share you executables, that a no go! d) unrelatedly, it seems that ghc build no longer includes the haddock manual in html/pdf form as it used to
3/4) i think we shouldn't make any assumptions about the path and what gcc/clang is where / shows up first, or at least that choice should be explicit :), good point on the --with-nm idea
5) i prefer not mentioning sudo ever in directions, and i actually these days install my various ghc versions into paths like ~/.install-ghc/$GHCVERSION :), and certain prefixes may or may not be locked down on recent osx it seems :)
On Thu, Apr 28, 2016 at 7:25 PM, George Colpitts
wrote: Thanks for working on this! fwiw, my comments:
• It would be good to provide a link to the current doc so we can compare with that. • Steps 12, 13, 14 and 15 are only necessary if you are building from a fresh git checkout, not necessary if you're building from source tree tarball from a release candidate , right? • If your path is set so that the gcc you want to use is one it specifies than you don't need either of the two (!!) step 16s, at least in my experience. • For step 17, in my experience, I don't have to use --with-gcc .... For with-nm the best way to specify is as Brandon wrote --with-nm=$(xcrun --find nm-classic) • After either 18 or 19 it would probably be good to mention the option of doing sudo make install Thanks for jumping on this, the old doc definitely needs updating
Cheers George
On Thu, Apr 28, 2016 at 7:24 PM Carter Schonwald
wrote: Woops forgot to link them this morning https://gist.github.com/cartazio/32038db09222a2aac767cb5c03b406c6
Feedback would be appreciated. And still need to mention cabal install hscolour :)
Pardon the noise and feedback would be appreciated!
On Thursday, April 28, 2016, Carter Schonwald
wrote: Hey all: I've drafted some hopefully cleaner Mac build directions and I'd love some feedback on them Nb: I think I forgot to mention the cabal install hscolour step, I'll add that
-Carter
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Dev work flows are more complicated depending on the goal and sub system.
And I've slightly more practice with erring on the side of release style
builds.
Erikd gave some good suggestions that the build steps should be turned on a
s self contained script or make file so that its more robust against bit
rot, so I'll look into it this weekend.
On Friday, April 29, 2016, Adam Sandberg Eriksson
Do we really need hscolour when using haddock with --hyperlinked-source?
Also, a section on building for development (which is what I believe the current instructions are aimed at) would be nice!
I very much welcome this clean up!
Cheers, Adam
On 29 Apr 2016, at 02:24, Carter Schonwald
javascript:;> wrote: i also added mention of invoking ulimit before make to work around a current bug in haddock resource usage when generating hyperlinked-source files for all of ghc :)
On Thu, Apr 28, 2016 at 8:22 PM, Carter Schonwald < carter.schonwald@gmail.com javascript:;> wrote: 1) done
2) steps 12,13,15 are specific to git checkout, step 14 is still necessary! a) hyperlinked-source is not enabled by default for the boot libs and ghc source, which is AMAZING to have b) buliding the pdf version of the user guide isn't enabled by default c) if you have gmp lib somewhere installled in userland, ghc will by default pick that instead of doing in tree gmp, and on mac if you want to share you executables, that a no go! d) unrelatedly, it seems that ghc build no longer includes the haddock manual in html/pdf form as it used to
3/4) i think we shouldn't make any assumptions about the path and what gcc/clang is where / shows up first, or at least that choice should be explicit :), good point on the --with-nm idea
5) i prefer not mentioning sudo ever in directions, and i actually these days install my various ghc versions into paths like ~/.install-ghc/$GHCVERSION :), and certain prefixes may or may not be locked down on recent osx it seems :)
On Thu, Apr 28, 2016 at 7:25 PM, George Colpitts < george.colpitts@gmail.com javascript:;> wrote: Thanks for working on this!
fwiw, my comments:
• It would be good to provide a link to the current doc so we can compare with that. • Steps 12, 13, 14 and 15 are only necessary if you are building from a fresh git checkout, not necessary if you're building from source tree tarball from a release candidate , right? • If your path is set so that the gcc you want to use is one it specifies than you don't need either of the two (!!) step 16s, at least in my experience. • For step 17, in my experience, I don't have to use --with-gcc .... For with-nm the best way to specify is as Brandon wrote --with-nm=$(xcrun --find nm-classic) • After either 18 or 19 it would probably be good to mention the option of doing sudo make install Thanks for jumping on this, the old doc definitely needs updating
Cheers George
On Thu, Apr 28, 2016 at 7:24 PM Carter Schonwald < carter.schonwald@gmail.com javascript:;> wrote: Woops forgot to link them this morning
https://gist.github.com/cartazio/32038db09222a2aac767cb5c03b406c6
Feedback would be appreciated. And still need to mention cabal install hscolour :)
Pardon the noise and feedback would be appreciated!
On Thursday, April 28, 2016, Carter Schonwald < carter.schonwald@gmail.com javascript:;> wrote: Hey all: I've drafted some hopefully cleaner Mac build directions and I'd love some feedback on them
Nb: I think I forgot to mention the cabal install hscolour step, I'll add that
-Carter
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org javascript:; http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Carter Schonwald
Woops forgot to link them this morning
https://gist.github.com/cartazio/32038db09222a2aac767cb5c03b406c6
Feedback would be appreciated. And still need to mention cabal install hscolour :)
Pardon the noise and feedback would be appreciated!
Thanks for this, Carter! About font installation: do you know any any way to accomplish this at the terminal? re step 9: Perhaps make sure that `~/.cabal/bin` is in `PATH`. re step 16: There are two step 16s! ;) re step 16.a: It would also be nice if you could describe the reasons for choosing Clang or GCC, in particular with references to further reading (e.g. I think #7602 is relevant here). re step 16.b: some justification for setting the `DEPLOYMENT_TARGET` would be nice. re step 17: If I'm not mistaken `--with-gcc` is now redundant. If you still want to include it then perhaps just make the example use `$CC` instead of `$pathToMyCC`. re step 17: Also, isn't the nm issue dependent upon the XCode version, not OS X version? Also, perhaps you could submit a patch to fix haddock issue cited in step 18? Thanks again! Cheers, - Ben

On Tue, May 3, 2016 at 11:32 AM, Ben Gamari
About font installation: do you know any any way to accomplish this at the terminal?
Just copy them to the appropriate directory (/Library/Fonts or ~/Library/Fonts); fontd will see and register them automatically. Font Book automates this and includes some basic sanity checks; it does not do any extra registration or etc. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Brandon Allbery
On Tue, May 3, 2016 at 11:32 AM, Ben Gamari
wrote: About font installation: do you know any any way to accomplish this at the terminal?
Just copy them to the appropriate directory (/Library/Fonts or ~/Library/Fonts); fontd will see and register them automatically. Font Book automates this and includes some basic sanity checks; it does not do any extra registration or etc.
Ahh, great. Thanks! Carter, could you add this to your draft? I doubt I am the only one who works primarily from the command line. Cheers, - Ben
participants (5)
-
Adam Sandberg Eriksson
-
Ben Gamari
-
Brandon Allbery
-
Carter Schonwald
-
George Colpitts