[Nix-dev] GHC 7.8.2-binary.nix to bootstrap GHC HEAD
Corey O'Connor
coreyoconnor at gmail.com
Fri May 9 19:47:09 CEST 2014
Hi Mateusz,
Did you make any progress with this?
I set up a Nix build of the GHC 7.8.3 branch to bisect some bugs. I think I
ran across a similar problem: An installed GHC will search for some files
in the directory specified by the release version and other files in the
version dynamically determined at compile time.
I resolved this locally with the patch:
diff --git a/configure.ac b/configure.ac
index 8c013f8..d6477d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,10 +13,10 @@ dnl
# see what flags are available. (Better yet, read the documentation!)
#
-AC_INIT([The Glorious Glasgow Haskell Compilation System], [7.8.3], [
glasgow-haskell-bugs at haskell.org], [ghc])
+AC_INIT([The Glorious Glasgow Haskell Compilation System], [7.8.2], [
glasgow-haskell-bugs at haskell.org], [ghc])
# Set this to YES for a released version, otherwise NO
-: ${RELEASE=YES}
+: ${RELEASE=NO}
# The primary version (e.g. 7.5, 7.4.1) is set in the AC_INIT line
# above. If this is not a released version, then we will append the
-Corey O'Connor
coreyoconnor at gmail.com
http://corebotllc.com/
On Fri, May 2, 2014 at 11:08 PM, Mateusz Kowalczyk
<fuuzetsu at fuuzetsu.co.uk>wrote:
> On 05/03/2014 07:42 AM, Mateusz Kowalczyk wrote:
> > On 05/03/2014 07:15 AM, Mateusz Kowalczyk wrote:
> >> Amongst my struggles to get recent GHC HEAD snapshots to work on NixOS,
> >> I noticed that GHC 7.4.2 is used to bootstrap it. Perhaps that's what's
> >> causing the problems[1] so my current goal is to make a binary install
> >> of GHC 7.8.2 work. To be clear, I want to be able to install the GHC
> >> 7.8.2 binary provided by the GHC team, which I can then hopefully use to
> >> bootstrap HEAD.
> >>
> >> [snip]
> >>
> >> I am now stuck here, I don't know how to get the binaries to see the
> >> libraries properly. All this happens during the installPhase (left
> >> default) step, copying the libs followed by whatever it is the binaries
> >> are meant to be doing. The next thing that comes to mind is to gut GHC's
> >> install phase to let me patchelf the binaries after copying the
> >> libraries, but that doesn't sound pretty. Perhaps I am simply doing
> >> something very wrong, or the nix code from 7.4.2 messes something up.
> >>
> >> I am attaching the two relevant files. Any input *very* welcome.
> >>
> >> [1]: https://github.com/NixOS/nixpkgs/issues/2428
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> nix-dev mailing list
> >> nix-dev at lists.science.uu.nl
> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >>
> >
> > Alternatively, instructions on how to use GHC 7.8.2 that we can build
> > (or get from Hydra) already to build 7.9 would probably be much easier.
> >
>
> This was actually as easy as:
>
> ghc782Binary = pkgs.haskellPackages_ghc782.ghc;
>
> I wish I thought of this about 6 hours ago.
>
> Apologies for the noise, I hope we can have building HEAD soon.
>
> --
> Mateusz K.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140509/e087b616/attachment.html
More information about the nix-dev
mailing list