’" #9782"> ’" #9782"> Building on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’" #9782

Building on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’" #9782

issue GameKyuubi opened this issue on February 17, 2017
  1. GameKyuubi commented at 1:18 PM on February 17, 2017: none

    When building on AWS Ubuntu 16.04 I get an error

      CXX      rpcrawtransaction.o
    In file included from /usr/include/boost/move/detail/type_traits.hpp:34:0,
                     from /usr/include/boost/move/core.hpp:54,
                     from /usr/include/boost/move/utility_core.hpp:29,
                     from /usr/include/boost/move/utility.hpp:28,
                     from /usr/include/boost/thread/detail/move.hpp:27,
                     from /usr/include/boost/thread/lock_types.hpp:11,
                     from /usr/include/boost/thread/pthread/mutex.hpp:16,
                     from /usr/include/boost/thread/mutex.hpp:16,
                     from allocators.h:13,
                     from serialize.h:9,
                     from bignum.h:9,
                     from chainparams.h:9,
                     from base58.h:17,
                     from rpcrawtransaction.cpp:6:
    /usr/include/boost/variant/get.hpp: In instantiation of ‘typename boost::add_reference<T>::type boost::strict_get(boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>&) [with U = const CScriptID&; T0 = CNoDestination; T1 = CKeyID; T2 = CScriptID; T3 = boost::detail::variant::void_; T4 = boost::detail::variant::void_; T5 = boost::detail::variant::void_; T6 = boost::detail::variant::void_; T7 = boost::detail::variant::void_; T8 = boost::detail::variant::void_; T9 = boost::detail::variant::void_; T10 = boost::detail::variant::void_; T11 = boost::detail::variant::void_; T12 = boost::detail::variant::void_; T13 = boost::detail::variant::void_; T14 = boost::detail::variant::void_; T15 = boost::detail::variant::void_; T16 = boost::detail::variant::void_; T17 = boost::detail::variant::void_; T18 = boost::detail::variant::void_; T19 = boost::detail::variant::void_; typename boost::add_reference<T>::type = const CScriptID&]’:
    /usr/include/boost/variant/get.hpp:284:25:   required from ‘typename boost::add_reference<T>::type boost::get(boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>&) [with U = const CScriptID&; T0 = CNoDestination; T1 = CKeyID; T2 = CScriptID; T3 = boost::detail::variant::void_; T4 = boost::detail::variant::void_; T5 = boost::detail::variant::void_; T6 = boost::detail::variant::void_; T7 = boost::detail::variant::void_; T8 = boost::detail::variant::void_; T9 = boost::detail::variant::void_; T10 = boost::detail::variant::void_; T11 = boost::detail::variant::void_; T12 = boost::detail::variant::void_; T13 = boost::detail::variant::void_; T14 = boost::detail::variant::void_; T15 = boost::detail::variant::void_; T16 = boost::detail::variant::void_; T17 = boost::detail::variant::void_; T18 = boost::detail::variant::void_; T19 = boost::detail::variant::void_; typename boost::add_reference<T>::type = const CScriptID&]’
    rpcrawtransaction.cpp:299:77:   required from here
    /usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’
         BOOST_STATIC_ASSERT_MSG(
         ^
    Makefile:838: recipe for target 'rpcrawtransaction.o' failed
    make[3]: *** [rpcrawtransaction.o] Error 1
    make[3]: Leaving directory '/home/ubuntu/source/bitcoin/src'
    Makefile:860: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory '/home/ubuntu/source/bitcoin/src'
    Makefile:652: recipe for target 'all' failed
    make[1]: *** [all] Error 2
    make[1]: Leaving directory '/home/ubuntu/source/bitcoin/src'
    Makefile:509: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 1
    

    To reproduce:

    1. Make new AWS micro Ubuntu 16.04 instance
    2. Install prereqs per build-unix.md
    3. ./autogen.sh
    4. ./config --without-gui
    5. make

    make should build bitcoind

    instead, an error prevents this

    using version 0.9.5, also tried 0.9.5rc2

    • OS: Ubuntu 16.04
    • CPU:
    • RAM:
    • Disk size: 150gb
    • Disk Type (HD/SDD):
  2. GameKyuubi renamed this:
    When running make on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type" ‘boost::STATIC_ASSERTION_FAILURE<false>’ BOOST_STATIC_ASSERT_MSG(
    When running make on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type" ‘boost::STATIC_ASSERTION_FAILURE<false>’
    on Feb 17, 2017
  3. GameKyuubi renamed this:
    When running make on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type" ‘boost::STATIC_ASSERTION_FAILURE<false>’
    Building on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type" ‘boost::STATIC_ASSERTION_FAILURE<false>’
    on Feb 17, 2017
  4. GameKyuubi renamed this:
    Building on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type" ‘boost::STATIC_ASSERTION_FAILURE<false>’
    Building on Ubuntu 16.04: "error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’"
    on Feb 17, 2017
  5. MarcoFalke commented at 1:23 PM on February 17, 2017: member

    ​> using version 0.9.5, also tried 0.9.5rc2

    According to https://bitcoincore.org/en/lifecycle/ this version is EOL for a year now. Please try a more recent version.

  6. GameKyuubi commented at 1:30 PM on February 17, 2017: none

    Ha, higher versions were hiding offscreen. Thanks.

  7. laanwj closed this on Feb 17, 2017

  8. Bushstar commented at 8:33 PM on September 25, 2017: contributor

    Second result for this on Google so here's the fix for anyone who stumbles in here.

    https://github.com/bitcoin/bitcoin/pull/6114/commits/824c011d165cc352088f8e238f66b829b0e654ed

  9. achillez commented at 4:06 AM on October 22, 2017: none

    That fixed it - thanks!

  10. MarcoFalke deleted a comment on Apr 26, 2018
  11. MarcoFalke deleted a comment on Apr 26, 2018
  12. DrahtBot locked this on Sep 8, 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-17 21:15 UTC

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