Closed Saikatsaha1996 closed 2 years ago
Android doesn't support all posix threading stuff. However there is a work around.
Include this file in files where you get pthread related errors. I trust you can do that independently.
Android doesn't support all posix threading stuff. However there is a work around.
Include this file in files where you get pthread related errors. I trust you can do that independently.
Thank you I will try π
Android doesn't support all posix threading stuff. However there is a work around.
Include this file in files where you get pthread related errors. I trust you can do that independently.
Can you guide me where I need to add this file? I already installed libbthread
Include it wherever you receive pthread errors. From the error in you original message, you should include the file in sgminer.c
. You may still get errors in other places.
Include it wherever you receive pthread errors. From the error in you original message, you should include the file in
sgminer.c
. You may still get errors in other places.
Please @Pyogenics help me sir.. after add #include
Try #include <pthread>
in bthread.h
Try
#include <pthread>
in bthread.h
Okay okay trying
Try
#include <pthread>
in bthread.h
@Pyogenics WWWWoowwww nice pthread-cancel problem solved π€ππ₯°
New error found.. but I think it is not pthread-cancel related ..
Thank you so much.. thank you soooo much for your help π..!.. finding solutions long time ago.. actually i don't know any programing language that's why facing problem..
I am not miner.. but trying to experiential purpose only..
I will have to look at the code, further reply will come later.
I will have to look at the code, further reply will come later.
π₯°π₯°πππ€π€ππ Okay ππππ thank you sooo much!
@Pyogenics this is full error codes
@Pyogenics any solution found please ? π€
Sorry, had a look but it took me longer than I wanted. Will take me some time :'(
Sorry, had a look but it took me longer than I wanted. Will take me some time :'(
@Pyogenics it ok.. no problem .. I am waiting.. thank you for your response, help, suggestions.. !..
Sorry, had a look but it took me longer than I wanted. Will take me some time :'(
@Pyogenics any solution found sir ? π€ βΊοΈ
Sorry, had a look but it took me longer than I wanted. Will take me some time :'(
@Pyogenics any solution found sir ? π€ βΊοΈ
@Pyogenics hello sir!.. after completing with gcc last error solved.. but getting undefined reference to `pthread_cancel'
@Pyogenics ultimately cgminer building done .. Sgminer can't build because of getting undefined reference to pthread-cancel
But sir without your help i can't.. thank you for your help cgminer working fine.. clang did not compile.. i build with gcc..
and also edited some code.. #include bthread.h && #include athread.h
static int pthread_setcancelstate(int state, int *oldstate) { sigset_t new, old; int ret; sigemptyset (&new); sigaddset (&new, SIG_CANCEL_SIGNAL);
ret = pthread_sigmask(state == PTHREAD_CANCEL_ENABLE ? SIG_BLOCK : SIG_UNBLOCK, &new , &old);
if(oldstate != NULL)
{
*oldstate =sigismember(&old,SIG_CANCEL_SIGNAL) == 0 ? PTHREAD_CANCEL_DISABLE : PTHREAD_CANCEL_ENABLE;
}
return ret;
}
static inline int pthread_cancel(pthread_t thread) {
pthread_kill(thread, SIG_CANCEL_SIGNAL);
}
After that build completed.. π€ π€ β€οΈβ€οΈβ€οΈ thank you so much @Pyogenics
@Pyogenics Sir My mistake i am a big idiot...π₯² All problem solved with just need to install libbthread and add -lbthread flag
Now all build done sgminer also ..
Thank you .. Build done without a single error π Thank you sooooo much for your big help.. β€οΈβ€οΈβ€οΈ And thank you too libbthread @tux-mind ..
Hello help wanted... Android OS Termux environment OpenCL found But make error If anybody can please help...
sgminer.c:7762:25: error: use of undeclared identifier 'PTHREAD_CANCEL_ASYNCHRONOUS'
make[2]: Leaving directory '/data/data/com.termux/files/home/sgminer/sph' make[2]: Entering directory '/data/data/com.termux/files/home/sgminer' fatal: No names found, cannot describe anything. CC sgminer-sgminer.o clang-12: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] sgminer.c:282:23: warning: implicit conversion from 'unsigned long long' to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Wimplicit-const-int-float-conversion] double current_diff = 0xFFFFFFFFFFFFFFFFULL;