Skip to content

can't link executables due to dtrace error on Mac OS X 10.5

When building an executable on 10.5, the link step fails. Problem occurs with 7.0.2 i386 and x86_64 builds of 7.0.2 on Mac OS X 10.5. Same compilers work find on 10.6.

Example log from building !HsColour:

Linking dist/build/HsColour/HsColour ...
error: Could not compile reconstructed dtrace script:

Unhandled typedefs encoding version v2
provider HaskellEvent {
	probe startup(EventCapNo);
	probe gc__work(EventCapNo);
	probe gc(int, double, long,...)(EventCapNo);
	probe gc__done(EventCapNo);
	probe thread_wakeup(EventCapNo,EventThreadID,EventCapNo);
	probe thread__runnable(EventCapNo,EventThreadID);
	probe migrate__thread(EventCapNo,EventThreadID,EventCapNo);
	probe create__thread(EventCapNo,EventThreadID);
	probe gc__start(EventCapNo);
	probe gc__end(EventCapNo);
	probe stop__thread(EventCapNo,EventThreadID,EventThreadStatus);
	probe run__thread(EventCapNo,EventThreadID);
	probe user__msg(EventCapNo,char *);
};

#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider HaskellEvent provider
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider HaskellEvent module
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider HaskellEvent function
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider HaskellEvent name
#pragma D attributes PRIVATE/PRIVATE/UNKNOWN provider HaskellEvent args


ld: error creating dtrace DOF section
collect2: ld returned 1 exit status
cabal: Error: some packages failed to install:
hscolour-1.17 failed during the building phase. The exception was:
ExitFailure 1
Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information