Fails with: [ 4342s] /home/abuild/rpmbuild/BUILD/gcc-13.0.0+git194331/obj-x86_64-suse-linux/./gcc/xgcc -B/home/abuild/rpmbuild/BUILD/gcc-13.0.0+git194331/obj-x86_64-suse-linux/./gcc/ -B/usr/x86_64-suse-linux/bin/ -B/usr/x86_64-suse-linux/lib/ -isystem /usr/x86_64-suse-linux/include -isystem /usr/x86_64-suse-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../libgo -I ../../../libgo/runtime -I../../../libgo/../libffi/include -I../libffi/include -pthread -L../libatomic/.libs -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -fdump-go-spec=tmp-gen-sysinfo.go -std=gnu99 -S -o sysinfo.s ../../../libgo/sysinfo.c [ 4342s] In file included from /usr/include/linux/fs.h:19, [ 4342s] from ../../../libgo/sysinfo.c:162: [ 4342s] /usr/include/linux/mount.h:95:6: error: redeclaration of 'enum fsconfig_command' [ 4342s] 95 | enum fsconfig_command { [ 4342s] | ^~~~~~~~~~~~~~~~ [ 4342s] In file included from ../../../libgo/sysinfo.c:141: [ 4342s] /usr/include/sys/mount.h:189:6: note: originally defined here [ 4342s] 189 | enum fsconfig_command [ 4342s] | ^~~~~~~~~~~~~~~~ It's very similar to the following libsanitizer issue: https://github.com/llvm/llvm-project/issues/56421
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>: https://gcc.gnu.org/g:f35d65517a59565758107c5b1a51a5fa382f8d1a commit r13-1686-gf35d65517a59565758107c5b1a51a5fa382f8d1a Author: Ian Lance Taylor <iant@golang.org> Date: Tue Jul 12 19:42:43 2022 -0700 libgo: don't include <linux/fs.h> when building gen-sysinfo.go Removing this doesn't change anything at least with glibc 2.33. The include was added in https://go.dev/cl/6100049 but it's not clear why. Fixes PR go/106266 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294
Should be fixed. Thanks.
The releases/gcc-12 branch has been updated by Martin Liska <marxin@gcc.gnu.org>: https://gcc.gnu.org/g:4f15d2234608e82159d030dadb17af678cfad626 commit r12-8599-g4f15d2234608e82159d030dadb17af678cfad626 Author: Ian Lance Taylor <iant@golang.org> Date: Tue Jul 12 19:42:43 2022 -0700 libgo: don't include <linux/fs.h> when building gen-sysinfo.go Removing this doesn't change anything at least with glibc 2.33. The include was added in https://go.dev/cl/6100049 but it's not clear why. Fixes PR go/106266 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294 (cherry picked from commit f35d65517a59565758107c5b1a51a5fa382f8d1a)
The releases/gcc-11 branch has been updated by Martin Liska <marxin@gcc.gnu.org>: https://gcc.gnu.org/g:a55184ada8e2887ca94c0ab07027617885beafc9 commit r11-10158-ga55184ada8e2887ca94c0ab07027617885beafc9 Author: Ian Lance Taylor <iant@golang.org> Date: Tue Jul 12 19:42:43 2022 -0700 libgo: don't include <linux/fs.h> when building gen-sysinfo.go Removing this doesn't change anything at least with glibc 2.33. The include was added in https://go.dev/cl/6100049 but it's not clear why. Fixes PR go/106266 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294 (cherry picked from commit f35d65517a59565758107c5b1a51a5fa382f8d1a)
The releases/gcc-10 branch has been updated by Martin Liska <marxin@gcc.gnu.org>: https://gcc.gnu.org/g:8c3238510ce63c75024c0288eade5c933f6d322e commit r10-10905-g8c3238510ce63c75024c0288eade5c933f6d322e Author: Ian Lance Taylor <iant@golang.org> Date: Tue Jul 12 19:42:43 2022 -0700 libgo: don't include <linux/fs.h> when building gen-sysinfo.go Removing this doesn't change anything at least with glibc 2.33. The include was added in https://go.dev/cl/6100049 but it's not clear why. Fixes PR go/106266 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294 (cherry picked from commit f35d65517a59565758107c5b1a51a5fa382f8d1a)