Failing to build, qt/bitcoin.cpp #13225

issue angelagilhotra opened this issue on May 13, 2018
  1. angelagilhotra commented at 7:51 AM on May 13, 2018: none

    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.
      ^~~~~
    ...
    ...
    
  2. fanquake added the label Linux/Unix on May 13, 2018
  3. ken2812221 commented at 7:58 AM on May 13, 2018: contributor

    Did you try make clean and compile it again?

  4. angelagilhotra commented at 7:59 AM on May 13, 2018: none

    @ken2812221 yeah I did The error persists

  5. ken2812221 commented at 8:14 AM on May 13, 2018: contributor

    Can you show your config.log?

  6. angelagilhotra commented at 8:18 AM on May 13, 2018: none
  7. ken2812221 commented at 8:38 AM on May 13, 2018: contributor

    Can you try run PATH=$(echo $PATH|sed 's/\/usr\/local\/bin://') ./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768". I think you have two version of protobuf

  8. angelagilhotra commented at 9:43 AM on May 13, 2018: none

    @ken2812221 nope, didn't work, same error Should I be removing one version to remove ambiguity?

  9. angelagilhotra closed this on May 13, 2018

  10. angelagilhotra reopened this on May 13, 2018

  11. angelagilhotra commented at 9:45 AM on May 13, 2018: none

    oops, sorry closed by mistake :sweat_smile:

  12. angelagilhotra commented at 9:52 AM on May 13, 2018: none

    I did protoc --version and got

    libprotoc 3.2.0
    
  13. ken2812221 commented at 10:02 AM on May 13, 2018: contributor

    The newest official version for 17.10 is 3.0.0, so I think you should get rid of version 3.2.0 and install official pack

  14. angelagilhotra commented at 11:42 AM on May 13, 2018: none

    @ken2812221 It worked! I had to perform make clean before building. I used the configure command you suggested: PATH=$(echo $PATH|sed 's/\/usr\/local\/bin://') ./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768" Thanks!

    What does PATH=$(echo $PATH|sed 's/\/usr\/local\/bin://') before ./configure do ? Should I still be replacing protoc 3.2.0 with 3.0.0 ?

  15. angelagilhotra closed this on May 13, 2018

  16. vctt94 commented at 8:36 PM on February 1, 2019: none

    had the same problem.

    Running PATH=$(echo $PATH|sed 's/\/usr\/local\/bin://') ./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768" Also fixed it.

  17. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me