<div dir="ltr">Hi,<div><br></div><div>Unfortunately It seems the following commit has broken my builds:</div><div><br></div><div>commit 036d26d6677e0b8e6cf284c0801b267c5f81720e<br>Author: Laurent Pinchart <<a href="mailto:laurent.pinchart@ideasonboard.com">laurent.pinchart@ideasonboard.com</a>><br>Date:   Tue Oct 4 02:42:28 2022 +0300<br><br>    test: threads: Test thread cleanup upon abnormal termination<br><br>    If a thread ends abnormally (that is, without retuning normally from its<br>    run() function, for instance with a direct call to pthread_cancel()),<br>    thread cleanup should still be performed. Add a test to ensure this.<br><br>    Signed-off-by: Laurent Pinchart <<a href="mailto:laurent.pinchart@ideasonboard.com">laurent.pinchart@ideasonboard.com</a>><br>    Reviewed-by: Umang Jain <<a href="mailto:umang.jain@ideasonboard.com">umang.jain@ideasonboard.com</a>><br></div><div><br></div><div>See the below error message:</div><div><br></div><div>pi@pi4-naush:~/libcamera/build $ ninja<br>[2/6] Linking target test/threads<br>FAILED: test/threads<br>c++  -o test/threads test/threads.p/threads.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wno-psabi -Wshadow -include /home/pi/libcamera/build_debug/config.h '-Wl,-rpath,$ORIGIN/../src/libcamera:$ORIGIN/../src/libcamera/base' -Wl,-rpath-link,/home/pi/libcamera/build_debug/src/libcamera -Wl,-rpath-link,/home/pi/libcamera/build_debug/src/libcamera/base -Wl,--start-group test/libtest/liblibtest.a src/libcamera/libcamera.so.0.0.0 src/libcamera/base/libcamera-base.so.0.0.0 -Wl,--end-group<br>/usr/bin/ld: test/threads.p/threads.cpp.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.4'<br>/usr/bin/ld: /lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line<br>collect2: error: ld returned 1 exit status<br>[6/6] Linking target test/fence<br>ninja: build stopped: subcommand failed.<br></div><div><br></div><div>I'm using the following compiler:</div><div><br></div><div>g++ (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110<br>Copyright (C) 2020 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.  There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br></div><div><br></div><div>Not really investigated further yet, just wanted to report it first.</div><div><br></div><div>Regards,</div><div>Naush</div><div><br></div></div>