Re: Weird failure of ghc-7.0.2 on OS X 10.5 using the bindist tarball

2011-03-12 Thread Ian Lynagh

It turns out that even an i386 build made on 10.6 won't work on 10.5:
http://hackage.haskell.org/trac/ghc/ticket/4996

And even if this is fixable, it won't help, as we'll have to drop 10.5
support in order to support XCode 4:
http://hackage.haskell.org/trac/ghc/ticket/5011

If you build GHC yourself then it should work, though.


Thanks
Ian


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Weird failure of ghc-7.0.2 on OS X 10.5 using the bindist tarball

2011-03-12 Thread Thomas Schilling
OK, thanks.

On 12 March 2011 14:25, Ian Lynagh ig...@earth.li wrote:

 It turns out that even an i386 build made on 10.6 won't work on 10.5:
    http://hackage.haskell.org/trac/ghc/ticket/4996

 And even if this is fixable, it won't help, as we'll have to drop 10.5
 support in order to support XCode 4:
    http://hackage.haskell.org/trac/ghc/ticket/5011

 If you build GHC yourself then it should work, though.


 Thanks
 Ian


 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users




-- 
Push the envelope. Watch it bend.

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Weird failure of ghc-7.0.2 on OS X 10.5 using the bindist tarball

2011-03-11 Thread Thomas Schilling
No, I have xcode installed (which is mainly needed for gcc, ar, ld,
etc.).  I have lots of other GHC versions installed as well, so I
don't think that's the issue.

I think Duncan has been working on dtrace support, so maybe he has an
idea. (CC'd).

On 11 March 2011 18:51, Don Stewart don...@gmail.com wrote:
 Missing XCode? Or is that not  relevant?

 On Fri, Mar 11, 2011 at 10:39 AM, Thomas Schilling
 nomin...@googlemail.com wrote:
 I installed ghc (x86) from the bindist tarball like so:

 $ wget 
 http://www.haskell.org/ghc/dist/7.0.2/ghc-7.0.2-i386-apple-darwin.tar.bz2
 $ tar -xjf ghc-7.0.2-i386-apple-darwin.tar.bz2
 $ cd ghc-7.0.2-i386-apple-darwin
 $ ./configure --prefix=$HOME/local
 $ make install

 $ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.0.2

 GHCi works fine:

 $ ghc -e 3+4
 7

 However, if I want to compile a test file I get a weird dtrace error.

 $ cat test.hs
 main = print 42

 $ ghc --make test.hs
 [1 of 1] Compiling Main             ( test.hs, test.o )
 Linking test ...
 error: Could not compile reconstructed dtrace script:

 Unhandled typedefs encoding version v2
 provider HaskellEvent {
        probe thread_wakeup(EventCapNo,EventThreadID,EventCapNo);
        probe thread__runnable(EventCapNo,EventThreadID);
        probe migrate__thread(EventCapNo,EventThreadID,EventCapNo);
        probe create__thread(EventCapNo,EventThreadID);
        probe gc__work(EventCapNo);
        probe gc(int, double, long,...)(EventCapNo);
        probe gc__done(EventCapNo);
        probe gc__start(EventCapNo);
        probe gc__end(EventCapNo);
        probe stop__thread(EventCapNo,EventThreadID,EventThreadStatus);
        probe run__thread(EventCapNo,EventThreadID);
        probe startup(EventCapNo);
        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


 $ uname -mrsv
 Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT
 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

 Any idea what's going on there?

 / Thomas
 --
 Push the envelope. Watch it bend.

 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users





-- 
Push the envelope. Watch it bend.

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users