bet icon indicating copy to clipboard operation
bet copied to clipboard

Problem building on Raspberry Pi armhf (arm 32bit)

Open satindergrewal opened this issue 2 years ago • 2 comments

Tried building bet on 32bit Raspberry OS and got libnng related errors. There is a relevant issue related to these errors on libnng, if that helps resolve this issue: https://github.com/nanomsg/nng/issues/1029

cc -g -fPIC -std=c99 -Werror -Wunused-variable -L/home/pi/bet/external/arm-linux-gnueabihf -I"/home/pi/bet/external/arm-linux-gnueabihf/libwebsockets-build/include" -I"/home/pi/bet/external/libwally-core/include" -I"/home/pi/bet/external/jsmn" -L"/home/pi/bet/external/arm-linux-gnueabihf/libwebsockets-build/lib"   -c heartbeat.c -o heartbeat.o  -I ../includes/curl
cc -g -fPIC -std=c99 -Werror -Wunused-variable -o bet bet.c cards777.o client.o commands.o gfshare.o host.o network.o oracle.o payment.o states.o table.o poker.o cashier.o storage.o config.o misc.o heartbeat.o ../crypto777/libcrypto777.a -L/home/pi/bet/external/arm-linux-gnueabihf -I"/home/pi/bet/external/arm-linux-gnueabihf/libwebsockets-build/include" -I"/home/pi/bet/external/libwally-core/include" -I"/home/pi/bet/external/jsmn" -L"/home/pi/bet/external/arm-linux-gnueabihf/libwebsockets-build/lib"   -lcurl -ldl -lnng -lpthread -lm -lwallycore -lsecp256k1 -ljsmn -lwebsockets -ldlg -L/usr/local/lib -lm -lgmp -lsqlite3 -L/usr/local/lib -lssl -lcrypto -levent -lpthread -lstdc++
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_add64':
posix_atomic.c:(.text+0x514): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_sub64':
posix_atomic.c:(.text+0x54c): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_get64':
posix_atomic.c:(.text+0x57c): undefined reference to `__atomic_load_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_set64':
posix_atomic.c:(.text+0x5d4): undefined reference to `__atomic_store_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_swap64':
posix_atomic.c:(.text+0x618): undefined reference to `__atomic_exchange_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_init64':
posix_atomic.c:(.text+0x670): undefined reference to `__atomic_store_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_inc64':
posix_atomic.c:(.text+0x6a8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_dec64_nv':
posix_atomic.c:(.text+0x6e0): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: /home/pi/bet/external/arm-linux-gnueabihf/libnng.a(posix_atomic.c.o): in function `nni_atomic_cas64':
posix_atomic.c:(.text+0x768): undefined reference to `__atomic_compare_exchange_8'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:54: bet] Error 1
make[1]: Leaving directory '/home/pi/bet/privatebet'
make: *** [Makefile:391: build_dep1] Error 2
rm external/arm-linux-gnueabihf/libwally-core-build/src/secp256k1/libsecp256k1.la
pi@raspiarm32:~/bet $

satindergrewal avatar Sep 20 '21 09:09 satindergrewal

Thank you @satindergrewal.

sg777 avatar Sep 21 '21 02:09 sg777

Sorry, i misread i'll look into it this weekend.

sg777 avatar Sep 21 '21 02:09 sg777