#4996: can't link executables due to dtrace error on Mac OS X 10.5
---------------------------------+------------------------------------------
    Reporter:  MtnViewMark       |       Owner:                         
        Type:  bug               |      Status:  new                    
    Priority:  normal            |   Component:  Compiler               
     Version:  7.0.2             |    Keywords:  dtrace osx mac 10.5    
    Testcase:                    |   Blockedby:                         
          Os:  MacOS X           |    Blocking:                         
Architecture:  Unknown/Multiple  |     Failure:  GHC doesn't work at all
---------------------------------+------------------------------------------
 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

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4996>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to