[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#853383: efibootmgr: ftbfs with GCC-7



Package: src:efibootmgr
Version: 14-2
Severity: normal
Tags: sid buster
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-7

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/efibootmgr_14-2_unstable_gcc7.log
The last lines of the build log are at the end of this report.

To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-7/porting_to.html

[...]
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building efibootmgr using existing ./efibootmgr_14.orig.tar.gz
dpkg-source: info: building efibootmgr in efibootmgr_14-2.debian.tar.xz
dpkg-source: info: building efibootmgr in efibootmgr_14-2.dsc
 debian/rules build
dh build
   dh_testdir
   dh_update_autotools_config
   dh_auto_configure
   dh_auto_build
	make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
make -f /<<PKGBUILDDIR>>/Make.deps deps SOURCES="efibootmgr.c efi.c unparse_path.c" SUBDIR_CFLAGS="-I/<<PKGBUILDDIR>>/src/include"
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/<<PKGBUILDDIR>>/src/include -Werror -Wall -Wextra -Wsign-compare -Wstrict-aliasing -std=gnu11 -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLOCALEDIR=\"/usr/share/locale/\" -DEFIBOOTMGR_VERSION="\"14\""    -Wdate-time -D_FORTIFY_SOURCE=2 -MM -MG -MF .efibootmgr.d efibootmgr.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/<<PKGBUILDDIR>>/src/include -Werror -Wall -Wextra -Wsign-compare -Wstrict-aliasing -std=gnu11 -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLOCALEDIR=\"/usr/share/locale/\" -DEFIBOOTMGR_VERSION="\"14\""    -Wdate-time -D_FORTIFY_SOURCE=2 -MM -MG -MF .efi.d efi.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/<<PKGBUILDDIR>>/src/include -Werror -Wall -Wextra -Wsign-compare -Wstrict-aliasing -std=gnu11 -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLOCALEDIR=\"/usr/share/locale/\" -DEFIBOOTMGR_VERSION="\"14\""    -Wdate-time -D_FORTIFY_SOURCE=2 -MM -MG -MF .unparse_path.d unparse_path.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
make -f /<<PKGBUILDDIR>>/Make.deps deps SOURCES="efibootmgr.c efi.c unparse_path.c" SUBDIR_CFLAGS="-I/<<PKGBUILDDIR>>/src/include"
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
make[3]: Nothing to be done for 'deps'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/<<PKGBUILDDIR>>/src/include -Werror -Wall -Wextra -Wsign-compare -Wstrict-aliasing -std=gnu11 -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLOCALEDIR=\"/usr/share/locale/\" -DEFIBOOTMGR_VERSION="\"14\""   -I/usr/include/efivar -Wdate-time -D_FORTIFY_SOURCE=2 -c -o efibootmgr.o efibootmgr.c
In file included from /usr/include/efivar/efiboot.h:36:0,
                 from efibootmgr.c:47:
/usr/include/efivar/efiboot-loadopt.h:35:28: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
 extern const unsigned char const * efi_loadopt_desc(efi_load_option *opt,
                            ^~~~~
efibootmgr.c: In function 'warn_duplicate_name':
efibootmgr.c:224:22: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
  const unsigned char const *desc;
                      ^~~~~
efibootmgr.c: In function 'show_vars':
efibootmgr.c:876:22: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
  const unsigned char const *description;
                      ^~~~~
cc1: all warnings being treated as errors
/<<PKGBUILDDIR>>/Make.rules:32: recipe for target 'efibootmgr.o' failed
make[2]: *** [efibootmgr.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
Makefile:10: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 returned exit code 2
debian/rules:9: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2


Reply to: