Opened 22 months ago

Closed 20 months ago

Last modified 15 months 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:


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.

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 21 months ago by bgamari

A workaround was merged for 8.4.2 with ab458df61bd792654322fd6b20b1ac42e17f3f81.

comment:2 Changed 21 months ago by bgamari


comment:3 Changed 20 months ago by raichoo

I have a patch on Phabricator that seems to fix this issue.

comment:4 Changed 20 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:

comment:5 Changed 20 months ago by bgamari

Resolution: fixed
Status: newclosed

comment:6 Changed 15 months 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.