golang 1.24.4 is unable to be built on riscv64 due to race being enabled and it not being supported on that architecture.
What were you trying to do that didn't work?
Build golang on riscv64 for EL10
What is the impact of this issue to you?
Lack of golang updates - though this is rectified by a simple patch to the spec.
Please provide the package NVR for which the bug is seen:
golang-1.24.4-1.el10
How reproducible is this bug?:
Always.
Steps to reproduce
- Install mock on a given riscv64 system
- Configure mock against the proper build root
- mock -r cfg golang-1.24.4-1.el10.src.rpm
Expected results
Successful build.
Actual results
Failure with the following message.
Installed Go for linux/riscv64 in /builddir/build/BUILD/go
Installed commands in /builddir/build/BUILD/go/bin
You need to add /builddir/build/BUILD/go/bin to your PATH.
+ popd
~/build/BUILD/go
++ pwd
+ GOROOT=/builddir/build/BUILD/go
++ pwd
+ PATH=/builddir/build/BUILD/go/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
+ go install -race std
-race is not supported on linux/riscv64
error: Bad exit status from /var/tmp/rpm-tmp.gNyNq6 (%build)
Bad exit status from /var/tmp/rpm-tmp.gNyNq6 (%build)
I have the priority set to minor. As far as I know, riscv64 is being looked into for CentOS Stream 10 in the future and this fix may help them in the future.