Ticket #7463 (new bug)

Opened 6 months ago

Last modified 5 weeks ago

[PATCH] When -keep-hc-files is enabled, foreign stubs *_stub.c should also be kept.

Reported by: PHO Owned by: igloo
Priority: normal Milestone: 7.8.1
Component: Compiler Version: 7.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Other Difficulty: Unknown
Test Case: Blocked By:
Blocking: #3472 Related Tickets:

Description

GHC used to put *_stub.c into stubdir along with *_stub.h but now *_stub.c files are temporarily created and then removed, which means we have no stubs available when we are bootstrapping a compiler via C sources.

My  patch is to keep *_stub.c as before, when -keep-hc-files is enabled:

% git fetch git://github.com/phonohawk/ghc.git c-sources-in-stubdir

Please also note that the documentation about foreign stubs is slightly outdated.

Change History

Changed 6 months ago by PHO

  • status changed from new to patch

Changed 6 months ago by igloo

  • status changed from patch to infoneeded
  • difficulty set to Unknown

Can you say more about why you need to be able to bootstrap via C sources, please?

Our plan is to stop supporting that, and to support cross-compilation instead.

Changed 6 months ago by PHO

I am the current maintainer of  pkgsrc-wip/ghc. I've been regularly booting GHC via C sources because  pkgsrc packages are supposed to bootstrap solely with a C compiler, just like FreeBSD Ports and Gentoo Portage. That way we could avoid annoying problems like binaries depending on an incompatible libc.

On the other hand, I know very well that supporting HC bootstrap complicates the entire GHC system unacceptably. So if you stop supporting that, I'll switch to binary bootstrapping anyway.

Changed 6 weeks ago by igloo

  • status changed from infoneeded to new
  • milestone set to 7.8.1

Changed 6 weeks ago by igloo

  • owner set to igloo

Changed 5 weeks ago by PHO

Ah, I forgot to tell you that  pkgsrc-wip/ghc has switched to the binary bootstrapping way, so it's ok for me to stop supporting HC bootstrap.

Note: See TracTickets for help on using tickets.