Bug 57857 - ghci is missing smth and doesn't start
Summary: ghci is missing smth and doesn't start
Status: CLOSED NOTABUG
Alias: None
Product: Branch p11
Classification: Unclassified
Component: ghc-ghci (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P5 normal
Assignee: qa-team@altlinux.org
QA Contact: qa-p11@altlinux.org
URL:
Keywords:
Depends on: 53978
Blocks:
  Show dependency tree
 
Reported: 2026-02-13 15:26 MSK by Ivan Zakharyaschev
Modified: 2026-02-13 23:30 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2026-02-13 15:26:40 MSK
apt> ls -i *ghc*
apt> install ghc-ghci
Unrequested changes are needed to execute this operation.
The following NEW packages will be installed:
  ghc-ghci      ghc9.6-base    ghc9.6-bytestring  ghc9.6-deepseq    ghc9.6-exceptions  ghc9.6-ghc-bignum  ghc9.6-ghc-boot-th  ghc9.6-ghc-prim  ghc9.6-mtl     ghc9.6-stm               ghc9.6-time          ghc9.6-unix
  ghc9.6-array  ghc9.6-binary  ghc9.6-containers  ghc9.6-directory  ghc9.6-filepath    ghc9.6-ghc-boot    ghc9.6-ghc-heap     ghc9.6-ghci      ghc9.6-pretty  ghc9.6-template-haskell  ghc9.6-transformers
0 upgraded, 23 newly installed, 0 removed and 0 kept.
Will need more 6212kB of archives.
After unpacking will need more 43,5MB of disk space.
Do you want to continue? [Y/n] 
apt> commit 
The following NEW packages will be installed:
  ghc-ghci      ghc9.6-base    ghc9.6-bytestring  ghc9.6-deepseq    ghc9.6-exceptions  ghc9.6-ghc-bignum  ghc9.6-ghc-boot-th  ghc9.6-ghc-prim  ghc9.6-mtl     ghc9.6-stm               ghc9.6-time          ghc9.6-unix
  ghc9.6-array  ghc9.6-binary  ghc9.6-containers  ghc9.6-directory  ghc9.6-filepath    ghc9.6-ghc-boot    ghc9.6-ghc-heap     ghc9.6-ghci      ghc9.6-pretty  ghc9.6-template-haskell  ghc9.6-transformers
0 upgraded, 23 newly installed, 0 removed and 138 not upgraded.
Need to get 0B/6212kB of archives.
After unpacking 43,5MB of additional disk space will be used.
Do you want to continue? [Y/n] 
=== apt-printchanges ===
==ghc9.6-ghc-prim ghc9.6-ghc-bignum ghc9.6-base ghc9.6-ghc-boot-th ghc9.6-array ghc9.6-deepseq ghc9.6-pretty ghc9.6-template-haskell ghc9.6-bytestring ghc9.6-containers ghc9.6-binary ghc9.6-transformers ghc9.6-mtl ghc9.6-stm ghc9.6-exceptions ghc9.6-filepath ghc9.6-time ghc9.6-unix ghc9.6-directory ghc9.6-ghc-boot ghc9.6-ghc-heap ghc9.6-ghci==
* Wed Mar 19 2025 Leonid Znamenok <respublica@altlinux.org> 9.6.6-alt3
- Added LD_PRELOAD environment for the RTS subsystem
==ghc-ghci==
* Thu Apr 24 2025 Leonid Znamenok <respublica@altlinux.org> 9.6.6-alt2
- Rebuild with dependency on ghc-devel (Closes: #53978)
Committing changes...


Trying ghci:

$ ghci
bash: ghci: command not found

apt> install ghc9.6-common 
Unrequested changes are needed to execute this operation.
The following NEW packages will be installed:
  ghc9.6  ghc9.6-Cabal  ghc9.6-Cabal-syntax  ghc9.6-common  ghc9.6-ghc  ghc9.6-haskeline  ghc9.6-hpc  ghc9.6-libiserv  ghc9.6-parsec  ghc9.6-process  ghc9.6-terminfo  ghc9.6-text  ghc9.6-xhtml  rpm-macros-ghc9.6-common
0 upgraded, 14 newly installed, 0 removed and 0 kept.
Will need more 38,6MB of archives.
After unpacking will need more 278MB of disk space.
Do you want to continue? [Y/n] 
apt> commit 
The following NEW packages will be installed:
  ghc9.6  ghc9.6-Cabal  ghc9.6-Cabal-syntax  ghc9.6-common  ghc9.6-ghc  ghc9.6-haskeline  ghc9.6-hpc  ghc9.6-libiserv  ghc9.6-parsec  ghc9.6-process  ghc9.6-terminfo  ghc9.6-text  ghc9.6-xhtml  rpm-macros-ghc9.6-common
0 upgraded, 14 newly installed, 0 removed and 138 not upgraded.
Need to get 0B/38,6MB of archives.
After unpacking 278MB of additional disk space will be used.
Do you want to continue? [Y/n] 
=== apt-printchanges ===
==ghc9.6-text ghc9.6-parsec ghc9.6-Cabal-syntax ghc9.6-process ghc9.6-Cabal ghc9.6-terminfo ghc9.6-haskeline ghc9.6-libiserv ghc9.6-xhtml ghc9.6-hpc ghc9.6-ghc ghc9.6 rpm-macros-ghc9.6-common ghc9.6-common==
* Wed Mar 19 2025 Leonid Znamenok <respublica@altlinux.org> 9.6.6-alt3
- Added LD_PRELOAD environment for the RTS subsystem
Committing changes...

Trying ghci again:

$ ghci; echo $?
GHCi, version 9.6.6: https://www.haskell.org/ghc/  :? for help

<interactive>:1:1: error: [GHC-52243]
    Failed to load interface for ‘GHC.Types’
    no unit id matching ‘ghc-prim’ was found
1

A related fix that didn't help:

==ghc-ghci==
* Thu Apr 24 2025 Leonid Znamenok <respublica@altlinux.org> 9.6.6-alt2
- Rebuild with dependency on ghc-devel (Closes: #53978)

https://bugzilla.altlinux.org/53978
Comment 1 Ivan Zakharyaschev 2026-02-13 15:33:42 MSK
(Ответ для Ivan Zakharyaschev на комментарий #0)

> A related fix that didn't help:
> 
> ==ghc-ghci==
> * Thu Apr 24 2025 Leonid Znamenok <respublica@altlinux.org> 9.6.6-alt2
> - Rebuild with dependency on ghc-devel (Closes: #53978)
> 
> https://bugzilla.altlinux.org/53978

But there is still no dependency on ghc-devel:

apt> depends ghc-ghci
ghc-ghci-9.6.6-alt2:p11+387571.100.1.1@1750762280
  Depends: ghc9.6-ghci
apt> depends ghc9.6-ghci
ghc9.6-ghci-9.6.6-alt3:p11+383990.200.3.1@1750711102
  Depends: ghc9.6-ghc-boot = 9.6.6-alt3:p11+383990.200.3.1
  Depends: ghc9.6-ghc-heap = 9.6.6-alt3:p11+383990.200.3.1
apt> 


BTW, installing ghc-devel would mean consuming a lot of additional space on the filesystem. Is it necessary for ghci to work?

apt> install ghc-devel
Unrequested changes are needed to execute this operation.
The following NEW packages will be installed:
  ghc                        ghc9.6-base-devel        ghc9.6-devel             ghc9.6-ghc-boot-devel     ghc9.6-ghc-heap-devel   ghc9.6-integer-gmp        ghc9.6-pretty-devel            ghc9.6-text-devel          ghc9.6-unix-devel
  ghc-devel                  ghc9.6-binary-devel      ghc9.6-directory-devel   ghc9.6-ghc-boot-th-devel  ghc9.6-ghc-prim-devel   ghc9.6-integer-gmp-devel  ghc9.6-process-devel           ghc9.6-time-devel          ghc9.6-xhtml-devel
  ghc9.6-Cabal-devel         ghc9.6-bytestring-devel  ghc9.6-exceptions-devel  ghc9.6-ghc-compact        ghc9.6-ghci-devel       ghc9.6-libiserv-devel     ghc9.6-stm-devel               ghc9.6-transformers-devel
  ghc9.6-Cabal-syntax-devel  ghc9.6-containers-devel  ghc9.6-filepath-devel    ghc9.6-ghc-compact-devel  ghc9.6-haskeline-devel  ghc9.6-mtl-devel          ghc9.6-template-haskell-devel  ghc9.6-ucd2haskell
  ghc9.6-array-devel         ghc9.6-deepseq-devel     ghc9.6-ghc-bignum-devel  ghc9.6-ghc-devel          ghc9.6-hpc-devel        ghc9.6-parsec-devel       ghc9.6-terminfo-devel          ghc9.6-ucd2haskell-devel
0 upgraded, 42 newly installed, 0 removed and 0 kept.
Will need more 271MB of archives.
After unpacking will need more 3349MB of disk space.
Do you want to continue? [Y/n] n