conftest.c: In function 'main':
conftest.c:180:16: error: passing argument 1 of 'pthread_detach' makes integer from pointer without a cast [-Wint-conversion]
180 | pthread_detach(NULL);
| ^~~~
| |
| void *
In file included from conftest.c:172:
/home/oct1158/Downloads/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-linux-gnueabihf/lib/gcc/arm-none-linux-gnueabihf/14.2.1/include-fixed/pthread.h:278:38: note: expected 'pthread_t' {aka 'long unsigned int'} but argument is of type 'void *'
278 | extern int pthread_detach (pthread_t __th) __THROW;
|
解决方案:
修改configure文件,找到第23134行的pthread_detach(NULL),改成pthread_detach(0)。
sntp/configure的第13735行也要做同样的修改。
参考资料:https://bugs.gentoo.org/871372