Public bug reported:

process-cpp fails to build with an inscrutable error from cmake about
failing to find pthreads:

Determining if the function pthread_create exists in the pthreads failed with 
the following output:
Change Dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b3690/fast"
make[1]: Entering directory 
'/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_b3690.dir/build.make 
CMakeFiles/cmTC_b3690.dir/build
make[2]: Entering directory 
'/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b3690.dir/CheckFunctionExists.c.o
/usr/bin/cc   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create   -o 
CMakeFiles/cmTC_b3690.dir/CheckFunctionExists.c.o   -c 
/usr/share/cmake-3.9/Modules/CheckFunctionExists.c
Linking C executable cmTC_b3690
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b3690.dir/link.txt 
--verbose=1
/usr/bin/cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create  
-Wl,-Bsymbolic-functions -Wl,-z,relro  -rdynamic 
CMakeFiles/cmTC_b3690.dir/CheckFunctionExists.c.o  -o cmTC_b3690 -lpthreads 

https://launchpad.net/ubuntu/+source/process-
cpp/3.0.1-0ubuntu6/+build/13627287/+files/buildlog_ubuntu-bionic-amd64
.process-cpp_3.0.1-0ubuntu6_BUILDING.txt.gz

pthreads are certainly supported.  They're spelled '-pthread'.  I have
no idea why cmake is failing to find them, you'd think this is a pretty
basic thing; and other cmake-using software doesn't seem to have this
problem.

Poking around in the CMakeFiles, it appears to be some sort of adverse
interaction with gmock.  But I don't know why this is or how to fix it.

** Affects: dbus-cpp (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: process-cpp (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: dbus-cpp (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: mediascanner2 (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1755949

Title:
  process-cpp FTBFS in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus-cpp/+bug/1755949/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to