Yes, it is exactly the issue Brandon references. Thanks.

I have got one concern with this fix, though: doesn’t that mean that a GHC 
*build* on macOS 10.12 will not run on earlier versions of macOS?

In the meantime, I found,

  https://github.com/Homebrew/homebrew-core/issues/1957#issuecomment-226328001

which explains the issue. Now, when you compile on macOS 10.12 with this fix, 
GHC RTS will use ’clock_gettime’. However, that symbol is not available in the 
system libraries of earlier version of macOS, which will lead to a dyld failure 
when trying to run the executable.

In fact, given this is in the RTS, any Haskell program compiled with such as 
build of GHC would be unable to run on macOS versions older than 10.12 (unless 
I am mistaken). Has this been considered?

Manuel

> Brandon Allbery <[email protected]>:
> 
> fwiw I suspect this is 
> http://git.haskell.org/ghc.git/commit/a0f1809742160ca0c07778f91f3e2a8ea147c0a4
>  
> <http://git.haskell.org/ghc.git/commit/a0f1809742160ca0c07778f91f3e2a8ea147c0a4>
> 
> On Thu, Jul 28, 2016 at 5:13 PM, Carter Schonwald <[email protected] 
> <mailto:[email protected]>> wrote:
> Could you share your error messages ?
> 
> 
> On Wednesday, July 27, 2016, Manuel M T Chakravarty <[email protected] 
> <mailto:[email protected]>> wrote:
> Has anybody tried compiling GHC with the (beta) macOS 10.12 Sierra SDK? I 
> just gave it a shot trying to compile GHC 7.8.3 and ran into a problem with 
> GetTime.c in the RTS. (I haven’t tried GHC 8.0.1.)
> 
> Manuel
> 
> _______________________________________________
> ghc-devs mailing list
> [email protected] <>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs 
> <http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs>
> 
> _______________________________________________
> ghc-devs mailing list
> [email protected] <mailto:[email protected]>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs 
> <http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs>
> 
> 
> 
> 
> -- 
> brandon s allbery kf8nh                               sine nomine associates
> [email protected] <mailto:[email protected]>                              
>     [email protected] <mailto:[email protected]>
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net 
> <http://sinenomine.net/>_______________________________________________
> ghc-devs mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to