[pkg-golang-devel] Bug#897762: golang-1.9: ftbfs with GCC-8

Matthias Klose doko at debian.org
Fri May 4 13:21:49 BST 2018


Package: src:golang-1.9
Version: 1.9.4-1
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-8

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-8/g++-8, but succeeds to build with gcc-7/g++-7. The
severity of this report will be raised before the buster release.

The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/golang-1.9_1.9.4-1_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 8, either set CC=gcc-8 CXX=g++-8 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-8/porting_to.html

[...]
PASS
something

##### ../misc/cgo/testasan

##### ../misc/cgo/testsanitizers
./test.bash: line 18: sysctl: command not found
skipping msan tests: cc -fsanitize=memory not supported
# runtime/cgo
gcc_util.c: In function 'x_cgo_yield':
gcc_util.c:55:2: error: 'strncpy' destination unchanged after copying no bytes [-Werror=stringop-truncation]
  strncpy(&nothing, &nothing, 0);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
FAIL: tsan5.go
# runtime/cgo
gcc_util.c: In function 'x_cgo_yield':
gcc_util.c:55:2: error: 'strncpy' destination unchanged after copying no bytes [-Werror=stringop-truncation]
  strncpy(&nothing, &nothing, 0);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
FAIL: tsan6.go
# runtime/cgo
gcc_util.c: In function 'x_cgo_yield':
gcc_util.c:55:2: error: 'strncpy' destination unchanged after copying no bytes [-Werror=stringop-truncation]
  strncpy(&nothing, &nothing, 0);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
FAIL: tsan7.go
2018/05/02 12:09:18 Failed: exit status 1

##### ../misc/cgo/errors

##### ../misc/cgo/testsigfwd

##### ../test/bench/go1
testing: warning: no tests to run
PASS
ok  	_/<<PKGBUILDDIR>>/test/bench/go1	2.996s

##### ../test

##### API check
Go version is "go1.9.4", ignoring -next /<<PKGBUILDDIR>>/api/next.txt

FAILED
make[1]: *** [debian/rules:57: override_dh_auto_test-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:22: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the pkg-golang-devel mailing list