/usr/bin/ld: /home/github/examples/build_chipstar/chipStar/src/chipStar-build/libCHIP.so: undefined reference to `pthread_create'
/usr/bin/ld: /home/github/examples/build_chipstar/chipStar/src/chipStar-build/libCHIP.so: undefined reference to `pthread_yield'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
failed to execute:/usr/lib/llvm-17/bin/clang++ -include /home/github/examples/build_chipstar/chipStar/src/chipStar/include/hip/spirv_fixups.h -I//home/github/examples/build_chipstar/chipStar/src/chipStar-build/include -D__HIP_NO_HALF_OPERATORS__=1 -x hip /home/github/examples/build_chipstar/chipStar/src/chipStar/tests/compiler/TestHipccHalfConversions.cc -D__HIP_PLATFORM_SPIRV__= --offload=spirv64 -nohipwrapperinc --hip-path=/home/github/examples/build_chipstar/chipStar/src/chipStar-build --target=x86_64-pc-linux-gnu -I/home/github/examples/build_chipstar/chipStar/src/chipStar/include -I/home/github/examples/build_chipstar/chipStar/src/chipStar/HIP/include -I/home/github/examples/build_chipstar/chipStar/src/chipStar-build/include -L/home/github/examples/build_chipstar/chipStar/src/chipStar-build -lCHIP -Wl,-rpath,/home/github/examples/build_chipstar/chipStar/src/chipStar-build
I suspect the reason is related to CI not having libze_loader.so only libOpenCL.so. libCHIP.so does not link to pthread directly, only indirectly through libze_loader.so:
While trying to update chipStar to 1.1 on PoCL CI, 19 tests failed:
all errors were similar to this:
I suspect the reason is related to CI not having
libze_loader.so
onlylibOpenCL.so
.libCHIP.so
does not link to pthread directly, only indirectly throughlibze_loader.so
: