#1015375 comedilib: ftbfs with LTO (link time optimization) enabled

#1015375#5
Date:
2022-07-19 16:51:09 UTC
From:
To:
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/comedilib_0.11.0+5-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: warning: ‘strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c calib.c -o libcomedi_la-calib.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-cmd.lo `test -f 'cmd.c' || echo './'`cmd.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c cmd.c  -fPIC -DPIC -o .libs/libcomedi_la-cmd.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c cmd.c -o libcomedi_la-cmd.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-comedi.lo `test -f 'comedi.c' || echo './'`comedi.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c comedi.c  -fPIC -DPIC -o .libs/libcomedi_la-comedi.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c comedi.c -o libcomedi_la-comedi.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-data.lo `test -f 'data.c' || echo './'`data.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c data.c  -fPIC -DPIC -o .libs/libcomedi_la-data.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c data.c -o libcomedi_la-data.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-dio.lo `test -f 'dio.c' || echo './'`dio.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c dio.c  -fPIC -DPIC -o .libs/libcomedi_la-dio.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c dio.c -o libcomedi_la-dio.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-error.lo `test -f 'error.c' || echo './'`error.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c error.c  -fPIC -DPIC -o .libs/libcomedi_la-error.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c error.c -o libcomedi_la-error.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-filler.lo `test -f 'filler.c' || echo './'`filler.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c filler.c  -fPIC -DPIC -o .libs/libcomedi_la-filler.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c filler.c -o libcomedi_la-filler.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-get.lo `test -f 'get.c' || echo './'`get.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c get.c  -fPIC -DPIC -o .libs/libcomedi_la-get.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c get.c -o libcomedi_la-get.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-ioctl.lo `test -f 'ioctl.c' || echo './'`ioctl.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c ioctl.c  -fPIC -DPIC -o .libs/libcomedi_la-ioctl.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c ioctl.c -o libcomedi_la-ioctl.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-range.lo `test -f 'range.c' || echo './'`range.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c range.c  -fPIC -DPIC -o .libs/libcomedi_la-range.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c range.c -o libcomedi_la-range.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-sv.lo `test -f 'sv.c' || echo './'`sv.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c sv.c  -fPIC -DPIC -o .libs/libcomedi_la-sv.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c sv.c -o libcomedi_la-sv.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-timed.lo `test -f 'timed.c' || echo './'`timed.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c timed.c  -fPIC -DPIC -o .libs/libcomedi_la-timed.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c timed.c -o libcomedi_la-timed.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-timer.lo `test -f 'timer.c' || echo './'`timer.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c timer.c  -fPIC -DPIC -o .libs/libcomedi_la-timer.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c timer.c -o libcomedi_la-timer.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-calib_lex.lo `test -f 'calib_lex.c' || echo './'`calib_lex.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c calib_lex.c  -fPIC -DPIC -o .libs/libcomedi_la-calib_lex.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c calib_lex.c -o libcomedi_la-calib_lex.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-calib_yacc.lo `test -f 'calib_yacc.c' || echo './'`calib_yacc.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c calib_yacc.c  -fPIC -DPIC -o .libs/libcomedi_la-calib_yacc.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c calib_yacc.c -o libcomedi_la-calib_yacc.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o libcomedi_la-insn_config_wrappers.lo `test -f 'insn_config_wrappers.c' || echo './'`insn_config_wrappers.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c insn_config_wrappers.c  -fPIC -DPIC -o .libs/libcomedi_la-insn_config_wrappers.o
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c insn_config_wrappers.c -o libcomedi_la-insn_config_wrappers.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=link x86_64-linux-gnu-gcc -I../include -I../include -Wall -D_REENTRANT -DLOCALSTATEDIR=\"\/var\" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -soname libcomedi -version-info 11:0:11 -Wl,--version-script=./version_script -flto=auto -ffat-lto-objects -Wl,-z,relro -o libcomedi.la -rpath /usr/lib libcomedi_la-buffer.lo libcomedi_la-calib.lo libcomedi_la-cmd.lo libcomedi_la-comedi.lo libcomedi_la-data.lo libcomedi_la-dio.lo libcomedi_la-error.lo libcomedi_la-filler.lo libcomedi_la-get.lo libcomedi_la-ioctl.lo libcomedi_la-range.lo libcomedi_la-sv.lo libcomedi_la-timed.lo libcomedi_la-timer.lo libcomedi_la-calib_lex.lo libcomedi_la-calib_yacc.lo libcomedi_la-insn_config_wrappers.lo -lm
libtool: link: x86_64-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/libcomedi_la-buffer.o .libs/libcomedi_la-calib.o .libs/libcomedi_la-cmd.o .libs/libcomedi_la-comedi.o .libs/libcomedi_la-data.o .libs/libcomedi_la-dio.o .libs/libcomedi_la-error.o .libs/libcomedi_la-filler.o .libs/libcomedi_la-get.o .libs/libcomedi_la-ioctl.o .libs/libcomedi_la-range.o .libs/libcomedi_la-sv.o .libs/libcomedi_la-timed.o .libs/libcomedi_la-timer.o .libs/libcomedi_la-calib_lex.o .libs/libcomedi_la-calib_yacc.o .libs/libcomedi_la-insn_config_wrappers.o   -lm  -g -O2 -flto=auto -fstack-protector-strong -Wl,--version-script=./version_script -flto=auto -Wl,-z -Wl,relro   -Wl,-soname -Wl,libcomedi.so.0 -o .libs/libcomedi.so.0.11.0
/tmp/ccJqxYRw.s: Assembler messages:
/tmp/ccJqxYRw.s: Error: invalid attempt to declare external version name as default in symbol `comedi_set_buffer_size@@v0.7.18'
make[5]: *** [/tmp/ccPf1Cdx.mk:2: /tmp/cc8SbWBr.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:484: libcomedi.la] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[3]: *** [Makefile:414: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[2]: *** [Makefile:506: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:413: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:72: build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2