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

Bug#853384: efivar: ftbfs with GCC-7



Package: src:efivar
Version: 30-1
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/efivar_30-1_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

[...]
   addr1 = alloca(sz+1);
         ^
dp-message.c:429:9: note: in a call to built-in allocation function '__builtin_alloca'
dp-message.c:465:3: error: argument 1 value '18446744073709551606' exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
   format_ucs2(buf, size, off, "UsbWwid",
   ^
dp-message.c:465:3: note: in a call to built-in allocation function '__builtin_alloca_with_align'
In function 'memset',
    inlined from '_format_message_dn' at dp-message.c:465:3:
/usr/include/x86_64-linux-gnu/bits/string3.h:90:10: error: '__builtin_memset': specified size 18446744073709551606 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
          ^
In function 'memcpy',
    inlined from '_format_message_dn' at dp-message.c:465:3:
/usr/include/x86_64-linux-gnu/bits/string3.h:53:10: error: '__builtin_memcpy': specified size 18446744073709551604 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
          ^
dp-media.c: In function '_format_media_dn':
dp-media.c:73:3: error: argument 1 value '18446744073709551610' exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
   format_ucs2(buf, size, off, "File", dp->file.name,
   ^
dp-media.c:73:3: note: in a call to built-in allocation function '__builtin_alloca_with_align'
In function 'memset',
    inlined from '_format_media_dn' at dp-media.c:73:3:
/usr/include/x86_64-linux-gnu/bits/string3.h:90:10: error: '__builtin_memset': specified size 18446744073709551610 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
          ^
In function 'memcpy',
    inlined from '_format_media_dn' at dp-media.c:73:3:
/usr/include/x86_64-linux-gnu/bits/string3.h:53:10: error: '__builtin_memcpy': specified size 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
          ^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
/<<PKGBUILDDIR>>/Make.rules:20: recipe for target 'libefivar.so' failed
make[3]: *** [libefivar.so] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
Makefile:11: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 libdir=${prefix}/lib/x86_64-linux-gnu returned exit code 2
debian/rules:15: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:12: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2


Reply to: