<p>That error means that protoc was updated since paymentrequest.pb.h was generated (it is not part of the source distribution, protoc generates it). Do <code>make clean</code> and then <code>make</code>. That should fix this error.</p>

CC BY-SA 4.0
2018-05-13T16:08:02.273Z
2018-05-13T16:08:02.273Z
Ava Chow
<p>I'm building from source v0.16.0 on Ubuntu 17.10
I cloned the repo, checked out on v0.16.0, ran <code>./autogen.sh</code> followed by <code>./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"</code></p>

<p>the make command however produces the following error:</p>

<pre><code>Makefile:8224: recipe for target 'qt/qt_bitcoin_qt-bitcoin.o' failed
make[2]: *** [qt/qt_bitcoin_qt-bitcoin.o] Error 1
make[2]: Leaving directory '/home/angelag/src/bitcoin/src'
Makefile:9462: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/angelag/src/bitcoin/src'
Makefile:747: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
</code></pre>

<p>from the output of make command the errors started here:</p>

<pre><code>...
...
CXX      qt/qt_bitcoin_qt-bitcoin.o
In file included from ./qt/paymentrequestplus.h:10:0,
                 from ./qt/paymentserver.h:35,
                 from qt/bitcoin.cpp:25:
./qt/paymentrequest.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^~~~~
./qt/paymentrequest.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^~~~~
./qt/paymentrequest.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^~~~~
...
...
</code></pre>

CC BY-SA 4.0
2018-05-13T11:42:13.277Z
I take it you have the dependencies specified in `build-unix.md` specific section Linux Distribution Specific Instructions - Ubuntu & Debian - all sections therein?
Willtech
<bitcoin-core><bitcoin-core-development><bitcoin-qt-setup>
Failed to build Bitcoin Core from source, Ubuntu 17.10
Ang
# Failed to build Bitcoin Core from source, Ubuntu 17.10

(Asked by: username_0 on 2018-05-13)

I'm building from source v0.16.0 on Ubuntu 17.10
I cloned the repo, checked out on v0.16.0, ran `./autogen.sh` followed by `./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"`

the make command however produces the following error:

```
Makefile:8224: recipe for target 'qt/qt_bitcoin_qt-bitcoin.o' failed
make[2]: *** [qt/qt_bitcoin_qt-bitcoin.o] Error 1
make[2]: Leaving directory '/home/angelag/src/bitcoin/src'
Makefile:9462: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/angelag/src/bitcoin/src'
Makefile:747: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

```

from the output of make command the errors started here:

```
...
...
CXX      qt/qt_bitcoin_qt-bitcoin.o
In file included from ./qt/paymentrequestplus.h:10:0,
                 from ./qt/paymentserver.h:35,
                 from qt/bitcoin.cpp:25:
./qt/paymentrequest.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^~~~~
./qt/paymentrequest.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^~~~~
./qt/paymentrequest.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^~~~~
...
...

```

**Tags:** bitcoin-core, bitcoin-core-development, bitcoin-qt-setup

> **Comments:**
> **username_1**: I take it you have the dependencies specified in `build-unix.md` specific section Linux Distribution Specific Instructions - Ubuntu & Debian - all sections therein?  

---

## 1 answers

### Answer by username_2 on 2018-05-13. Score: 0 | Accepted answer

That error means that protoc was updated since paymentrequest.pb.h was generated (it is not part of the source distribution, protoc generates it). Do `make clean` and then `make`. That should fix this error.


---

