[BTC-dev] Gentoo/AMD64 madness, do not eat

Jon Keefe jonkeefe at gmail.com
Fri Apr 3 19:25:28 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Attached pill is poison and should not be consumed by humans.
For non-human life forms running gentoo on amd64 only.

- -Kills a couple of uint32_t hangups.
- -Puts openssl headers in 'ourlibs' with the rest.

$ shasum nubs-gentoo-madness.patch 
ccbca884068310eff1edcd0433dcfa28159a51f1  nubs-gentoo-madness.patch

NOTE: bitcoind still doesn't build -- see the following output.
==========
g++ -pthread -Wno-invalid-offsetof -Wformat -g -DNOPCH -I/home/nubs/dev/bitcoin-v0_5_3_1/ourlibs/include -I/home/nubs/dev/bitcoin-v0_5_3_1/ourlibs/include -I/home/nubs/dev/bitcoin-v0_5_3_1/ourlibs/include -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -o bitcoind obj/nogui/checkpoints.o obj/nogui/crypter.o obj/nogui/db.o obj/nogui/init.o obj/nogui/irc.o obj/nogui/keystore.o obj/nogui/main.o obj/nogui/net.o obj/nogui/protocol.o obj/nogui/bitcoinrpc.o obj/nogui/script.o obj/nogui/util.o obj/nogui/wallet.o  -L/home/nubs/dev/bitcoin-v0_5_3_1/ourlibs/lib -L/home/nubs/dev/bitcoin-v0_5_3_1/ourlibs/lib -L/home/nubs/dev/bitcoin-v0_5_3_1/ourlibs/lib -Wl,-Bstatic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -static-libgcc -Wl,-Bstatic -l pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.7/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.7/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcrypto
obj/nogui/bitcoinrpc.o: In function `getaddrinfo':
/home/nubs/dev/bitcoin-v0_5_3_1/ourlibs/include/boost/asio/detail/impl/socket_ops.ipp:2900: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
obj/nogui/net.o: In function `Lookup(char const*, std::vector<CAddress, std::allocator<CAddress> >&, int, int, bool, int, bool)':
/home/nubs/dev/bitcoin-v0_5_3_1/bitcoin/src/net.cpp:237: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: ld returned 1 exit status
makefile.unix:127: recipe for target 'bitcoind' failed
make: *** [bitcoind] Error 1
strip: 'bitcoind': No such file
Done!
==========

Maybe unrelated, but there's a few Boost targets that don't get built:
==========
gcc.compile.c++ bin.v2/libs/context/build/gcc-x86_64/release/address-model-64/link-static/threading-multi/fcontext.o
libs/context/src/fcontext.cpp: In function ‘void* boost::context::detail::align_stack(void*)’:
libs/context/src/fcontext.cpp:25: error: ‘uintptr_t’ was not declared in this scope
libs/context/src/fcontext.cpp:25: error: expected ‘)’ before ‘base’
libs/context/src/fcontext.cpp:26: error: expected ‘)’ before ‘;’ token
libs/context/src/fcontext.cpp:26: error: expected ‘)’ before ‘;’ token

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -m64  -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/context/build/gcc-x86_6$

...failed gcc.compile.c++ bin.v2/libs/context/build/gcc-x86_64/release/address-model-64/link-static/threading-multi/fcontext.o...
gcc.compile.c++ bin.v2/libs/context/build/gcc-x86_64/release/address-model-64/link-static/threading-multi/guarded_stack_allocator_posix.o
libs/context/src/guarded_stack_allocator_posix.cpp: In function ‘rlimit<unnamed>::stacksize_limit_()’:
libs/context/src/guarded_stack_allocator_posix.cpp:49: warning: unused variable ‘result’
libs/context/src/guarded_stack_allocator_posix.cpp: In member function ‘void* boost::context::guarded_stack_allocator::allocate(size_t) const’:
libs/context/src/guarded_stack_allocator_posix.cpp:124: warning: unused variable ‘result’
gcc.compile.c++ bin.v2/libs/context/build/gcc-x86_64/release/address-model-64/link-static/threading-multi/utils_posix.o
...skipped <pbin.v2/libs/context/build/gcc-x86_64/release/address-model-64/link-static/threading-multi>libboost_context.a(clean) for lack of <pbin.v2/libs/context/buil$
...skipped <pbin.v2/libs/context/build/gcc-x86_64/release/address-model-64/link-static/threading-multi>libboost_context.a for lack of <pbin.v2/libs/context/build/gcc-x$
...skipped <pstage/lib>libboost_context.a for lack of <pbin.v2/libs/context/build/gcc-x86_64/release/address-model-64/link-static/threading-multi>libboost_context.a...
==========

Input on all of the above -- as well as the included hatchet job -- is welcome.

Yours,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVHugBAAoJEGVuThN8d5ck8eAP/3eWLSQrBGC0jAXHyrb7XlKw
LenyJYFDw8x7GDmOB6e4KeUk5foRvljgUhhnKXM4pmY5/USdPi0W+gYY0Vpber6v
ctjPNaMDXD6wzxfxJ9aUvr36mnEHa8GgbcRGW9bwSfdXl4By41AIKr0bgQ3DAnaG
RkuGXwiuSCDJrZOWRevGAABTQ+688wqEcxEa6ACvWlmWF4fuBBzHTfLxm5JCN6da
1/spD4+N/6SF5rNme6y0P9F/c3hzxNktYc3Kp01I4szTbwrw+VXRoAcKQyXRkV0L
SRaaSUA+1VuMXpUYkC6usqAispkq86rUBcZ5QHrBibUlC1MHaIeO8i0mxMm/CtIz
f+p2ujNy5034zH9ZJmodgWb+EI6ShVnyGWtPKGui2ELGvv9Yt5dInM9hSNM8ZsJ+
CcEeRrUM5Ejbp1BHNpEgRApsU/yi5jVMH0cOCnUqOzgqdWv3mCJ8DBnJC2Ww+7sJ
gDf/B1VA7q9GZL1qO6/bWZyy2XlC5AK2inB0uLYZ7Ruar06Oy60AxYu7IosCTSrC
EGMEEJVmhndzKMJawMJaWP8K0BjCvr31A7eKmpvMDFVU21fLjDDpqnYmWiIcuAGa
hOlt8p7Uhoet/fvmtYAWVEAighut3J1Pr0K2rtUcqSsJU5hDAzXm9Q+NPwuM0vwQ
RdLZeMTjVTqVkvpciCC1
=5UwA
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nubs-gentoo-madness_ccbca884068310eff1edcd0433dcfa28159a51f1.patch
Type: application/octet-stream
Size: 1967 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150403/nubs-gentoo-madness_ccbca884068310eff1edcd0433dcfa28159a51f1_ccbca884068310eff1edcd0433dcfa28159a51f1.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nubs-gentoo-madness_ccbca884068310eff1edcd0433dcfa28159a51f1.patch.sig
Type: application/octet-stream
Size: 543 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150403/nubs-gentoo-madness_ccbca884068310eff1edcd0433dcfa28159a51f1_1558fd1a372279c9924b48705d63f01cc88c00b2.patch.sig>


More information about the BTC-dev mailing list