[GNC-dev] Fwd: [Build #16856252 FAILED] amd64 build of gnucash 1:3.5-2 in ubuntu bionic RELEASE [~kg7je/ubuntu/gnc-released-ppa]

Stephen M. Butler kg7je at arrl.net
Mon May 27 16:02:45 EDT 2019


-------- Forwarded Message --------
Subject: 	[Build #16856252] amd64 build of gnucash 1:3.5-2 in ubuntu
bionic RELEASE [~kg7je/ubuntu/gnc-released-ppa]
Date: 	Mon, 27 May 2019 19:36:20 -0000
From: 	Launchpad Buildd System <noreply at launchpad.net>
Reply-To: 	Launchpad Buildd System <noreply at launchpad.net>
To: 	Steve Butler <Stephen.M.Butler51 at gmail.com>




* Source Package: gnucash
* Version: 1:3.5-2
* Architecture: amd64
* Archive: ~kg7je/ubuntu/gnc-released-ppa
* Component: main
* State: Failed to build
* Duration: 2 minutes
* Build Log:
*https://launchpad.net/~kg7je/+archive/ubuntu/gnc-released-ppa/+build/16856252/+files/buildlog_ubuntu-bionic-amd64.gnucash_1%3A3.5-2_BUILDING.txt.gz*
* Builder: https://launchpad.net/builders/lgw01-amd64-025

Best I can find is it is complaining about -lpthreads in 'cmTC_8865c'. 
I bolded the above link for the build log.

File /<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if compiler accepts -pthread failed with the following output:
Change Dir: /<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_48d4a/fast"
make[2]: Entering directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_48d4a.dir/build.make CMakeFiles/cmTC_48d4a.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_48d4a.dir/CheckForPthreads.c.o
/usr/bin/cc   -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -o CMakeFiles/cmTC_48d4a.dir/CheckForPthreads.c.o   -c /usr/share/cmake-3.10/Modules/CheckForPthreads.c
/usr/share/cmake-3.10/Modules/CheckForPthreads.c:3:7: error: no previous prototype for ‘start_routine’ [-Werror=missing-prototypes]
 void* start_routine(void* args)
       ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
CMakeFiles/cmTC_48d4a.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_48d4a.dir/CheckForPthreads.c.o' failed
make[3]: *** [CMakeFiles/cmTC_48d4a.dir/CheckForPthreads.c.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_48d4a/fast' failed
make[2]: *** [cmTC_48d4a/fast] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'


Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_8865c/fast"
make[2]: Entering directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_8865c.dir/build.make CMakeFiles/cmTC_8865c.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8865c.dir/CheckFunctionExists.c.o
/usr/bin/cc   -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -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_8865c.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_8865c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8865c.dir/link.txt --verbose=1
/usr/bin/cc -Wno-error=deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -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 -Wl,-z,now  -rdynamic CMakeFiles/cmTC_8865c.dir/CheckFunctionExists.c.o  -o cmTC_8865c -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_8865c.dir/build.make:97: recipe for target 'cmTC_8865c' failed
make[3]: *** [cmTC_8865c] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8865c/fast' failed
make[2]: *** [cmTC_8865c/fast] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/.build/CMakeFiles/CMakeTmp'


dh_auto_configure: cd .build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -Wdev -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release "-DCMAKE_CXX_FLAGS=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" -DWITH_PYTHON=ON -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu/gnucash -DGTEST_ROOT=TEST_ROOT -DGMOCK_ROOT=MOCK_ROOT returned exit code 1
debian/rules:33: recipe for target 'override_dh_auto_configure' failed
make[1]: *** [override_dh_auto_configure] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:24: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 20190527-1936

Finished
--------

E: Build failure (dpkg-buildpackage died)

+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not removing build depends: as requested

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: amd64
Build-Space: 153336
Build-Time: 7
Distribution: bionic
Fail-Stage: build
Host Architecture: amd64
Install-Time: 48
Job: gnucash_3.5-2.dsc
Machine Architecture: amd64
Package: gnucash
Package-Time: 56
Source-Version: 1:3.5-2
Space: 153336
Status: attempted
Version: 1:3.5-2
--------------------------------------------------------------------------------
Finished at 20190527-1936
Build needed 00:00:56, 153336k disc space
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=chroot --series=bionic --arch=amd64 PACKAGEBUILD-16856252
Scanning for processes to kill in build PACKAGEBUILD-16856252

-- 
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8




More information about the gnucash-devel mailing list