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

Bug#853409: fwupdate: ftbfs with GCC-7

Package: src:fwupdate
Version: 8-3
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:
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

	--target efi-app-x86_64 mkvar2.so mkvar2.efi
rm fakeesrt.so fakeesrt2.o mkvar2.so dumpesrt.so dumpf.o mkvar.o fakeesrt2.so dumpf.so mkvar.so fwupdate.o fakeesrt.o mkvar2.o dumpesrt.o
make[3]: Leaving directory '/<<PKGBUILDDIR>>/efi'
make[3]: Entering directory '/<<PKGBUILDDIR>>/linux'
sed -e "s,@@VERSION@@,8,g" \
	-e "s,@@FWUP_MAJOR_VERSION@@,,g" \
	-e "s,@@FWUP_MINOR_VERSION@@,,g" \
	-e "s,@@DATADIR@@,/var/cache/,g" \
	-e "s,@@EFIDIR@@,debian,g" \
	-e "s,@@LIBDIR@@,/usr/lib/x86_64-linux-gnu,g" \
	-e "s,@@LIBEXECDIR@@,/usr/lib/,g" \
	include/fwup-version.h.in > include/fwup-version.h
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DFWUPDATE_HAVE_LIBSMBIOS__ -Wall -Wextra -Werror -Wno-error=cpp -Wno-unused-result -Wno-unused-function -Wsign-compare -Werror=sign-compare -fshort-wchar --std=gnu11 -DLOCALEDIR=\"/usr/share/locale/\" -D_GNU_SOURCE -DFWUP_EFI_DIR_NAME=\"debian\" -I/<<PKGBUILDDIR>>/linux/include -iquote/<<PKGBUILDDIR>>/include/  -I/usr/include/efivar  -I/usr/include/efivar    -fPIC -c -o libfwup.o libfwup.c
In file included from /usr/include/efivar/efiboot.h:36:0,
                 from libfwup.c:12:
/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,
In file included from libfwup.c:29:0:
ucs2.h:13:29: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
 ucs2_to_utf8(const uint16_t const *chars, size_t max)
In file included from /usr/include/smbios_c/config/get_config.h:36:0,
                 from /usr/include/smbios_c/compat.h:27,
                 from /usr/include/smbios_c/token.h:23,
                 from libfwup.c:36:
/usr/include/smbios_c/config/compiler/gcc.h:31:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results" [-Wcpp]
 #     warning "Unknown compiler version - please run the configure tests and report the results"
libfwup.c: In function 'set_up_boot_next':
libfwup.c:962:36: error: may write a terminating nul past the end of the destination [-Werror=format-overflow=]
   sprintf(boot_next_name, "Boot%04X", boot_next);
libfwup.c:962:3: note: format output between 9 and 10 bytes into a destination of size 9
   sprintf(boot_next_name, "Boot%04X", boot_next);
cc1: all warnings being treated as errors
Makefile:76: recipe for target 'libfwup.o' failed
make[3]: *** [libfwup.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/linux'
Makefile:9: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 libdir=/usr/lib/x86_64-linux-gnu libexecdir=${prefix}lib/ datadir=/var/cache/ localedir=/usr/share/locale/ GNUEFIDIR=${prefix}/lib EFIDIR=debian returned exit code 2
debian/rules:21: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:18: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Reply to: