Closed cbrake closed 3 years ago
trying to build a new container and having some type of dns problem with deb.debian.com here -- will try again later.
The ubuntu_20.04 container fails as well.
beaglebone build completed with ARCH host and no container.
get the same thing with debian:bullseye, so likely just missing a package ...
in arch, libpthread is located in /lib
in debian buster/bullseye/ubuntu, it appears to be in /lib/x86_64-linux-gnu
not sure if that is relevant
Can you dig config.log from pkgconfig build ?
OK take this test case
#include <pthread.h>
int check_me = 0;
void* func(void* data) {check_me = 42; return &check_me;}
int main()
{ pthread_t t;
void *ret;
pthread_create (&t, 0, func, 0);
pthread_join (t, &ret);
return (check_me != 42 || ret != &check_me);
}
and compile it inside docker using
gcc -o conftest -isystem/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/usr/include -D_REENTRANT -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE -L/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/usr/lib -L/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/lib -Wl,-rpath,/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/scratch/yoe/yoe-distro2/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/scratch/yoe/yoe-distro2/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lthread
this got fixed in recent uninative tarball update -- will be merged soon.
Getting the following with the latest when building in docker container. I do NOT get this error when building without container in ARCH, so it seems we need to update our container to latest Debian or something.