#841: Build order causes errors when booting from HC files
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.4.2
Severity: normal | Keywords:
Os: Linux | Difficulty: Unknown
Architecture: x86 |
-----------------------------------+----------------------------------------
When booting from HC files using `./distrib/hc-build --enable-hc-boot-
unregisterised`, compilation fails when linking the stage-1 compiler. The
linker prints the message `/usr/bin/ld: cannot find -lghccompat`. This
happens because the library (in ghc/lib) has not been built.
In ghc/Makefile, the order in which subdirectories are compiled is set
specially when booting from HC files:
{{{
ifeq "$(BootingFromHc)" "YES"
SUBDIRS = includes rts docs compiler lib utils driver
else
# assign SUBDIRS = something else
}}}
A solution is to change the order to: `includes rts docs lib compiler
utils driver`.
--
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/841>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs