From owner-freebsd-haskell@freebsd.org Sun Jun 3 20:21:31 2018 Return-Path: Delivered-To: freebsd-haskell@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A31EAFF70AC for ; Sun, 3 Jun 2018 20:21:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3ECE07A758 for ; Sun, 3 Jun 2018 20:21:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F1C3CFF70A9; Sun, 3 Jun 2018 20:21:30 +0000 (UTC) Delivered-To: haskell@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0554FF70A8 for ; Sun, 3 Jun 2018 20:21:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E8A77A753 for ; Sun, 3 Jun 2018 20:21:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B0CDF2C6BE for ; Sun, 3 Jun 2018 20:21:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w53KLTZZ072031 for ; Sun, 3 Jun 2018 20:21:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w53KLT39072030 for haskell@FreeBSD.org; Sun, 3 Jun 2018 20:21:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: haskell@FreeBSD.org Subject: [Bug 228727] lang/ghc cannot be used as a bootstrap compiler Date: Sun, 03 Jun 2018 20:21:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: raichoo@googlemail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: haskell@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-haskell@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: FreeBSD-specific Haskell issues and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2018 20:21:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228727 --- Comment #2 from raichoo --- 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.=