https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87722
Bug ID: 87722
Summary: go bootstrap is broken on armv7l target
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: ian at gcc dot gnu.org
Target Milestone: ---
I see following:
[ 6365s] checking for catanf... libtool: compile:
/home/abuild/rpmbuild/BUILD/gcc-9.0.0+r265378/obj-armv7hl-suse-linux-gnueabi/./gcc/gccgo
-B/home/abuild/rpmbuild/BUILD/gcc-9.0.0+r265378/obj-armv7hl-suse-linux-gnueabi/./gcc/
-B/usr/armv7hl-suse-linux-gnueabi/bin/ -B/usr/armv7hl-suse-linux-gnueabi/lib/
-isystem /usr/armv7hl-suse-linux-gnueabi/include -isystem
/usr/armv7hl-suse-linux-gnueabi/sys-include -O2 -g -I . -c
-fgo-pkgpath=math/cmplx ../../../libgo/go/math/cmplx/abs.go
../../../libgo/go/math/cmplx/asin.go ../../../libgo/go/math/cmplx/conj.go
../../../libgo/go/math/cmplx/exp.go ../../../libgo/go/math/cmplx/isinf.go
../../../libgo/go/math/cmplx/isnan.go ../../../libgo/go/math/cmplx/log.go
../../../libgo/go/math/cmplx/phase.go ../../../libgo/go/math/cmplx/polar.go
../../../libgo/go/math/cmplx/pow.go ../../../libgo/go/math/cmplx/rect.go
../../../libgo/go/math/cmplx/sin.go ../../../libgo/go/math/cmplx/sqrt.go
../../../libgo/go/math/cmplx/tan.go -fPIC -o math/.libs/cmplx.o
[ 6365s] libtool: compile:
/home/abuild/rpmbuild/BUILD/gcc-9.0.0+r265378/obj-armv7hl-suse-linux-gnueabi/./gcc/gccgo
-B/home/abuild/rpmbuild/BUILD/gcc-9.0.0+r265378/obj-armv7hl-suse-linux-gnueabi/./gcc/
-B/usr/armv7hl-suse-linux-gnueabi/bin/ -B/usr/armv7hl-suse-linux-gnueabi/lib/
-isystem /usr/armv7hl-suse-linux-gnueabi/include -isystem
/usr/armv7hl-suse-linux-gnueabi/sys-include -O2 -g -I . -c
-fgo-pkgpath=internal/testlog ../../../libgo/go/internal/testlog/log.go -o
internal/testlog.o >/dev/null 2>&1
[ 6365s] runtime_sysinfo.go:1672:7: error: redefinition of '_HWCAP_IDIVA'
[ 6365s] 1672 | const _HWCAP_IDIVA = (1 << 17)
[ 6365s] | ^
[ 6365s] ../../../libgo/go/runtime/os_linux_arm.go:14:2: note: previous
definition of '_HWCAP_IDIVA' was here
[ 6365s] 14 | _HWCAP_IDIVA = 1 << 17
[ 6365s] | ^
[ 6365s] runtime_sysinfo.go:3152:7: error: redefinition of '_HWCAP_VFPv3'
[ 6365s] 3152 | const _HWCAP_VFPv3 = (1 << 13)
[ 6365s] | ^
[ 6365s] ../../../libgo/go/runtime/os_linux_arm.go:13:2: note: previous
definition of '_HWCAP_VFPv3' was here
[ 6365s] 13 | _HWCAP_VFPv3 = 1 << 13 // introduced in 2.6.30
[ 6365s] | ^
[ 6365s] runtime_sysinfo.go:5579:7: error: redefinition of '_HWCAP_VFP'
[ 6365s] 5579 | const _HWCAP_VFP = (1 << 6)
[ 6365s] | ^
[ 6365s] ../../../libgo/go/runtime/os_linux_arm.go:12:2: note: previous
definition of '_HWCAP_VFP' was here
[ 6365s] 12 | _HWCAP_VFP = 1 << 6 // introduced in at least 2.6.11
[ 6365s] | ^
Any idea what can be wrong?