Bug 2142238 - ghc-9.2.5 FTBFS on armv7hl
Summary: ghc-9.2.5 FTBFS on armv7hl
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc9.2
Version: 36
Hardware: armv7hl
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-12 04:08 UTC by Jens Petersen
Modified: 2023-04-17 08:17 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-04-17 08:17:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2022-11-12 04:08:22 UTC
Description of problem:
ghc 9.2.5 fails to build on armv7hl.

With default -j, ghc-pkg recache crashes.
Even with make -j1, it failed with a compilation error after 11 hours.

Here are some f36 scratch builds (via: koji-tool tasks -M -a armv7hl -s fail):
[they were all quick builds except the original last one]

(11h 2m) https://koji.fedoraproject.org/koji/taskinfo?taskID=94056026 (make -j1)

"inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc -fPIC -dynamic  -H32m -O -Wall     -hide-all-packages -package-env - -i -iutils/check-ppr/. -iutils/check-ppr/dist-install/build -Iutils/check-ppr/dist-install/build -iutils/check-ppr/dist-install/build/check-ppr/autogen -Iutils/check-ppr/dist-install/build/check-ppr/autogen     -optP-include -optPutils/check-ppr/dist-install/build/check-ppr/autogen/cabal_macros.h -package-id Cabal-3.6.3.0 -package-id base-4.16.4.0 -package-id bytestring-0.11.3.1 -package-id containers-0.6.5.1 -package-id directory-1.3.6.2 -package-id filepath-1.4.2.2 -package-id ghc-9.2.5 -Wall -XHaskell2010  -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -outputdir utils/check-ppr/dist-install/build   -c utils/check-ppr/./Main.hs -o utils/check-ppr/dist-install/build/Main.dyn_o 
make[1]: *** [utils/check-ppr/ghc.mk:18: utils/check-ppr/dist-install/build/Main.dyn_o] Segmentation fault (core dumped)

(3h 27m) https://koji.fedoraproject.org/koji/taskinfo?taskID=94046785 (make -j2)

"inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc -fPIC -dynamic  -H32m -O -Wall     -hide-all-packages -package-env - -i -iutils/check-exact/. -iutils/check-exact/dist-install/build -Iutils/check-exact/dist-install/build -iutils/check-exact/dist-install/build/check-exact/autogen -Iutils/check-exact/dist-install/build/check-exact/autogen     -optP-include -optPutils/check-exact/dist-install/build/check-exact/autogen/cabal_macros.h -package-id Cabal-3.6.3.0 -package-id base-4.16.4.0 -package-id bytestring-0.11.3.1 -package-id containers-0.6.5.1 -package-id directory-1.3.6.2 -package-id filepath-1.4.2.2 -package-id ghc-9.2.5 -package-id ghc-boot-9.2.5 -package-id mtl-2.2.2 -Wall -XHaskell2010  -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -outputdir utils/check-exact/dist-install/build   -c utils/check-exact/./Types.hs -o utils/check-exact/dist-install/build/Types.dyn_o 
make[1]: *** [utils/check-exact/ghc.mk:18: utils/check-exact/dist-install/build/Types.dyn_o] Segmentation fault (core dumped)

(4h 21m) https://koji.fedoraproject.org/koji/taskinfo?taskID=94034148 hadrian -j2

| Copy directory: _build/stage1/lib/arm-linux-ghc-9.2.5/rts-1.0.2/include => _build/bindist/ghc-9.2.5-arm-unknown-linux
# ghc-pkg (for binary-dist-dir)
Error when running Shake build system:
  at want, called at src/Main.hs:104:30 in main:Main
* Depends on: binary-dist-dir
  at cmd_, called at src/Rules/BinaryDist.hs:204:9 in main:Rules.BinaryDist
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/bindist/ghc-9.2.5-arm-unknown-linux/bin/ghc-pkg recache
Exit code: -11
Stderr:

(2h 46m) https://koji.fedoraproject.org/koji/taskinfo?taskID=94021599 (hadrian -j)

