d/libHSCabal-3.6.3.0.a | Run Ar Pack Stage0: _build/stage0/libraries/Cabal/Cabal/build/Distribution/Backpack.o (and 246 more) => _build/stage0/libraries/Cabal/Cabal/build/libHSCabal-3.6.3.0.a ar: creating _build/stage0/libraries/Cabal/Cabal/build/libHSCabal-3.6.3.0.a /-------------------------------------------------------------------------\ | Successfully built library 'Cabal' (Stage0, way v). | | Library: _build/stage0/libraries/Cabal/Cabal/build/libHSCabal-3.6.3.0.a | | Library synopsis: A framework for packaging Haskell software. | \-------------------------------------------------------------------------/ | Copy package 'Cabal' # cabal-copy (for _build/stage0/lib/package.conf.d/Cabal-3.6.3.0.conf) | Register package 'Cabal' # cabal-register (for _build/stage0/lib/package.conf.d/Cabal-3.6.3.0.conf) | Configure package 'ghc-pkg' # cabal-configure (for _build/stage0/utils/ghc-pkg/setup-config) # cabal-autogen (for _build/stage0/utils/ghc-pkg/build/ghc-pkg/autogen/cabal_macros.h) | Run Ghc FindHsDependencies Stage0: utils/ghc-pkg/Main.hs => _build/stage0/utils/ghc-pkg/.dependencies.mk | Remove file _build/stage0/utils/ghc-pkg/.dependencies.mk.bak | Run Ghc CompileHs Stage0: utils/ghc-pkg/Main.hs => _build/stage0/utils/ghc-pkg/build/Main.o utils/ghc-pkg/Main.hs:1992:1: warning: [-Wunused-top-binds] Defined but not used: ‘checkFile’ | 1992 | checkFile = checkPath False False | ^^^^^^^^^ utils/ghc-pkg/Main.hs:1993:1: warning: [-Wunused-top-binds] Defined but not used: ‘checkDirURL’ | 1993 | checkDirURL = checkPath True True | ^^^^^^^^^^^ | Run Ghc LinkHs Stage0: _build/stage0/utils/ghc-pkg/build/Main.o => _build/stage0/bin/ghc-pkg /---------------------------------------------------------------------------------\ | Successfully built program 'ghc-pkg' (Stage0). | | Executable: _build/stage0/bin/ghc-pkg | | Program synopsis: A utility for querying and managing the GHC package database. | \---------------------------------------------------------------------------------/ | Run GhcPkg Init Stage1: none => none Error when running Shake build system: at want, called at src/Main.hs:104:30 in main:Main * Depends on: binary-dist-dir at need, called at src/Rules/BinaryDist.hs:130:9 in main:Rules.BinaryDist * Depends on: _build/stage1/lib/package.conf.d/rts-1.0.2.conf at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.19.7-KVL5jOjTnWxFgp3NkYKAyY:Development.Shake.Internal.Rules.Oracle * Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "rts", pkgPath = "rts"}, way = v})) at need, called at src/Hadrian/Oracles/Cabal/Rules.hs:54:9 in main:Hadrian.Oracles.Cabal.Rules * Depends on: _build/stage1/rts/setup-config at need, called at src/Hadrian/Builder.hs:80:9 in main:Hadrian.Builder * Depends on: /usr/bin/ld.gold at error, called at src/Development/Shake/Internal/Rules/File.hs:179:58 in shake-0.19.7-KVL5jOjTnWxFgp3NkYKAyY:Development.Shake.Internal.Rules.File * Raised the exception: Error, file does not exist and no rule available: /usr/bin/ld.gold RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.AlxwPM (%build) %patchN is deprecated (10 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.AlxwPM (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc9.2.spec