<p>This <a href="https://github.com/bitcoin/bitcoin/issues/12009" rel="nofollow noreferrer">issue</a> caused by newer versions of Boost was later solved. You may either checkout v0.15.2 or download the 0.15.2 tagged source code <a href="https://github.com/bitcoin/bitcoin/archive/v0.15.2.zip" rel="nofollow noreferrer">here</a></p>

CC BY-SA 4.0
2021-01-24T20:11:06.590Z
Tried it. Getting same errors. I only chose 0.15.0 because it's used in the book. Can I try latest version still understand what the book says? Is there a big difference?
Guga Todua
CC BY-SA 4.0
2021-01-25T09:04:48.963Z
@GugaTodua Yes, no, the build instructions haven't changed since
MCCCS
CC BY-SA 4.0
2021-01-24T19:26:49.150Z
2021-01-24T19:26:49.150Z
MCCCS
<p>I am trying to build Bitcoin Core on MacOs.
Followed instructions here <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md</a></p>
<p>When I run <strong>make</strong> command, I get these two errors</p>
<blockquote>
<p>2 errors generated.
make[2]: *** [libbitcoin_server_a-miner.o] Error 1
make[1]: *** [all-recursive] Error 1</p>
</blockquote>
<p>Tried <strong>sudo make</strong> but results are the same.</p>
<p>Bitcoin core version I'm working with is 0.15.0 (I know it's old but I'm trying to follow instructions from the 'Mastering Bitcoin' book)</p>
<p>EDIT : FULL ERROR</p>
<blockquote>
<p>In file included from /usr/local/include/boost/multi_index/ordered_index.hpp:17:
/usr/local/include/boost/multi_index/detail/ord_index_impl.hpp:1253:26: error:
no matching function for call to object of type 'const
boost::multi_index::detail::ordered_index_implboost::multi_index::identity&lt;CTxMemPoolModifiedEntry,
CompareModifiedEntry, boost::multi_index::detail::nth_layer&lt;2,
CTxMemPoolModifiedEntry,
boost::multi_index::indexed_by&lt;boost::multi_index::ordered_unique&lt;modifiedentry_iter,
CompareCTxMemPoolIter, mpl_::na&gt;,
boost::multi_index::ordered_non_unique&lt;boost::multi_index::tag&lt;ancestor_score,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na&gt;,
boost::multi_index::identity,
CompareModifiedEntry&gt;, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na&gt;,
std::<em><em>1::allocator &gt;,
boost::mpl::v_item&lt;ancestor_score, boost::mpl::vector0&lt;mpl</em>::na&gt;, 0&gt;,
boost::multi_index::detail::ordered_non_unique_tag,
boost::multi_index::detail::null_augment_policy&gt;::key_compare' (aka 'const
CompareModifiedEntry')
return y==header()||!comp</em>(key(y-&gt;value()),key(v));
^~~~~
./miner.h:74:10: note: candidate function not viable: 'this' argument has type
'const
boost::multi_index::detail::ordered_index_implboost::multi_index::identity&lt;CTxMemPoolModifiedEntry,
CompareModifiedEntry, boost::multi_index::detail::nth_layer&lt;2,
CTxMemPoolModifiedEntry,
boost::multi_index::indexed_by&lt;boost::multi_index::ordered_unique&lt;modifiedentry_iter,
CompareCTxMemPoolIter, mpl_::na&gt;,
boost::multi_index::ordered_non_unique&lt;boost::multi_index::tag&lt;ancestor_score,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na&gt;,
boost::multi_index::identity,
CompareModifiedEntry&gt;, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na&gt;,
std::_<em>1::allocator &gt;,
boost::mpl::v_item&lt;ancestor_score, boost::mpl::vector0&lt;mpl</em>::na&gt;, 0&gt;,
boost::multi_index::detail::ordered_non_unique_tag,
boost::multi_index::detail::null_augment_policy&gt;::key_compare' (aka 'const
CompareModifiedEntry'), but method is not marked const
bool operator()(const CTxMemPoolModifiedEntry &amp;a, const CTxMemPoolMo...
^
2 errors generated.
make[2]: *** [libbitcoin_server_a-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1</p>
</blockquote>

CC BY-SA 4.0
2021-01-24T18:09:51.003Z
This can't be the only error printed. Can you see any other error above?
MCCCS
CC BY-SA 4.0
2021-01-24T19:19:11.537Z
@MCCCS Right. Editted the post
Guga Todua
<bitcoin-core>
Two errors when trying to run make command
Guga Todua
# Two errors when trying to run make command

(Asked by: username_0 on 2021-01-24)

I am trying to build Bitcoin Core on MacOs.
Followed instructions here <https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md>

When I run **make** command, I get these two errors

> 2 errors generated.
> make[2]: \*\*\* [libbitcoin\_server\_a-miner.o] Error 1
> make[1]: \*\*\* [all-recursive] Error 1

Tried **sudo make** but results are the same.

Bitcoin core version I'm working with is 0.15.0 (I know it's old but I'm trying to follow instructions from the 'Mastering Bitcoin' book)

EDIT : FULL ERROR

> In file included from /usr/local/include/boost/multi\_index/ordered\_index.hpp:17:
> /usr/local/include/boost/multi\_index/detail/ord\_index\_impl.hpp:1253:26: error:
> no matching function for call to object of type 'const
> boost::multi\_index::detail::ordered\_index\_implboost::multi\_index::identity,
> boost::multi\_index::ordered\_non\_unique,
> boost::multi\_index::identity,
> CompareModifiedEntry>, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na,
> mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na,
> mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na>,
> std::**1::allocator >,
> boost::mpl::v\_item::na>, 0>,
> boost::multi\_index::detail::ordered\_non\_unique\_tag,
> boost::multi\_index::detail::null\_augment\_policy>::key\_compare' (aka 'const
> CompareModifiedEntry')
> return y==header()||!comp*(key(y->value()),key(v));
> ^~~~~
> ./miner.h:74:10: note: candidate function not viable: 'this' argument has type
> 'const
> boost::multi\_index::detail::ordered\_index\_implboost::multi\_index::identity,
> boost::multi\_index::ordered\_non\_unique,
> boost::multi\_index::identity,
> CompareModifiedEntry>, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na,
> mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na,
> mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na, mpl\_::na>,
> std::\_*1::allocator >,
> boost::mpl::v\_item::na>, 0>,
> boost::multi\_index::detail::ordered\_non\_unique\_tag,
> boost::multi\_index::detail::null\_augment\_policy>::key\_compare' (aka 'const
> CompareModifiedEntry'), but method is not marked const
> bool operator()(const CTxMemPoolModifiedEntry &a, const CTxMemPoolMo...
> ^
> 2 errors generated.
> make[2]: \*\*\* [libbitcoin\_server\_a-miner.o] Error 1
> make[1]: \*\*\* [all-recursive] Error 1
> make: \*\*\* [all-recursive] Error 1**

**Tags:** bitcoin-core

> **Comments:**
> **username_1**: This can't be the only error printed. Can you see any other error above?  
> **username_0**: @username_1 Right. Editted the post  

---

## 1 answers

### Answer by username_1 on 2021-01-24. Score: 1 | Accepted answer

This [issue](https://github.com/bitcoin/bitcoin/issues/12009) caused by newer versions of Boost was later solved. You may either checkout v0.15.2 or download the 0.15.2 tagged source code [here](https://github.com/bitcoin/bitcoin/archive/v0.15.2.zip)

> **Comments:**
> **username_0**: Tried it. Getting same errors. I only chose 0.15.0 because it's used in the book. Can I try latest version still understand what the book says? Is there a big difference?  
> **username_1**: @GugaTodua Yes, no, the build instructions haven't changed since  

---

