[ 60%] Linking CXX executable haiku_loader
/usr/bin/ld: CMakeFiles/haiku_loader.dir/loader_mutex.cpp.o: in function `std::__condvar::wait_until(std::mutex&, int, timespec&)':
loader_mutex.cpp:(.text._ZNSt9__condvar10wait_untilERSt5mutexiR8timespec[_ZNSt9__condvar10wait_untilERSt5mutexiR8timespec]+0x39): undefined reference to `pthread_cond_clockwait'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_registration.cpp.o: in function `loader_register_builtin_areas(user_space_program_args*, void*)':
loader_registration.cpp:(.text+0x28e): undefined reference to `pthread_getattr_np'
/usr/bin/ld: loader_registration.cpp:(.text+0x2ca): undefined reference to `pthread_attr_getstack'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_runtime.cpp.o: in function `loader_load_runtime()':
loader_runtime.cpp:(.text+0x199): undefined reference to `dlopen'
/usr/bin/ld: loader_runtime.cpp:(.text+0x1d3): undefined reference to `dlerror'
/usr/bin/ld: loader_runtime.cpp:(.text+0x216): undefined reference to `dlsym'
/usr/bin/ld: loader_runtime.cpp:(.text+0x255): undefined reference to `dlerror'
/usr/bin/ld: loader_runtime.cpp:(.text+0x298): undefined reference to `dlsym'
/usr/bin/ld: loader_runtime.cpp:(.text+0x2d4): undefined reference to `dlerror'
/usr/bin/ld: loader_runtime.cpp:(.text+0x318): undefined reference to `dladdr'
/usr/bin/ld: loader_runtime.cpp:(.text+0x342): undefined reference to `dlerror'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_runtime.cpp.o: in function `loader_unload_runtime()':
loader_runtime.cpp:(.text+0x9e6): undefined reference to `dlclose'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_runtime.cpp.o: in function `loader_runtime_symbol(char const*)':
loader_runtime.cpp:(.text+0xa16): undefined reference to `dlsym'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_semaphore.cpp.o: in function `loader_realtime_sem_open(char const*, int, unsigned int, unsigned int, _haiku_sem_t*, _haiku_sem_t**)':
loader_semaphore.cpp:(.text+0x66): undefined reference to `sem_open'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_spawn_thread.cpp.o: in function `loader_spawn_thread(void*)':
loader_spawn_thread.cpp:(.text+0x1bc): undefined reference to `pthread_attr_setstack'
/usr/bin/ld: loader_spawn_thread.cpp:(.text+0x1d6): undefined reference to `pthread_attr_setguardsize'
/usr/bin/ld: loader_spawn_thread.cpp:(.text+0x243): undefined reference to `pthread_create'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_spawn_thread.cpp.o: in function `loader_wait_for_thread(int, int*)':
loader_spawn_thread.cpp:(.text+0x4b5): undefined reference to `pthread_join'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_spawn_thread.cpp.o: in function `loader_register_thread(int, thread_creation_attributes const*, bool)':
loader_spawn_thread.cpp:(.text+0x6e8): undefined reference to `pthread_getattr_np'
/usr/bin/ld: loader_spawn_thread.cpp:(.text+0x709): undefined reference to `pthread_attr_getstack'
/usr/bin/ld: CMakeFiles/haiku_loader.dir/sys/linux/loader_spawn_thread.cpp.o: in function `loader_pthread_entry_trampoline(void*)':
loader_spawn_thread.cpp:(.text+0x85f): undefined reference to `pthread_setname_np'
collect2: error: ld returned 1 exit status
[ 75%] Built target haiku_loader
Thanks for the report. As of a6332f89bfac215ab10a27d1da2df54a73ceb8cb, I have added CI builds for Ubuntu 20.04. All build errors should have been fixed.