#2619: Can't build older compiler
---------------------------------+------------------------------------------
Reporter: judah | Owner:
Type: bug | Status: reopened
Priority: normal | Milestone: 6.10.1
Component: Compiler | Version: 6.11
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonpj):
Following my weekly phone call with Manuel and Roman, here's my
understanding of what the problem is, mainly just rephrasing Manuel's
comments above in my own words:
* Goal: allow people to specify GHC-X as the bootstrap compiler.
* The time to do this is in the configure step: `configure --with-
ghc=GHC-X`
* Maybe there should be warnings if the version of GHC-X is out of the
guaranteed range, but configure should still obey
And it does obey. As I understand it what happens is this
* The stage1 package `ghc` is built with GHC-X, and somehow installed
where GHC-X can find it
* But when we build the stage1 ''executable'', by using GHC-X to compile
a small `Main.hs` against package `ghc`, we get the package `ghc` that
came with GHC-X rather than the newly-built package `ghc`. Of course
that's pretty confusing.
* What's wanted is to ''guarantee'' that GHC-X will expose and use the
newly-built package (not any existing one) when compiling `Main.hs`. Any
other behaviour must be wrong.
I can see that it may not be worth fixing the old build system, and Ian
says it's already done in the new system; so the short-term question is
how Manuel and Roman can make progress. Manuel, Roman, do you have a
workaround?
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2619#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs