Latest git source no longer compiles on darwin (osx 10.9.1) #3856

issue ghost opened this issue on March 12, 2014
  1. ghost commented at 8:40 PM on March 12, 2014: none
    $ make
    Making all in src
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
    Making all in .
      CXX      addrman.o
    clang: warning: argument unused during compilation: '-I .'
    clang: warning: argument unused during compilation: '-I /opt/local/include'
    clang: warning: argument unused during compilation: '-I /opt/local/include'
    clang: warning: argument unused during compilation: '-I /opt/local/include'
    clang: warning: argument unused during compilation: '-I /opt/local/include'
    clang: warning: argument unused during compilation: '-I ../src/obj'
    clang: warning: argument unused during compilation: '-I /opt/local/include/db48/'
    clang: warning: argument unused during compilation: '-I /opt/local/include'
    clang: warning: argument unused during compilation: '-I ../src/leveldb/include'
    clang: warning: argument unused during compilation: '-I ../src/leveldb/helpers/memenv'
    clang: warning: argument unused during compilation: '-I .'
    clang: warning: argument unused during compilation: '-I /opt/local/include/db48/'
    clang: warning: argument unused during compilation: '-isystem /opt/local/include'
    clang: warning: argument unused during compilation: '-I /opt/local/include/db48'
    clang: warning: argument unused during compilation: '-U _FORTIFY_SOURCE'
    In file included from addrman.cpp:5:
    In file included from ./addrman.h:8:
    In file included from ./netbase.h:13:
    In file included from ./serialize.h:9:
    In file included from ./allocators.h:14:
    In file included from /opt/local/include/boost/thread/once.hpp:20:
    In file included from /opt/local/include/boost/thread/pthread/once_atomic.hpp:20:
    In file included from /opt/local/include/boost/atomic.hpp:12:
    In file included from /opt/local/include/boost/atomic/atomic.hpp:17:
    In file included from /opt/local/include/boost/atomic/detail/platform.hpp:22:
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:961:49: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
        explicit base_atomic(value_type const& v) : v_(0)
                                                    ^  ~
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type' for 1st argument
    struct __attribute__ ((__aligned__(16))) storage128_type
                                             ^
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:968:22: error: no viable conversion from 'int' to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
            storage_type tmp = 0;
                         ^     ~
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
    struct __attribute__ ((__aligned__(16))) storage128_type
                                             ^
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:983:22: error: no viable conversion from 'int' to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
            storage_type tmp = 0;
                         ^     ~
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
    struct __attribute__ ((__aligned__(16))) storage128_type
                                             ^
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:997:22: error: no viable conversion from 'int' to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
            storage_type expected_s = 0, desired_s = 0;
                         ^            ~
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
    struct __attribute__ ((__aligned__(16))) storage128_type
                                             ^
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:997:38: error: no viable conversion from 'int' to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
            storage_type expected_s = 0, desired_s = 0;
                                         ^           ~
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
    struct __attribute__ ((__aligned__(16))) storage128_type
                                             ^
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:1013:22: error: no viable conversion from 'int' to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
            storage_type expected_s = 0, desired_s = 0;
                         ^            ~
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
    struct __attribute__ ((__aligned__(16))) storage128_type
                                             ^
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:1013:38: error: no viable conversion from 'int' to 'storage_type' (aka 'boost::atomics::detail::storage128_type')
            storage_type expected_s = 0, desired_s = 0;
                                         ^           ~
    /opt/local/include/boost/atomic/detail/gcc-atomic.hpp:932:42: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type &' for 1st argument
    struct __attribute__ ((__aligned__(16))) storage128_type
                                             ^
    7 errors generated.
    make[3]: *** [addrman.o] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all] Error 2
    make: *** [all-recursive] Error 1
    

    Boost version:

    $ port installed | grep boost
      boost [@1](/bitcoin-bitcoin/contributor/1/).55.0_1+no_single+no_static+python27 (active)
    
  2. bf0d7998-81ec-48d1-b236-076ed3c77581 commented at 8:35 AM on March 13, 2014: none

    Builds fine on 10.9.2 with homebrew.

  3. ghost commented at 9:24 PM on March 13, 2014: none

    I got it to work again after doing make clean.

  4. unknown closed this on Mar 13, 2014

  5. arowser commented at 1:54 AM on May 2, 2014: contributor

    Still happened on 10.9.2 after follow doc/build-osx.md steps.

    Workround: brew install boost --build-from-source --HEAD

  6. rebroad commented at 7:58 AM on May 2, 2014: contributor

    Raised #4118 to hopefully address this (for a long-term fix).

  7. sidhujag referenced this in commit e765f34321 on Dec 13, 2020
  8. 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 15:15 UTC

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