Ticket #1346 (new bug)

Opened 1 year ago

Last modified 1 month ago

bootstrap from HC files

Reported by: simonmar Assigned to: igloo
Priority: normal Milestone: 6.8.3
Component: Build System Version: 6.6.1
Severity: normal Keywords:
Cc: kili@openbsd.org, dwmw2@infradead.org Difficulty: Moderate (1 day)
Test Case: Architecture: Unknown
Operating System: Unknown

Description

There's some work to do on 6.8 to ensure that we can still bootstrap from HC files. This will be slightly harder due to the new Cabal-based build system for libraries, and the solution will probably involve 'setup makefile' somewhere. Also we'll need to update the building guide to include the new instructions, whatever they may be.

Attachments

ghc.diff (17.9 kB) - added by kili on 04/20/08 08:21:30.
Work in Progres, QUICK HACK ALERT!

Change History

11/12/07 04:42:14 changed by simonmar

  • priority changed from high to normal.
  • milestone changed from 6.8 branch to 6.8.3.

12/18/07 08:50:24 changed by igloo

  • owner set to igloo.

03/10/08 12:39:30 changed by kili

  • cc set to kili@openbsd.org.

I'd like to see this fixed for ghc-6.8.3, because for a proper OpenBSD port, bootstrapping from a precompiled binary is a no-go. I hope to get the time to review, cleanup and attach my current diffs until next week. Current state is that I'm able to create an unregisterised HC file bundle and bootstrap a working stage1 from this bundle (on i386), but the next step still doesn't work because some of the -inplace tools (ghc-pkg is one of them) aren't available yet.

Please note: if you don't consider this important enough for 6.8.3, I can as well keep the patches locally in the OpenBSD port and try to adopt them for 6.10.1 later.

04/18/08 05:35:28 changed by dwmw2

  • cc changed from kili@openbsd.org to kili@openbsd.org, dwmw2@infradead.org.

04/20/08 08:21:30 changed by kili

  • attachment ghc.diff added.

Work in Progres, QUICK HACK ALERT!

04/20/08 08:31:23 changed by kili

The diff I uploaded contains some comments inline. It's for ghc-6.8.2 but also applies to the latest stable snapshot (ghc-6.8.2.20080401).

As written earlier, it's possible to create a HC file bundle (with some additional created files) and to build a stage1 compiler with this. I'm a little bit uncertain how to proceed -- either go ahead using libcompat (which is a little bit ugly), or try to rebuild all the libraries immediately with that stage1 compiler (but without using utils/ghc-pkg, since it's not yet buildable), then build the remaining tools.