BitShares Forum
Main => Technical Support => Topic started by: zhangweis on March 14, 2015, 12:04:30 am
-
I tried gcc and clang with the similiar errors like below. I guess it's because salsa20.s doesn't support arm. What is this salsa20 for and can I make it work with arm? Can we turn it into C to make it compile or is there a way to bypass this?
[ 23%] Building C object libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o
clang: warning: argument unused during compilation: '-std=c99'
clang: warning: argument unused during compilation: '-D NDEBUG'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/include'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/cyoencode-1.0.2/src'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/boost_1.51/include'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/salsa20'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/easylzma/src'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/udt4/src'
bitshares/libraries/fc/vendor/salsa20/salsa20.s:279:5: error: unexpected token in operand
mov %esp,%eax
^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:280:9: error: unexpected token in operand
and $31,%eax
^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:281:10: error: unexpected token in operand
add $640,%eax
^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:282:5: error: unexpected token in operand
sub %eax,%esp
^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:287:6: error: unexpected token in operand
movl %eax,0(%esp)
^
-
Seems solved by commenting all the salsa related lines in libraries/fc/CMakeLists.txt
I also want to mention that I have to use export LC_ALL="en_GB.UTF-8" instead of en_US as I don't have locale en_US preinstalled on my raspbian.
-
I'm also getting this error early on:
In file included from /home/pi/graphene/graphene/libraries/fc/vendor/secp256k1-zkp/src/secp256k1.c:11:0:
/home/pi/graphene/graphene/libraries/fc/vendor/secp256k1-zkp/src/util.h:102:37: error: ‘__int128’ is not supported for this target
SECP256K1_GNUC_EXT typedef unsigned __int128 uint128_t;
which, according to:
http://raspberrypi.stackexchange.com/questions/3919/using-128bit-integers-in-gcc
__int128 isn't defined on raspberry pi
-
Seems solved by commenting all the salsa related lines in libraries/fc/CMakeLists.txt
I also want to mention that I have to use export LC_ALL="en_GB.UTF-8" instead of en_US as I don't have locale en_US preinstalled on my raspbian.
I think you can just comment out:
#SET(SALSA_SRC vendor/salsa20/salsa20.s)
and it will work. It's already checking if it is not apple, it should also check if it is not x86 or x86_64
-
Recently removed salsa20 from build; should be gone in upcoming versions: https://github.com/bitshares/bitshares/issues/1089#issuecomment-114653757