Opened 8 months ago

Closed 6 months ago

Last modified 8 weeks ago

#15040 closed bug (fixed)

DTrace enabled GHC does not work as a bootstrap compiler on FreeBSD

Reported by: raichoo Owned by:
Priority: normal Milestone: 8.6.1
Component: Build System (make) Version: 8.4.1
Keywords: dtrace Cc:
Operating System: FreeBSD Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

GHC 8.4.1 enables DTrace probes on FreeBSD. This currently causes issues with the using such compilers as a bootstrap compiler for building GHC itself due to the way linking of the RTS is handled. I didn't encounter any issues regarding daily use on FreeBSD but suspect it might cause problems with user defined hooks.

Current workaround is to build a version of GHC with DTrace disabled and use that as a bootstrap compiler.

A patch has been merged into HEAD. I've already tested it in combination with 8.4.2-rc1 and it worked fine.

https://phabricator.haskell.org/rGHC4b831c27926d643b0b6fad82c1e946d05cde8645

I have an idea on how to fix this but haven't had the time to put that plan into action.

Change History (6)

comment:1 in reply to:  description Changed 7 months ago by bgamari

A workaround was merged for 8.4.2 with ab458df61bd792654322fd6b20b1ac42e17f3f81.

comment:2 Changed 7 months ago by bgamari

Milestone: 8.4.28.6.1

comment:3 Changed 7 months ago by raichoo

I have a patch on Phabricator that seems to fix this issue. https://phabricator.haskell.org/D4772

comment:4 Changed 6 months ago by Ben Gamari <ben@…>

In 9c89ef3/ghc:

Make dtrace enabled GHC work as a bootstrap compiler on FreeBSD

Fixes #15040.

Reviewers: bgamari, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4772

comment:5 Changed 6 months ago by bgamari

Resolution: fixed
Status: newclosed

comment:6 Changed 8 weeks ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.