Bug#758184: boinc: FTBFS due to dependency errors in Makefile
GUO Yixuan
culu.gyx at gmail.com
Tue Aug 26 05:14:29 UTC 2014
On Fri, Aug 15, 2014 at 10:43:35AM +0100, Gianfranco Costamagna wrote:
>
> Hi Sebastian,
>
> >Source: boinc
> >Version: 7.4.14+dfsg-1
> >Severity: serious
> >Justification: fails to build from source (but built successfully in the past)
> >
> >boinc failed to build on the buildds with the following error:
> >| /bin/bash ../libtool --tag=CXX --mode=link /usr/bin/g++ -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -Wcast-align -fPIC -DPIC -pthread -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr -ffast-math -Wall -L/usr/lib -rpath /usr/lib -version-number 7:4:14 -Wl,-z,relro -flto -Wl,--no-add-needed -o libboinc.la -rpath /usr/lib libboinc_la-app_ipc.lo libboinc_la-base64.lo libboinc_la-cc_config.lo libboinc_la-cert_sig.lo libboinc_la-coproc.lo libboinc_la-diagnostics.lo libboinc_la-filesys.lo libboinc_la-gui_rpc_client.lo libboinc_la-gui_rpc_client_ops.lo libboinc_la-gui_rpc_client_print.lo libboinc_la-hostinfo.lo libboinc_la-md5.lo libboinc_la-md5_file.lo libboinc_la-mem_usage.lo libboinc_la-mfile.lo libboinc_la-miofile.lo libboinc_la-msg_log.lo libboinc_la-network.lo libboinc_la-notice.lo libboinc_la-opencl_boinc.lo libboinc_la-parse.lo
> libboinc_la-prefs.lo libboinc_la-procinfo.lo libboinc_la-proc_control.lo libboinc_la-proxy_info.lo libboinc_la-shmem.lo libboinc_la-str_util.lo libboinc_la-url.lo libboinc_la-util.lo libboinc_la-procinfo_unix.lo libboinc_la-synch.lo libboinc_la-unix_util.lo
> >| libtool: link: /usr/bin/g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbeginS.o .libs/libboinc_la-app_ipc.o .libs/libboinc_la-base64.o .libs/libboinc_la-cc_config.o .libs/libboinc_la-cert_sig.o .libs/libboinc_la-coproc.o .libs/libboinc_la-diagnostics.o .libs/libboinc_la-filesys.o .libs/libboinc_la-gui_rpc_client.o .libs/libboinc_la-gui_rpc_client_ops.o .libs/libboinc_la-gui_rpc_client_print.o .libs/libboinc_la-hostinfo.o .libs/libboinc_la-md5.o .libs/libboinc_la-md5_file.o .libs/libboinc_la-mem_usage.o .libs/libboinc_la-mfile.o .libs/libboinc_la-miofile.o .libs/libboinc_la-msg_log.o .libs/libboinc_la-network.o .libs/libboinc_la-notice.o .libs/libboinc_la-opencl_boinc.o .libs/libboinc_la-parse.o .libs/libboinc_la-prefs.o .libs/libboinc_la-procinfo.o .libs/libboinc_la-proc_control.o .libs/libboinc_la-proxy_info.o .libs/libboinc_la-shmem.o
> .libs/libboinc_la-str_util.o .libs/libboinc_la-url.o .libs/libboinc_la-util.o .libs/libboinc_la-procinfo_unix.o .libs/libboinc_la-synch.o .libs/libboinc_la-unix_util.o -L/usr/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.9/crtfastmath.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o -pthread -O2 -O3 -Wl,-z -Wl,relro -flto -Wl,--no-add-needed -pthread -Wl,-soname -Wl,libboinc.so.7 -o .libs/libboinc.so.7.4.14
> >| g++: error: .libs/libboinc_la-gui_rpc_client_ops.o: No such file or directory
> >| make[4]: *** [libboinc.la] Error 1
> >| make[4]: *** Waiting for unfinished jobs....
> >| Makefile:927: recipe for target 'libboinc.la' failed
> >
> >The missing file gets built directly after the failure:
> >| libtool: compile: /usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../api -I../db -I../lib -I../lib/mac -I../sched -I../tools -I../vda -pthread -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -Wcast-align -fPIC -DPIC -pthread -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr -ffast-math -Wall -c gui_rpc_client_ops.cpp -o libboinc_la-gui_rpc_client_ops.o >/dev/null 2>&1
> >| /bin/bash ../libtool --tag=CXX --mode=link /usr/bin/g++ -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -Wcast-align -fPIC -DPIC -pthread -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr -ffast-math -Wall -L/usr/lib -rpath /usr/lib -version-number 7:4:14 -Wl,-z,relro -flto -Wl,--no-add-needed -o libboinc.la -rpath /usr/lib libboinc_la-app_ipc.lo libboinc_la-base64.lo libboinc_la-cc_config.lo libboinc_la-cert_sig.lo libboinc_la-coproc.lo libboinc_la-diagnostics.lo libboinc_la-filesys.lo libboinc_la-gui_rpc_client.lo libboinc_la-gui_rpc_client_ops.lo libboinc_la-gui_rpc_client_print.lo libboinc_la-hostinfo.lo libboinc_la-md5.lo libboinc_la-md5_file.lo libboinc_la-mem_usage.lo libboinc_la-mfile.lo libboinc_la-miofile.lo libboinc_la-msg_log.lo libboinc_la-network.lo libboinc_la-notice.lo libboinc_la-opencl_boinc.lo libboinc_la-parse.lo
> libboinc_la-prefs.lo libboinc_la-procinfo.lo libboinc_la-proc_control.lo libboinc_la-proxy_info.lo libboinc_la-shmem.lo libboinc_la-str_util.lo libboinc_la-url.lo libboinc_la-util.lo libboinc_la-procinfo_unix.lo libboinc_la-synch.lo libboinc_la-unix_util.lo
> >| libtool: link: /usr/bin/g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbeginS.o .libs/libboinc_la-app_ipc.o .libs/libboinc_la-base64.o .libs/libboinc_la-cc_config.o .libs/libboinc_la-cert_sig.o .libs/libboinc_la-coproc.o .libs/libboinc_la-diagnostics.o .libs/libboinc_la-filesys.o .libs/libboinc_la-gui_rpc_client.o .libs/libboinc_la-gui_rpc_client_ops.o .libs/libboinc_la-gui_rpc_client_print.o .libs/libboinc_la-hostinfo.o .libs/libboinc_la-md5.o .libs/libboinc_la-md5_file.o .libs/libboinc_la-mem_usage.o .libs/libboinc_la-mfile.o .libs/libboinc_la-miofile.o .libs/libboinc_la-msg_log.o .libs/libboinc_la-network.o .libs/libboinc_la-notice.o .libs/libboinc_la-opencl_boinc.o .libs/libboinc_la-parse.o .libs/libboinc_la-prefs.o .libs/libboinc_la-procinfo.o .libs/libboinc_la-proc_control.o .libs/libboinc_la-proxy_info.o .libs/libboinc_la-shmem.o
> .libs/libboinc_la-str_util.o .libs/libboinc_la-url.o .libs/libboinc_la-util.o .libs/libboinc_la-procinfo_unix.o .libs/libboinc_la-synch.o .libs/libboinc_la-unix_util.o -L/usr/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.9/crtfastmath.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o -pthread -O2 -O3 -Wl,-z -Wl,relro -flto -Wl,--no-add-needed -pthread -Wl,-soname -Wl,libboinc.so.7 -o .libs/libboinc.so.7.4.14
> >
> >It looks like the dependencies in the Makefiles are wrong or that it's just not
> >ready for --parallel. Please take a look. Build logs are available from
> >https://buildd.debian.org/status/logs.php?pkg=boinc&ver=7.4.14+dfsg-1.
> >
>
>
> Of course I'm aware of the issue, I'm deeply investigating it, and I'll upload again a version with parallel disabled if I don't find the root of the issue.
>
> Unfortunately the launchpad buildd was failing in the same way, and prior to upload to unstable I uploaded almost the same version on lp
> https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/+build/6262554
> and it succeeded, this is why I ended up in uploading there (with a good confidence).
>
> I'm trying to understand why that particular build succeeded (on both architectures) and to trace down the issue.
>
> thanks for reporting,
>
> Gianfranco
>
Hi,
How about disable the parallel flag while we're debugging it?
When I build with git-buildpackage -j2, it fails at another place.
(log appended.) I'm not sure about the reason. It could be make
or automake or some hardcoded makefile rules.
Cheers,
Yixuan
/bin/bash ../libtool --tag=CXX --mode=link /usr/bin/g++ -Wall -Wextra
-Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith
-Wstrict-aliasing -Wcast-align -fPIC -DPIC -pthread -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wall -O3
-funroll-loops -fforce-addr -ffast-math -Wall -L/usr/lib -rpath /usr/lib
-version-number 7:4:14 -Wl,-z,relro -flto -Wl,--no-add-needed -o
libboinc.la -rpath /usr/lib libboinc_la-app_ipc.lo libboinc_la-base64.lo
libboinc_la-cc_config.lo libboinc_la-cert_sig.lo libboinc_la-coproc.lo
libboinc_la-diagnostics.lo libboinc_la-filesys.lo
libboinc_la-gui_rpc_client.lo libboinc_la-gui_rpc_client_ops.lo
libboinc_la-gui_rpc_client_print.lo libboinc_la-hostinfo.lo
libboinc_la-md5.lo libboinc_la-md5_file.lo libboinc_la-mem_usage.lo
libboinc_la-mfile.lo libboinc_la-miofile.lo libboinc_la-msg_log.lo
libboinc_la-network.lo libboinc_la-notice.lo libboinc_la-opencl_boinc.lo
libboinc_la-parse.lo libboinc_la-prefs.lo libboinc_la-procinfo.lo
libboinc_la-proc_control.lo libboinc_la-proxy_info.lo
libboinc_la-shmem.lo libboinc_la-str_util.lo libboinc_la-url.lo
libboinc_la-util.lo libboinc_la-procinfo_unix.lo libboinc_la-synch.lo
libboinc_la-unix_util.lo
/bin/bash ../libtool --tag=CXX --mode=link /usr/bin/g++ -pthread -g
-O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3
-funroll-loops -fforce-addr -ffast-math -Wall -Wl,-z,relro -flto
-Wl,--no-add-needed -o parse_test parse_test-parse_test.o
../lib/libboinc.la
libtool: link: rm -fr .libs/libboinc.a .libs/libboinc.la
.libs/libboinc.lai .libs/libboinc.so .libs/libboinc.so.7
.libs/libboinc.so.7.4.14
libtool: link: /usr/bin/g++ -fPIC -DPIC -shared -nostdlib
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o
/usr/lib/gcc/x86_64-linux-gnu/4.9/crtbeginS.o
.libs/libboinc_la-app_ipc.o .libs/libboinc_la-base64.o
.libs/libboinc_la-cc_config.o .libs/libboinc_la-cert_sig.o
.libs/libboinc_la-coproc.o .libs/libboinc_la-diagnostics.o
.libs/libboinc_la-filesys.o .libs/libboinc_la-gui_rpc_client.o
.libs/libboinc_la-gui_rpc_client_ops.o
.libs/libboinc_la-gui_rpc_client_print.o .libs/libboinc_la-hostinfo.o
.libs/libboinc_la-md5.o .libs/libboinc_la-md5_file.o
.libs/libboinc_la-mem_usage.o .libs/libboinc_la-mfile.o
.libs/libboinc_la-miofile.o .libs/libboinc_la-msg_log.o
.libs/libboinc_la-network.o .libs/libboinc_la-notice.o
.libs/libboinc_la-opencl_boinc.o .libs/libboinc_la-parse.o
.libs/libboinc_la-prefs.o .libs/libboinc_la-procinfo.o
.libs/libboinc_la-proc_control.o .libs/libboinc_la-proxy_info.o
.libs/libboinc_la-shmem.o .libs/libboinc_la-str_util.o
.libs/libboinc_la-url.o .libs/libboinc_la-util.o
.libs/libboinc_la-procinfo_unix.o .libs/libboinc_la-synch.o
.libs/libboinc_la-unix_util.o -L/usr/lib
-L/usr/lib/gcc/x86_64-linux-gnu/4.9
-L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu
-L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib
-L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -lstdc++
-lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.9/crtfastmath.o
/usr/lib/gcc/x86_64-linux-gnu/4.9/crtendS.o
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o
-pthread -O2 -O3 -Wl,-z -Wl,relro -flto -Wl,--no-add-needed -pthread
-Wl,-soname -Wl,libboinc.so.7 -o .libs/libboinc.so.7.4.14
libtool: link: /usr/bin/g++ -pthread -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr
-ffast-math -Wall -Wl,-z -Wl,relro -flto -Wl,--no-add-needed -o
.libs/parse_test parse_test-parse_test.o ../lib/.libs/libboinc.so
-pthread
g++: error: ../lib/.libs/libboinc.so: No such file or directory
Makefile:1046: recipe for target 'parse_test' failed
make[4]: *** [parse_test] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: (cd ".libs" && rm -f "libboinc.so.7" && ln -s
"libboinc.so.7.4.14" "libboinc.so.7")
libtool: link: (cd ".libs" && rm -f "libboinc.so" && ln -s
"libboinc.so.7.4.14" "libboinc.so")
libtool: link: /usr/bin/ar cru .libs/libboinc.a libboinc_la-app_ipc.o
libboinc_la-base64.o libboinc_la-cc_config.o libboinc_la-cert_sig.o
libboinc_la-coproc.o libboinc_la-diagnostics.o libboinc_la-filesys.o
libboinc_la-gui_rpc_client.o libboinc_la-gui_rpc_client_ops.o
libboinc_la-gui_rpc_client_print.o libboinc_la-hostinfo.o
libboinc_la-md5.o libboinc_la-md5_file.o libboinc_la-mem_usage.o
libboinc_la-mfile.o libboinc_la-miofile.o libboinc_la-msg_log.o
libboinc_la-network.o libboinc_la-notice.o libboinc_la-opencl_boinc.o
libboinc_la-parse.o libboinc_la-prefs.o libboinc_la-procinfo.o
libboinc_la-proc_control.o libboinc_la-proxy_info.o libboinc_la-shmem.o
libboinc_la-str_util.o libboinc_la-url.o libboinc_la-util.o
libboinc_la-procinfo_unix.o libboinc_la-synch.o libboinc_la-unix_util.o
BFD: libboinc_la-md5.o: plugin needed to handle lto object
libtool: link: ranlib .libs/libboinc.a
BFD: libboinc_la-md5.o: plugin needed to handle lto object
libtool: link: ( cd ".libs" && rm -f "libboinc.la" && ln -s
"../libboinc.la" "libboinc.la" )
make[4]: Leaving directory '/home/pkg/work1/boinc/lib'
Makefile:632: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pkg/work1/boinc'
Makefile:535: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pkg/work1/boinc'
dh_auto_build: make -j2 returned exit code 2
debian/rules:234: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/pkg/work1/boinc'
debian/rules:180: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc -i -I -j2 failed
gbp:error: 'debuild -i -I -j2' failed: it exited with 29
More information about the pkg-boinc-devel
mailing list