Bug#835980: triggerhappy: FTBFS: evtable_SW.inc:17:8: error: array index in initializer exceeds array bounds
Chris Lamb
lamby at debian.org
Mon Aug 29 17:20:32 UTC 2016
Source: triggerhappy
Version: 0.4.0-2
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Dear Maintainer,
triggerhappy fails to build from source in unstable/amd64:
[..]
**************************************************************************************
** Starting build **
**************************************************************************************
Package: triggerhappy
Version: 0.4.0-2
Build architecture: amd64
Date: Mon, 29 Aug 2016 18:12:30 +0100
Hostname: 664a26da6444
Uname: Linux 664a26da6444 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux
/etc/timezone: Europe/London
**************************************************************************************
** Installing build dependencies **
**************************************************************************************
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package 'triggerhappy-build-deps' in '../triggerhappy-build-deps_0.4.0-2_all.deb'.
The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
Selecting previously unselected package triggerhappy-build-deps.
(Reading database ... 23302 files and directories currently installed.)
Preparing to unpack triggerhappy-build-deps_0.4.0-2_all.deb ...
Unpacking triggerhappy-build-deps (0.4.0-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following additional packages will be installed:
libsystemd-dev pkg-config
The following NEW packages will be installed:
libsystemd-dev pkg-config
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 287 kB of archives.
After this operation, 827 kB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian sid/main amd64 pkg-config amd64 0.29-4 [62.5 kB]
Get:2 http://httpredir.debian.org/debian sid/main amd64 libsystemd-dev amd64 231-5 [224 kB]
Fetched 287 kB in 0s (22.8 MB/s)
Selecting previously unselected package pkg-config.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23306 files and directories currently installed.)
Preparing to unpack .../0-pkg-config_0.29-4_amd64.deb ...
Unpacking pkg-config (0.29-4) ...
Selecting previously unselected package libsystemd-dev:amd64.
Preparing to unpack .../1-libsystemd-dev_231-5_amd64.deb ...
Unpacking libsystemd-dev:amd64 (231-5) ...
Setting up pkg-config (0.29-4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libsystemd-dev:amd64 (231-5) ...
Setting up triggerhappy-build-deps (0.4.0-2) ...
**************************************************************************************
** Environment **
**************************************************************************************
PATH=/home/lamby/git/projects/dotfiles/dotfiles/..//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=664a26da6444
TERM=xterm
PAGER=more
DISPLAY=:0
DOCKER_IMAGE=lamby-debian-sid
DEB_BUILD_OPTIONS=parallel=9
PIP_DOWNLOAD_CACHE=/home/lamby/.cache/pip
HOME=/home/lamby
LOGNAME=lamby
SHLVL=1
PWD=/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0
OLDPWD=/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy
GPG_TTY=/dev/console
QUILT_PATCHES=debian/patches
QUILT_NO_DIFF_INDEX=1
QUILT_REFRESH_ARGS=-p ab --no-timestamps --no-index
DEBEMAIL=lamby at debian.org
DEBFULLNAME=Chris Lamb
EDITOR=vim
LESS=-cgiFx4M
GPG_KEY=1E953E27D4311E58
BLASTER=A220 I5 D1 H5 P330 T6
_=/usr/bin/env
**************************************************************************************
** Building triggerhappy 0.4.0-2 on amd64 **
**************************************************************************************
dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: info: source package triggerhappy
dpkg-buildpackage: info: source version 0.4.0-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Stefan Tomanek <stefan.tomanek+debian at wertarbyte.de>
dpkg-source --before-build triggerhappy-0.4.0
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean --with=systemd
dh_testdir
dh_auto_clean
make -j1 clean
make[1]: Entering directory '/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0'
rm -f *.d
rm -f *.o
rm -f linux_input_defs_gen.inc
rm -f evtable_*.inc
rm -f version.h
rm -f thd th-cmd
rm -f thd.1 th-cmd.1
make[1]: Leaving directory '/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0'
dh_clean
debian/rules build
dh build --with=systemd
dh_testdir
dh_update_autotools_config
dh_auto_configure
dh_auto_build
make -j1
make[1]: Entering directory '/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0'
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o cmdsocket.d cmdsocket.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o th-cmd.d th-cmd.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o triggerparser.d triggerparser.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o uinput.d uinput.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o ignore.d ignore.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o obey.d obey.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o devices.d devices.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o eventnames.d eventnames.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o trigger.d trigger.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o keystate.d keystate.c
cc -M -MG -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -o thd.d thd.c
sed -r 's!(.*)!#define TH_VERSION "\1"!' version.inc > version.h
cc -g -O2 -fdebug-prefix-map=/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -c -o thd.o thd.c
cc -g -O2 -fdebug-prefix-map=/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -c -o keystate.o keystate.c
cc -g -O2 -fdebug-prefix-map=/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -c -o trigger.o trigger.c
trigger.c: In function 'run_triggers':
trigger.c:230:6: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
system(et->action);
^~~~~~~~~~~~~~~~~~
echo "#include <linux/input.h>" | cc -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -dM -E - > linux_input_defs_gen.inc
awk '/^#define EV_/ && $2 !~ /_(MIN_INTERESTING|MAX|CNT|VERSION)$/ {print "EV_MAP("$2"),"}' linux_input_defs_gen.inc > evtable_EV.inc
awk '/^#define KEY_/ && $2 !~ /_(MIN_INTERESTING|MAX|CNT|VERSION)$/ {print "EV_MAP("$2"),"}' linux_input_defs_gen.inc > evtable_KEY.inc
awk '/^#define BTN_/ && $2 !~ /_(MIN_INTERESTING|MAX|CNT|VERSION)$/ {print "EV_MAP("$2"),"}' linux_input_defs_gen.inc > evtable_BTN.inc
awk '/^#define REL_/ && $2 !~ /_(MIN_INTERESTING|MAX|CNT|VERSION)$/ {print "EV_MAP("$2"),"}' linux_input_defs_gen.inc > evtable_REL.inc
awk '/^#define SW_/ && $2 !~ /_(MIN_INTERESTING|MAX|CNT|VERSION)$/ {print "EV_MAP("$2"),"}' linux_input_defs_gen.inc > evtable_SW.inc
cc -g -O2 -fdebug-prefix-map=/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_SYSTEMD=1 -c -o eventnames.o eventnames.c
In file included from eventnames.c:11:0:
evtable_SW.inc:17:8: error: array index in initializer exceeds array bounds
EV_MAP(SW_PEN_INSERTED),
^
eventtable.h:9:23: note: in definition of macro 'EV_MAP'
#define EV_MAP( N ) [ N ] = #N
^
evtable_SW.inc:17:8: note: (near initialization for 'SW_NAME')
EV_MAP(SW_PEN_INSERTED),
^
eventtable.h:9:23: note: in definition of macro 'EV_MAP'
#define EV_MAP( N ) [ N ] = #N
^
<builtin>: recipe for target 'eventnames.o' failed
make[1]: *** [eventnames.o] Error 1
make[1]: Leaving directory '/home/lamby/temp/cdt.20160829181228.8nOvYn1exW.db.triggerhappy/triggerhappy-0.4.0'
dh_auto_build: make -j1 returned exit code 2
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
[..]
The full build log is attached.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: triggerhappy.0.4.0-2.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 2628 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160829/58fdf4a6/attachment.obj>
More information about the Reproducible-builds
mailing list