Source: gcc-11
Version: 11.5.0-8
Severity: important
Tags: ftbfs upstream
Justification: fails to build from source
User: [email protected]
Usertags: glibc-2.43

Dear maintainer(s),

gcc-11 fails to build from source with glibc 2.43, currently in
experimental. From the build log:

| f="path.o"; if test ! -f $f; then f="./.libs/path.o"; fi; 
aarch64-linux-gnu-objcopy -j .go_export $f path.s-gox.tmp; /bin/bash 
../../../src/libgo/mvifdiff.sh path.s-gox.tmp `echo path.s-gox | sed -e 
's/s-gox/gox/'`
| sysinfo.go:7716:7: error: redefinition of 'SYS_SECCOMP'
|  7716 | const SYS_SECCOMP = _SYS_SECCOMP
|       |       ^
| sysinfo.go:7510:7: note: previous definition of 'SYS_SECCOMP' was here
|  7510 | const SYS_SECCOMP = _SYS_seccomp
|       |       ^
| echo timestamp > path.s-gox
| libtool: compile:  /build/reproducible-path/gcc-11-11.5.0/build/./gcc/gccgo 
-B/build/reproducible-path/gcc-11-11.5.0/build/./gcc/ 
-B/usr/aarch64-linux-gnu/bin/ -B/usr/aarch64-linux-gnu/lib/ -isystem 
/usr/aarch64-linux-gnu/include -isystem /usr/aarch64-linux-gnu/sys-include 
-isystem /build/reproducible-path/gcc-11-11.5.0/build/sys-include -O2 -g -I . 
-c -fgo-pkgpath=io ../../../src/libgo/go/io/io.go 
../../../src/libgo/go/io/multi.go ../../../src/libgo/go/io/pipe.go -o io.o 
>/dev/null 2>&1
| make[6]: *** [Makefile:3012: syscall.lo] Error 1
| make[6]: *** Waiting for unfinished jobs....

...

| make[1]: *** [debian/rules2:1313: stamps/05-build-stamp] Error 2
| make[1]: Leaving directory '/build/reproducible-path/gcc-11-11.5.0'
| make: *** [debian/rules:51: build] Error 2
| dpkg-buildpackage: error: debian/rules build subprocess failed with exit 
status 2

The full build log is available here [1].

The issue is due to the definition of SYS_SECCOMP in <signal/signal.h>
added in glibc 2.43 [2].

I would like to thanks Emanuele Rocca for doing the archive rebuild on a
fast arm64 server.

Regards
Aurelien

[1] 
https://people.debian.org/~ema/glibc-2.43-rebuilds/output-1/gcc-11_arm64.build
[2] 
https://sourceware.org/git/?p=glibc.git;a=commit;h=6f120faf649f03a261e3e64d5b5991030383c1b3

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                     http://aurel32.net

Reply via email to