| Copy directory: _build/stage1/lib/arm-linux-ghc-9.2.5/rts-1.0.2/include => _build/bindist/ghc-9.2.5-arm-unknown-linux
# ghc-pkg (for binary-dist-dir)
Error when running Shake build system:
  at want, called at src/Main.hs:104:30 in main:Main
* Depends on: binary-dist-dir
  at cmd_, called at src/Rules/BinaryDist.hs:204:9 in main:Rules.BinaryDist
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/bindist/ghc-9.2.5-arm-unknown-linux/bin/ghc-pkg recache
Exit code: -11
Stderr:

(4h 44m) https://koji.fedoraproject.org/koji/taskinfo?taskID=94010539 (perf hadrian)

| Copy directory: _build/stage1/lib/arm-linux-ghc-9.2.5/rts-1.0.2/include => _build/bindist/ghc-9.2.5-arm-unknown-linux
# ghc-pkg (for binary-dist-dir)
Error when running Shake build system:
  at want, called at src/Main.hs:104:30 in main:Main
* Depends on: binary-dist-dir
  at cmd_, called at src/Rules/BinaryDist.hs:204:9 in main:Rules.BinaryDist
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/bindist/ghc-9.2.5-arm-unknown-linux/bin/ghc-pkg recache
Exit code: -11
Stderr:

Additional info:
ghc-9.2.4 built okay, so it is bit unexpected:
I need to compare the buildroots to see if anything significant changed.

Comment 2 Jens Petersen 2022-11-12 04:59:11 UTC
(In reply to Jens Petersen from comment #0)
> I need to compare the buildroots to see if anything significant changed.

The biggest obvious changes seems to be gcc 12.1.1 -> 12.2.1, and more obvious kernel is now 6.0!  Shrug

Comment 3 Jens Petersen 2022-11-12 11:25:22 UTC
Just for completeness, hadrian -j1 also fails

https://koji.fedoraproject.org/koji/taskinfo?taskID=94074987

| Copy directory: _build/stage1/lib/arm-linux-ghc-9.2.5/rts-1.0.2/include => _build/bindist/ghc-9.2.5-arm-unknown-linux
# ghc-pkg (for binary-dist-dir)
Error when running Shake build system:
  at want, called at src/Main.hs:104:30 in main:Main
* Depends on: binary-dist-dir
  at cmd_, called at src/Rules/BinaryDist.hs:204:9 in main:Rules.BinaryDist
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/bindist/ghc-9.2.5-arm-unknown-linux/bin/ghc-pkg recache
Exit code: -11
Stderr:

Comment 4 Jens Petersen 2022-11-12 14:51:49 UTC
Same ghc-pkg failure under hadrian too for F35.

https://koji.fedoraproject.org/koji/taskinfo?taskID=94087511

Comment 5 Fedora Update System 2022-11-13 02:12:35 UTC
FEDORA-2022-1a58ea21a4 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1a58ea21a4

Comment 6 Fedora Update System 2022-11-13 13:07:16 UTC
FEDORA-2022-f45c648112 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f45c648112

Comment 7 Fedora Update System 2022-11-14 02:19:09 UTC
FEDORA-2022-1a58ea21a4 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-1a58ea21a4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1a58ea21a4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-11-14 02:29:20 UTC
FEDORA-2022-f45c648112 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-f45c648112`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f45c648112

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-11-23 16:52:37 UTC
FEDORA-EPEL-2022-e8a8f0a151 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-e8a8f0a151

Comment 10 Jens Petersen 2023-01-05 07:48:36 UTC
A quick ghc9.4 build also fails:

https://koji.fedoraproject.org/koji/taskinfo?taskID=95772622

# ghc-pkg (for binary-dist-dir)
Development.Shake.cmd, system command failed
Command line: _build/bindist/ghc-9.4.4-arm-unknown-linux/bin/ghc-pkg recache
Exit code: -11

Comment 11 Jens Petersen 2023-04-17 08:17:36 UTC
Closing this as armv7hl is no longer supported as of F37


Note You need to log in before you can comment on or make changes to this bug.