SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.08k stars 128 forks source link

[BUG] cant compile p2pool in termux #207

Closed fislysandi closed 1 year ago

fislysandi commented 1 year ago

basically i wanna mine some moneronies on my phone. since my phone is pretty much doing nothing piling dust so i thought to mine some XMR

i copy pasted the command everything works untill make -j$(nproc) and it fails

Phone:Xiaomi redmi note 9 Android: 11 MIUI:12.5.5

screenshots Screenshot_2022-10-06-19-32-30-517_com termux Screenshot_2022-10-06-19-31-37-254_com termux Screenshot_2022-10-06-19-31-44-006_com termux Screenshot_2022-10-06-19-31-52-656_com termux Screenshot_2022-10-06-19-31-58-362_com termux Screenshot_2022-10-06-19-32-13-493_com termux Screenshot_2022-10-06-19-32-18-186_com termux Screenshot_2022-10-06-19-32-07-403_com termuxng

SChernykh commented 1 year ago

It compiles and works fine in my Termux. It's some issue with your compiler and/or cmake because cmake shouldn't give errors. What do gcc --version, clang --version and cmake --version commands say?

Also note that Termux is not maintained in Google Play store, you have to install it from F-Droid for it to work properly.

fislysandi commented 1 year ago

i downloaded termux from fdroid forgot to mention.

fislysandi commented 1 year ago

Screenshot_2022-10-06-21-26-39-667_com termux

fislysandi commented 1 year ago

i made a syncthing thing that when i screenshot i have specific folder where it automatically syncs my screenshots to a pc. usefull.

fislysandi commented 1 year ago

full path to my cloned repo /com.termux/files/home/storage/shared/monero_mine/p2pool/build

maybe its related to file permissions?

ill try to build it inside of the termux home dir

EDIT:doing a clean build/git clone in my termux directory.

fislysandi commented 1 year ago

ok it seems like the compiler doesnt know where to look and dies . i got 5 % further in the compilation process

Screenshot_2022-10-06-21-53-14-198_com termux Screenshot_2022-10-06-21-53-22-522_com termux Screenshot_2022-10-06-21-53-29-694_com termux Screenshot_2022-10-06-21-53-34-594_com termux

try to compile p2p outside of termux filesystem and on your phone see if you can reproduce the issue

SChernykh commented 1 year ago

try to compile p2p outside of termux filesystem and on your phone see if you can reproduce the issue

Compiling in a directory with wrong file permissions is not P2Pool's issue.

fislysandi commented 1 year ago

oh. well what do i do now where can grab already compiled binaries then?

fislysandi commented 1 year ago

well if thats so ill try to do the same with a factory settings temrux then then ill try again.

fislysandi commented 1 year ago

NNNOPE still doesnt work. even after factory resettting termux settings its still stuck at 69% of compilation.

fislysandi commented 1 year ago

ill run p2pool in proot then and probably take a hash-rate performance decrease. since its not your priority and this will probably will never be fixed.

SChernykh commented 1 year ago

@fislysandi https://github.com/SChernykh/p2pool/commit/b9a9be27953c40262dec6f188c9ec38c2b7b9985 should fix this error.