Ticket #841 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

Build order causes errors when booting from HC files

Reported by: red5_2@… Owned by: igloo
Priority: normal Milestone:
Component: Build System Version: 6.4.2
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History

Changed 7 years ago by simonmar

  • owner set to igloo

Ian - is this one still relevant?

Changed 7 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

This is fixed in 6.6 and the HEAD.

Note: See TracTickets for help on using tickets.