Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jun 2018 20:21:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        haskell@FreeBSD.org
Subject:   [Bug 228727] lang/ghc cannot be used as a bootstrap compiler
Message-ID:  <bug-228727-16154-ISTXOGREIB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228727-16154@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228727-16154@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228727

--- Comment #2 from raichoo <raichoo@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 follow=
ing
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/li=
b/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 som=
eone
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228727-16154-ISTXOGREIB>