Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
Created November 26, 2013 04:21
Show Gist options
  • Save BlinkyStitt/7653419 to your computer and use it in GitHub Desktop.
Save BlinkyStitt/7653419 to your computer and use it in GitHub Desktop.
libbitcoin mavericks build failure
[bwstitt:~] 1 $ brew install wysenynja/bitcoin/libbitcoin --verbose
==> Cloning https://github.com/spesmilo/libbitcoin.git
git --git-dir /Library/Caches/Homebrew/libbitcoin--git/.git status -s
Updating /Library/Caches/Homebrew/libbitcoin--git
git config remote.origin.url https://github.com/spesmilo/libbitcoin.git
git config remote.origin.fetch +refs/tags/v1.4:refs/tags/v1.4
git --git-dir /Library/Caches/Homebrew/libbitcoin--git/.git rev-parse -q --verify v1.4
git checkout -f v1.4
HEAD is now at 0cd3b04... incorrect version number in version.hpp - corrected it.
git reset --hard v1.4
HEAD is now at 0cd3b04 incorrect version number in version.hpp - corrected it.
==> Checking out tag v1.4
git checkout-index -a -f --prefix=/private/tmp/libbitcoin-5Nvx/
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file libbitcoin.pc.in
==> autoreconf -i
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
glibtoolize: copying file `build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
glibtoolize: copying file `m4/libtool.m4'
glibtoolize: copying file `m4/ltoptions.m4'
glibtoolize: copying file `m4/ltsugar.m4'
glibtoolize: copying file `m4/ltversion.m4'
glibtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:7: installing 'build-aux/ar-lib'
configure.ac:2: installing 'build-aux/compile'
configure.ac:8: installing 'build-aux/config.guess'
configure.ac:8: installing 'build-aux/config.sub'
configure.ac:6: installing 'build-aux/install-sh'
configure.ac:6: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
==> ./configure --enable-leveldb --prefix=/usr/local/Cellar/libbitcoin/1.4
checking for gcc... gcc-4.8
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-4.8 accepts -g... yes
checking for gcc-4.8 option to accept ISO C89... none needed
checking whether gcc-4.8 understands -c and -o together... yes
checking how to run the C preprocessor... gcc-4.8 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/sh: /Users/bwstitt/missing: No such file or directory
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc-4.8... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc-4.8... g++-4.8
checking if the linker (g++-4.8) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin13.0.0 file names to x86_64-apple-darwin13.0.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin13.0.0 file names to toolchain format... func_convert_file_noop
checking for g++-4.8 option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking whether we are using the GNU C++ compiler... yes
checking whether g++-4.8 accepts -g... yes
checking dependency style of g++-4.8... gcc3
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc-4.8 object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc-4.8 supports -fno-rtti -fno-exceptions... yes
checking for gcc-4.8 option to produce PIC... -fno-common -DPIC
checking if gcc-4.8 PIC flag -fno-common -DPIC works... yes
checking if gcc-4.8 static flag -static works... no
checking if gcc-4.8 supports -c -o file.o... yes
checking if gcc-4.8 supports -c -o file.o... (cached) yes
checking whether the gcc-4.8 linker (g++-4.8) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++-4.8 -E
checking for ld used by g++-4.8... g++-4.8
checking if the linker (g++-4.8) is GNU ld... no
checking whether the g++-4.8 linker (g++-4.8) supports shared libraries... yes
checking for g++-4.8 option to produce PIC... -fno-common -DPIC
checking if g++-4.8 PIC flag -fno-common -DPIC works... yes
checking if g++-4.8 static flag -static works... no
checking if g++-4.8 supports -c -o file.o... yes
checking if g++-4.8 supports -c -o file.o... (cached) yes
checking whether the g++-4.8 linker (g++-4.8) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++-4.8 accepts -g... (cached) yes
checking dependency style of g++-4.8... (cached) gcc3
checking whether g++-4.8 supports C++11 features by default... no
checking whether g++-4.8 supports C++11 features with -std=c++11... yes
checking whether make supports nested variables... (cached) yes
checking --enable-testnet argument... no
checking for boostlib >= 1.20.0... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SSL... yes
checking for CURL... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/bitcoin/Makefile
config.status: creating src/Makefile
config.status: creating libbitcoin.pc
config.status: executing depfiles commands
config.status: executing libtool commands
==> make
Making all in include/bitcoin
make[1]: Nothing to be done for `all'.
Making all in src
CXX deterministic_wallet.lo
CXX satoshi_serialize.lo
CXX getx_responder.lo
CXX threadpool.lo
In file included from satoshi_serialize.cpp:1:
In file included from ./../include/bitcoin/satoshi_serialize.hpp:4:
./../include/bitcoin/constants.hpp:47:29: error: cannot omit braces around initialization of subobject when using direct list-initialization
const hash_digest null_hash{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../include/bitcoin/constants.hpp:49:34: error: cannot omit braces around initialization of subobject when using direct list-initialization
const short_hash null_short_hash{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from getx_responder.cpp:3:
In file included from ./../include/bitcoin/network/channel.hpp:15:
In file included from ./../include/bitcoin/network/shared_const_buffer.hpp:7:
In file included from ./../include/bitcoin/utility/serializer.hpp:8:
In file included from ./../include/bitcoin/format.hpp:8:
./../include/bitcoin/constants.hpp:47:29: error: cannot omit braces around initialization of subobject when using direct list-initialization
const hash_digest null_hash{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../include/bitcoin/constants.hpp:49:34: error: cannot omit braces around initialization of subobject when using direct list-initialization
const short_hash null_short_hash{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
make[1]: *** [satoshi_serialize.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from deterministic_wallet.cpp:8:
./../include/bitcoin/constants.hpp:47:29: error: cannot omit braces around initialization of subobject when using direct list-initialization
const hash_digest null_hash{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../include/bitcoin/constants.hpp:49:34: error: cannot omit braces around initialization of subobject when using direct list-initialization
const short_hash null_short_hash{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
make[1]: *** [deterministic_wallet.lo] Error 1
2 errors generated.
make[1]: *** [getx_responder.lo] Error 1
make: *** [all-recursive] Error 1
==> Formula
Tap: wysenynja/bitcoin
Path: /usr/local/Library/Taps/wysenynja-bitcoin/libbitcoin.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 370c9c92d533f8c2b3c69a750cf3330af67fbe65
CPU: quad-core 64-bit sandybridge
OS X: 10.9-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
X11: 2.7.4 => /opt/X11
==> ENV
LD: g++-4.8
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/curl:/usr/local/opt/openssl:/usr/local/opt/boost-gcc48:/usr/local/opt/leveldb-gcc48:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_VERBOSE: 1
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/opt/python/bin:/usr/local/Library/ENV/4.3:/usr/local/opt/automake/bin:/usr/local/opt/curl/bin:/usr/local/opt/gcc48/bin:/usr/local/opt/openssl/bin:/usr/local/opt/leveldb-gcc48/bin:/usr/local/opt/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Error: libbitcoin did not build
Logs:
/Users/bwstitt/Library/Logs/Homebrew/libbitcoin/01.autoreconf
/Users/bwstitt/Library/Logs/Homebrew/libbitcoin/02.configure
/Users/bwstitt/Library/Logs/Homebrew/libbitcoin/02.configure.cc
/Users/bwstitt/Library/Logs/Homebrew/libbitcoin/03.make
/Users/bwstitt/Library/Logs/Homebrew/libbitcoin/03.make.cc
/Users/bwstitt/Library/Logs/Homebrew/libbitcoin/config.log
@BlinkyStitt
Copy link
Author

this was brew lying to me and not actually using g++-4.8 and instead using a symlink to cc. Fix is on my tap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment