when building latest GHC on Mac with Xcode 8: Symbol not found: _clock_gettime

John Leo leo at halfaya.org
Tue Oct 11 04:14:29 UTC 2016


Thanks very much Brandon for your fast reply!  That did the trick.  I had
to rerun configure as well since when I didn't do that I got a different
but seemingly related error.  But after clean, configure and make
everything seems to work again.

John

On Mon, Oct 10, 2016 at 8:27 PM, Brandon Allbery <allbery.b at gmail.com>
wrote:

>
> On Mon, Oct 10, 2016 at 11:22 PM, John Leo <leo at halfaya.org> wrote:
>
>> I'm trying to compile ghc from the latest source and am hitting an error
>> "Symbol not found: _clock_gettime".  I'm on Mac El Capitan and recently
>> installed Xcode 8 which I'm sure is what caused the problem.  Using Google
>> I found some relevant pages including this one
>> https://mail.haskell.org/pipermail/ghc-devs/2016-July/012511.html
>>
>>
>> but I've been unable to figure out what I can do to fix the problem.  Any
>> help would be appreciated.
>>
>
> You need to download the 10.11 Command Line Tools from download.apple.com
> and reinstall them over the Xcode 8 command line tools, which are for 10.12
> and will have problems like this. (Apple intends to correct this in Xcode
> 8.1.) You need a free Mac Developer account for this, or maybe you can find
> the 10.11 tools elsewhere. You will then need to clean and rebuild ghc.
>
> --
> brandon s allbery kf8nh                               sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20161010/c49472f9/attachment.html>


More information about the ghc-devs mailing list