Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 991929

Summary: [ARM] Agda FTBFS
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: AgdaAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: haskell-devel, petersen
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: arm   
OS: Unspecified   
Whiteboard: TemplateHaskell
Fixed In Version: Agda- Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-10 01:29:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 245418, 991858    

Description Dennis Gilmore 2013-08-05 02:58:01 UTC
Your package Agda failed to build from source in current rawhide.

Build logs:
NOTE: build logs are cleaned up after 1 week

For details on mass rebuild see

Comment 1 Jens Petersen 2013-08-20 23:10:52 UTC

[ 77 of 251] Compiling Agda.Syntax.Internal ( src/full/Agda/Syntax/Internal.hs, dist/build/Agda/Syntax/Internal.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array- ... linking ... done.
Loading package deepseq- ... linking ... done.
Loading package bytestring- ... linking ... done.
Loading package zlib- ... linking ... done.
Loading package xhtml-3000.2.1 ... linking ... done.
Loading package text- ... linking ... done.
Loading package hashable- ... linking ... done.
Loading package unordered-containers- ... linking ... done.
Loading package filepath- ... linking ... done.
Loading package old-locale- ... linking ... done.
Loading package time- ... linking ... done.
Loading package unix- ... linking ... done.
Loading package directory- ... linking ... done.
Loading package process- ... linking ... done.
Loading package containers- ... linking ... done.
Loading package parallel- ... linking ... done.
Loading package old-time- ... linking ... done.
Loading package cpphs-1.16 ... linking ... done.
Loading package pretty- ... linking ... done.
Loading package haskell-src-exts-1.13.5 ... linking ... done.
Loading package terminfo- ... linking ... done.
Loading package transformers- ... linking ... done.
Loading package haskeline- ... linking ... done.
Loading package primitive- ... linking ... done.
Loading package vector- ... linking ... done.
Loading package hashtables- ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package geniplate- ... linking ... done.
Loading package binary- ... linking ... done.
Loading package random- ... linking ... done.
Loading package QuickCheck-2.6 ... linking ... done.
error: Bad exit status from /var/tmp/rpm-tmp.AXo34V (%build)

Comment 2 Fedora End Of Life 2013-09-16 15:04:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:

Comment 3 Peter Robinson 2014-08-16 15:14:08 UTC
Gets a lot further in F-21/rawhide Agda-

[249 of 251] Compiling Agda.Interaction.InteractionTop ( src/full/Agda/Interaction/InteractionTop.hs, dist/build/Agda/Interaction/InteractionTop.p_o )
[250 of 251] Compiling Agda.Interaction.GhcTop ( src/full/Agda/Interaction/GhcTop.hs, dist/build/Agda/Interaction/GhcTop.p_o )
ghc: panic! (the 'impossible' happened)
  (GHC version 7.6.3 for arm-unknown-linux):
    haskell-src-exts-1.13.5:Language.Haskell.Exts.Comments.$w$cgmapQr{v rnkM} [gid]
      base:GHC.IO.Handle.FD.stdout{v r1eD} [gid]
      base:GHC.IO.Handle.Types.NoBuffering{v r1g4} [gid[DataCon]]
    forall r{tv ccCfZ} [tv] r'{tv ccCg0} [tv].
    (r'{tv ccCg0} [tv] -> r{tv ccCfZ} [tv] -> r{tv ccCfZ} [tv])
    -> r{tv ccCfZ} [tv]
    -> (forall d{tv ccCg1} [tv].
        base:Data.Data.Data{tc 29} d{tv ccCg1} [tv] =>
        d{tv ccCg1} [tv] -> r'{tv ccCg0} [tv])
    -> ghc-prim:GHC.Types.Bool{(w) tc 3c}
    -> haskell-src-exts-1.13.5:Language.Haskell.Exts.SrcLoc.SrcSpan{tc s15g6M}
    -> base:GHC.Base.String{tc 36u}
    -> r{tv ccCfZ} [tv]
Please report this as a GHC bug:
error: Bad exit status from /var/tmp/rpm-tmp.R33Jlz (%build)

Comment 4 Jens Petersen 2014-08-20 07:44:15 UTC
Thanks for the report: I am hoping that 7.8.3 will help with
some of the ARM template-haskell issues.

Comment 5 Jaroslav Reznik 2015-03-03 14:58:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:

Comment 6 Jens Petersen 2015-04-03 12:56:56 UTC
Gets pretty far with ghc-7.8.4:

[276 of 278] Compiling Agda.Interaction.InteractionTop ( src/full/Agda/Interaction/InteractionTop.hs, dist/build/Agda/Interaction/InteractionTop.o )
ghc: out of memory (requested 1048576 bytes)

Comment 7 Jens Petersen 2016-10-06 10:02:30 UTC
With ghc-7.10.3 for Agda- still get:

[279 of 294] Compiling Agda.TypeChecking.Rules.Decl ( src/full/Agda/TypeChecking/Rules/Decl.hs, dist/build/Agda/TypeChecking/Rules/Decl.o )
ghc: out of memory (requested 2097152 bytes)

Comment 8 Jens Petersen 2017-03-10 11:28:35 UTC
With ghc-8.0.2 (f26):

[304 of 334] Compiling Agda.Syntax.Translation.ConcreteToAbstract ( src/full/Agda/Syntax/Translation/ConcreteToAbstract.hs, dist/build/Agda/Syntax/Translation/ConcreteToAbstract.o )
ghc: out of memory (requested 1048576 bytes)

Comment 9 Fedora End Of Life 2017-11-16 18:31:30 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2017-12-12 10:25:05 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 11 Jens Petersen 2017-12-15 04:05:40 UTC
Still true today

Comment 12 Fedora End Of Life 2018-02-20 15:37:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 13 Jens Petersen 2018-08-29 00:53:36 UTC
[193 of 325] Compiling Agda.TypeChecking.Monad.Signature ( src/full/Agda/TypeChecking/Monad/Signature.hs, dist/build/Agda/TypeChecking/Monad/Signature.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.2.2 for arm-unknown-linux):
  Call stack:
      CallStack (from HasCallStack):
        prettyCurrentCallStack, called at compiler/utils/Outputable.hs:1133:58 in ghc:Outputable
        callStackDoc, called at compiler/utils/Outputable.hs:1137:37 in ghc:Outputable
        pprPanic, called at compiler/types/Type.hs:949:35 in ghc:Type
Please report this as a GHC bug:

Comment 14 Jens Petersen 2019-09-10 02:40:51 UTC
ghc-8.6.5 panics:

[157 of 357] Compiling Agda.TypeChecking.Monad.Base ( src/full/Agda/TypeChecking/Monad/Base.hs, dist/build/Agda/TypeChecking/Monad/Base.o )
BUILDSTDERR: ghc: panic! (the 'impossible' happened)
BUILDSTDERR:   (GHC version 8.6.5 for arm-unknown-linux):
BUILDSTDERR: 	piResultTys1
BUILDSTDERR:   [ProblemId]
BUILDSTDERR:   Call stack:
BUILDSTDERR:       CallStack (from HasCallStack):
BUILDSTDERR:         callStackDoc, called at compiler/utils/Outputable.hs:1160:37 in ghc:Outputable
BUILDSTDERR:         pprPanic, called at compiler/types/Type.hs:1022:5 in ghc:Type
BUILDSTDERR: Please report this as a GHC bug:

Reported at

Comment 15 Jens Petersen 2020-07-20 05:22:31 UTC
I managed to get it to build with -O0.

Comment 16 Jens Petersen 2021-02-01 08:13:28 UTC
Scratch build:

Comment 17 Fedora Update System 2021-02-01 15:24:36 UTC
FEDORA-2021-19ca34434c has been submitted as an update to Fedora 32.

Comment 18 Fedora Update System 2021-02-02 02:05:21 UTC
FEDORA-2021-19ca34434c has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-19ca34434c`
You can provide feedback for this update here:

See also for more information on how to test updates.

Comment 19 Fedora Update System 2021-02-10 01:29:31 UTC
FEDORA-2021-19ca34434c has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.