Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building on Raspberry Pi armhf (arm 32bit) #273

Open
satindergrewal opened this issue Sep 20, 2021 · 2 comments
Open

Problem building on Raspberry Pi armhf (arm 32bit) #273

satindergrewal opened this issue Sep 20, 2021 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@satindergrewal
Copy link
Collaborator

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: nanomsg/nng#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 satindergrewal added bug Something isn't working help wanted Extra attention is needed labels Sep 20, 2021
@satindergrewal satindergrewal added this to the 0.1 - First Alpha milestone Sep 20, 2021
@satindergrewal satindergrewal added this to To do in Multiplayer release via automation Sep 20, 2021
@satindergrewal satindergrewal self-assigned this Sep 20, 2021
@sg777
Copy link
Collaborator

sg777 commented Sep 21, 2021

Thank you @satindergrewal.

@sg777 sg777 closed this as completed Sep 21, 2021
Multiplayer release automation moved this from To do to Done Sep 21, 2021
@sg777
Copy link
Collaborator

sg777 commented Sep 21, 2021

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

@sg777 sg777 reopened this Sep 21, 2021
Multiplayer release automation moved this from Done to In progress Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Multiplayer release
  
In progress
Development

No branches or pull requests

2 participants