You are viewing a single comment's thread from:

RE: [Tutorial] [Mining] Get rich the old fashioned way!

in #steem8 years ago (edited)

Unfortunately I'm stuck with the build. I get the following error (Arch Linux, updated today):

[ 10%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/uint128.cpp.o
In file included from /usr/include/boost/config.hpp:61:0,
                 from /usr/include/boost/container/flat_map.hpp:14,
                 from /home/sevcsik/dl/steem/libraries/fc/include/fc/container/flat_fwd.hpp:2,
                 from /home/sevcsik/dl/steem/libraries/fc/include/fc/reflect/typename.hpp:10,
                 from /home/sevcsik/dl/steem/libraries/fc/include/fc/reflect/reflect.hpp:18,
                 from /home/sevcsik/dl/steem/libraries/fc/include/fc/time.hpp:138,
                 from /home/sevcsik/dl/steem/libraries/fc/include/fc/log/logger.hpp:3,
                 from /home/sevcsik/dl/steem/libraries/fc/include/fc/exception/exception.hpp:6,
                 from /home/sevcsik/dl/steem/libraries/fc/include/fc/uint128.hpp:6,
                 from /home/sevcsik/dl/steem/libraries/fc/src/uint128.cpp:1:
/usr/include/boost/multiprecision/cpp_int.hpp:193:4: error: right operand of shift expression ‘(1u << 63u)’ is >= than the precision of the left operand [-fpermissive]
    BOOST_STATIC_CONSTANT(limb_type, sign_bit_mask = 1u << (limb_bits - 1));
    ^

My boost version is 1.60.0-5. Cheers

Sort:  

Adding -fpermissive to CXX_FLAGS in flags.cmake files seems to be a workaround. Command:
sed -ie 's/CXX_FLAGS = /CXX_FLAGS =-fpermissive /' **/flags.make

error code
I seem to have the same problem, and your workaround does not seem to work.. Any suggestions?

@edit: I had a problem allocating the make files..**/flags.make was not working.. Did it this way:

find -iname flags.make >> tmp
cat ./tmp | while read line; do sed -ie 's/CXX_FLAGS = /CXX_FLAGS =-fpermissive /' $line;done

Thank you for the "solution" :D

That saved me some time. Cheers

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 59220.04
ETH 2316.03
USDT 1.00
SBD 2.51