[Bug 228727] lang/ghc cannot be used as a bootstrap compiler
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jun 3 20:21:31 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228727
--- Comment #2 from raichoo <raichoo at googlemail.com> ---
I've checked the way ghc 8.4.2 was linked on CURRENT and it is just the way
that causes the bootstrapping issues.
When trying to build 8.4.3 with the 8.4.2 shipped with pkg I get the following
error.
/usr/bin/ld: error: duplicate symbol: StackOverflowHook
>>> defined at hschooks.c
>>> ghc/stage1/build/hschooks.o:(StackOverflowHook)
>>> defined at OSMem.c
>>> RTS.o:(.text.StackOverflowHook+0x0) in archive /usr/local/lib/ghc-8.4.2/rts/libHSrts.a
This happens because of the way the libHSrts.a (etc) has been linked and I'm
the one to blame for this since I introduced that issue in GHC. As I said, a
fix for this is under way.
This is probably affecting other people as well (I just got notified by someone
else having similar issues).
You can check if the RTS is build the working way by checking it with `nm` like
so:
nm libHSrts.a
If the archive only contains one object file (e.g. RTS.o) that build won't for
building other ghcs.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-haskell
mailing list