[Debian-astro-maintainers] Bug#1015569: openvlbi: ftbfs with LTO (link time optimization) enabled
Matthias Klose
doko at debian.org
Tue Jul 19 17:57:43 BST 2022
Package: src:openvlbi
Version: 1.23.1-1
Severity: minor
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-lto
This package currently fails to build (at least on the amd64
architecture) with link time optimizations enabled. For a background
for LTO please see
https://wiki.debian.org/ToolChain/LTO
The goal is to enable this optimization by default in an upcoming
Debian release in dpkg-buildflags for 64bit architectures. The goal
is to get this package to build with link time optimizations, or to
explicitly disable link time optimizations for this package build.
To reproduce the build failure, enable the lto optimization in
testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS
in the debian/rules file, or if this macro is unset, just set it:
export DEB_BUILD_MAINT_OPTIONS = optimize=+lto
Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:
export DEB_BUILD_MAINT_OPTIONS = optimize=-lto
or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.
The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/openvlbi_1.23.1-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
make -f CMakeFiles/openvlbi_server.dir/build.make CMakeFiles/openvlbi_server.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 2%] Building C object CMakeFiles/opendsp.dir/dsp/align.c.o
[ 5%] Building CXX object CMakeFiles/openvlbi_server.dir/vlbi_server.cpp.o
/usr/bin/c++ -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -MD -MT CMakeFiles/openvlbi_server.dir/vlbi_server.cpp.o -MF CMakeFiles/openvlbi_server.dir/vlbi_server.cpp.o.d -o CMakeFiles/openvlbi_server.dir/vlbi_server.cpp.o -c /<<PKGBUILDDIR>>/vlbi_server.cpp
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/align.c.o -MF CMakeFiles/opendsp.dir/dsp/align.c.o.d -o CMakeFiles/opendsp.dir/dsp/align.c.o -c /<<PKGBUILDDIR>>/dsp/align.c
[ 7%] Building C object CMakeFiles/opendsp.dir/dsp/file.c.o
[ 10%] Building C object CMakeFiles/opendsp.dir/dsp/convert.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/file.c.o -MF CMakeFiles/opendsp.dir/dsp/file.c.o.d -o CMakeFiles/opendsp.dir/dsp/file.c.o -c /<<PKGBUILDDIR>>/dsp/file.c
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/convert.c.o -MF CMakeFiles/opendsp.dir/dsp/convert.c.o.d -o CMakeFiles/opendsp.dir/dsp/convert.c.o -c /<<PKGBUILDDIR>>/dsp/convert.c
[ 13%] Building C object CMakeFiles/opendsp.dir/dsp/filters.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/filters.c.o -MF CMakeFiles/opendsp.dir/dsp/filters.c.o.d -o CMakeFiles/opendsp.dir/dsp/filters.c.o -c /<<PKGBUILDDIR>>/dsp/filters.c
[ 15%] Building C object CMakeFiles/opendsp.dir/dsp/stats.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/stats.c.o -MF CMakeFiles/opendsp.dir/dsp/stats.c.o.d -o CMakeFiles/opendsp.dir/dsp/stats.c.o -c /<<PKGBUILDDIR>>/dsp/stats.c
[ 21%] Building C object CMakeFiles/opendsp.dir/dsp/buffer.c.o
[ 21%] Building C object CMakeFiles/opendsp.dir/dsp/fft.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/fft.c.o -MF CMakeFiles/opendsp.dir/dsp/fft.c.o.d -o CMakeFiles/opendsp.dir/dsp/fft.c.o -c /<<PKGBUILDDIR>>/dsp/fft.c
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/buffer.c.o -MF CMakeFiles/opendsp.dir/dsp/buffer.c.o.d -o CMakeFiles/opendsp.dir/dsp/buffer.c.o -c /<<PKGBUILDDIR>>/dsp/buffer.c
[ 23%] Building C object CMakeFiles/opendsp.dir/dsp/convolution.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/convolution.c.o -MF CMakeFiles/opendsp.dir/dsp/convolution.c.o.d -o CMakeFiles/opendsp.dir/dsp/convolution.c.o -c /<<PKGBUILDDIR>>/dsp/convolution.c
[ 26%] Building C object CMakeFiles/opendsp.dir/dsp/signals.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/signals.c.o -MF CMakeFiles/opendsp.dir/dsp/signals.c.o.d -o CMakeFiles/opendsp.dir/dsp/signals.c.o -c /<<PKGBUILDDIR>>/dsp/signals.c
[ 28%] Building C object CMakeFiles/opendsp.dir/dsp/stream.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/stream.c.o -MF CMakeFiles/opendsp.dir/dsp/stream.c.o.d -o CMakeFiles/opendsp.dir/dsp/stream.c.o -c /<<PKGBUILDDIR>>/dsp/stream.c
/<<PKGBUILDDIR>>/vlbi_server.cpp: In member function ‘void VLBI::Server::AddNode(const char*, char*)’:
/<<PKGBUILDDIR>>/vlbi_server.cpp:55:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
55 | write(fd, buf, len);
| ~~~~~^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/vlbi_server.cpp: In member function ‘void VLBI::Server::AddNodes(const char*, char*)’:
/<<PKGBUILDDIR>>/vlbi_server.cpp:73:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
73 | write(fd, buf, len);
| ~~~~~^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/vlbi_server.cpp: In member function ‘char* VLBI::Server::GetModel(const char*, char*)’:
/<<PKGBUILDDIR>>/vlbi_server.cpp:196:14: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
196 | fread(buf, (size_t)len, 1, f);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/vlbi_server.cpp: In member function ‘void VLBI::Server::AddModel(const char*, char*, char*)’:
/<<PKGBUILDDIR>>/vlbi_server.cpp:244:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
244 | write(fd, buf, len);
| ~~~~~^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/vlbi_server.cpp: In member function ‘virtual void VLBI::Server::Parse()’:
/<<PKGBUILDDIR>>/vlbi_server.cpp:272:13: warning: ignoring return value of ‘__ssize_t getdelim(char**, size_t*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
272 | getdelim(&str, &len, (int)'\n', f);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
[ 31%] Building C object CMakeFiles/opendsp.dir/dsp/fits.c.o
/usr/bin/cc -Dopendsp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/vlbi -I/<<PKGBUILDDIR>>/dsp -I/<<PKGBUILDDIR>> -I/usr/include/libindi -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -fPIC -MD -MT CMakeFiles/opendsp.dir/dsp/fits.c.o -MF CMakeFiles/opendsp.dir/dsp/fits.c.o.d -o CMakeFiles/opendsp.dir/dsp/fits.c.o -c /<<PKGBUILDDIR>>/dsp/fits.c
[ 34%] Linking CXX static library libopenvlbi_server.a
/usr/bin/cmake -P CMakeFiles/openvlbi_server.dir/cmake_clean_target.cmake
/usr/bin/cmake -E cmake_link_script CMakeFiles/openvlbi_server.dir/link.txt --verbose=1
/usr/bin/ar qc libopenvlbi_server.a CMakeFiles/openvlbi_server.dir/vlbi_server.cpp.o
/usr/bin/ranlib libopenvlbi_server.a
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 34%] Built target openvlbi_server
[ 36%] Linking C shared library libopendsp.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/opendsp.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -O1 -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,nodump -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -pie -shared -Wl,-soname,libopendsp.so.1 -o libopendsp.so.1.23.0 CMakeFiles/opendsp.dir/dsp/align.c.o CMakeFiles/opendsp.dir/dsp/convert.c.o CMakeFiles/opendsp.dir/dsp/fft.c.o CMakeFiles/opendsp.dir/dsp/file.c.o CMakeFiles/opendsp.dir/dsp/filters.c.o CMakeFiles/opendsp.dir/dsp/stats.c.o CMakeFiles/opendsp.dir/dsp/buffer.c.o CMakeFiles/opendsp.dir/dsp/convolution.c.o CMakeFiles/opendsp.dir/dsp/signals.c.o CMakeFiles/opendsp.dir/dsp/stream.c.o CMakeFiles/opendsp.dir/dsp/fits.c.o /usr/lib/x86_64-linux-gnu/libfftw3.so /usr/lib/x86_64-linux-gnu/libcfitsio.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libz.so -lpthread
/usr/bin/ld: /tmp/ccmOeJCv.ltrans0.ltrans.o: warning: relocation against `dsp_qsort_double_desc' in read-only section `.text'
/usr/bin/ld: /tmp/ccmOeJCv.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `dsp_qsort_star_diameter_desc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/opendsp.dir/build.make:266: libopendsp.so.1.23.0] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:96: CMakeFiles/opendsp.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Debian-astro-maintainers
mailing list