This has me stumped – has anyone seen an issue like this with OBS:
When running on a interactive system I get this from my packages configure script – everything looks good and the build succeeds:
checking if C compiler and POSIX threads work as is... no
checking if C++ compiler and POSIX threads work as is... no
checking if C compiler and POSIX threads work with -Kthread... no
checking if C compiler and POSIX threads work with -kthread... no
checking if C compiler and POSIX threads work with -pthread... yes
checking if C++ compiler and POSIX threads work with -Kthread... no
checking if C++ compiler and POSIX threads work with -kthread... no
checking if C++ compiler and POSIX threads work with -pthread... yes
checking for pthread_mutexattr_setpshared... yes
checking for pthread_condattr_setpshared... yes
checking for PTHREAD_MUTEX_ERRORCHECK_NP... yes
checking for PTHREAD_MUTEX_ERRORCHECK... yes
checking for working POSIX threads package... yes
But inside OBS it bombs out trying to find a working pthread flag for C++:
87s] checking if C compiler and POSIX threads work as is... no
87s] checking if C++ compiler and POSIX threads work as is... no
87s] checking if C compiler and POSIX threads work with -Kthread... no
87s] checking if C compiler and POSIX threads work with -kthread... no
87s] checking if C compiler and POSIX threads work with -pthread... yes
87s] checking if C++ compiler and POSIX threads work with -Kthread... no
87s] checking if C++ compiler and POSIX threads work with -kthread... no
87s] checking if C++ compiler and POSIX threads work with -pthread... no
87s] checking if C++ compiler and POSIX threads work with -pthreads... no
87s] checking if C++ compiler and POSIX threads work with -mt... no
87s] checking if C++ compiler and POSIX threads work with -mthreads... no
87s] checking if C++ compiler and POSIX threads work with -lpthreads... no
87s] checking if C++ compiler and POSIX threads work with -llthread... no
87s] checking if C++ compiler and POSIX threads work with -lpthread... no
87s] checking for pthread_mutexattr_setpshared... yes
87s] checking for pthread_condattr_setpshared... yes
87s] checking for PTHREAD_MUTEX_ERRORCHECK_NP... yes
87s] checking for PTHREAD_MUTEX_ERRORCHECK... yes
87s] checking for working POSIX threads package... no
87s] configure: WARNING: "*** POSIX threads are not"
87s] configure: WARNING: "*** available on your system "
87s] configure: error: "*** Can not continue"
I can’t think of a missing package beyond maybe glibc that might be causing something like this.
Any ideas?