<p>I am running OS X Yosemite. I cloned the <a href="https://github.com/bitcoin/bitcoin" rel="nofollow">bitcoin repo</a> and checkout-ed the v0.9.3 tag to get the most recent stable version.</p>

<p>Then I followed the steps described <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md" rel="nofollow">here</a> to compile the code. </p>

<p>It compiled for a long time, and then ended with the following error:</p>

<pre><code>clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [test_bitcoin] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
</code></pre>

<p>Has anyone seen this error before? Why was it caused? What can I do to fix it?</p>

CC BY-SA 3.0
2014-10-21T19:22:44.107Z
What messages do you see before that?
Nick ODell
CC BY-SA 3.0
2014-10-21T19:23:53.853Z
[Related issue on Bitcoin bug tracker](https://github.com/bitcoin/bitcoin/issues/3228). Have you tried recompiling [boost according to this guide](http://stackoverflow.com/questions/18888327/using-boost-on-xcode-5-apple-llvm-5-0)?
Nick ODell
CC BY-SA 3.0
2014-10-21T20:55:31.823Z
@Nick, I put the console output into https://github.com/Ziftr/bitcoin/blob/testing/console_error.txt. I tried doing something similar to that link you suggested, but I will try it again. Thanks.
morsecoder
CC BY-SA 3.0
2014-10-22T00:35:11.303Z
[I think this guy had the same problem as you.](https://github.com/bitcoin/bitcoin/issues/5064) You can apply the patch manually, or just `git checkout master`
Nick ODell
CC BY-SA 3.0
2014-10-24T01:12:39.887Z
Did that fix it?
Nick ODell
CC BY-SA 3.0
2014-10-24T19:48:43.497Z
That does seem like the same issue, but I ended up getting a docker container image that worked. Takes forever to compile, but probably no getting around that. Will revisit this issue when I get a chance.
morsecoder
<mac><compiling>
Error Compiling Bitcoin Core on OS X
morsecoder
# Error Compiling Bitcoin Core on OS X

(Asked by: username_0 on 2014-10-21)

I am running OS X Yosemite. I cloned the [bitcoin repo](https://github.com/bitcoin/bitcoin) and checkout-ed the v0.9.3 tag to get the most recent stable version.

Then I followed the steps described [here](https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md) to compile the code.

It compiled for a long time, and then ended with the following error:

```
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [test_bitcoin] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

```

Has anyone seen this error before? Why was it caused? What can I do to fix it?

**Tags:** mac, compiling

> **Comments:**
> **username_1**: What messages do you see before that?  
> **username_1**: [Related issue on Bitcoin bug tracker](https://github.com/bitcoin/bitcoin/issues/3228). Have you tried recompiling [boost according to this guide](http://stackoverflow.com/questions/18888327/using-boost-on-xcode-5-apple-llvm-5-0)?  
> **username_0**: @username_1, I put the console output into https://github.com/Ziftr/bitcoin/blob/testing/console_error.txt. I tried doing something similar to that link you suggested, but I will try it again. Thanks.  
> **username_1**: [I think this guy had the same problem as you.](https://github.com/bitcoin/bitcoin/issues/5064) You can apply the patch manually, or just `git checkout master`  
> **username_1**: Did that fix it?  
> **username_0**: That does seem like the same issue, but I ended up getting a docker container image that worked. Takes forever to compile, but probably no getting around that. Will revisit this issue when I get a chance.  

---

## 0 answers

