Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-97549

Disable race for riscv64 on CentOS Stream 10 / RHEL 10

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-10.2
    • CentOS Stream 10, rhel-10.1
    • golang
    • None
    • golang-1.25.1-1.el10
    • No
    • Low
    • 1
    • rhel-pt-go
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • PT Go Team 2025 S12
    • Requested
    • Automated
    • Unspecified
    • Unspecified
    • Unspecified
    • riscv64
    • None

      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

      1. Install mock on a given riscv64 system
      2. Configure mock against the proper build root
      3. 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.

              asaezmor Alejandro Saez Morollon
              louis.abel Louis Abel (Inactive)
              Go Maint Go Maint
              Edjunior Machado Edjunior Machado
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: