<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>57857</bug_id>
          
          <creation_ts>2026-02-13 15:26:40 +0300</creation_ts>
          <short_desc>ghci is missing smth and doesn&apos;t start</short_desc>
          <delta_ts>2026-02-13 23:30:40 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p11</product>
          <component>ghc-ghci</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>53978</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="qa-team@altlinux.org">qa-team</assigned_to>
          
          
          <qa_contact name="qa-p11@altlinux.org">qa-p11</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>281961</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2026-02-13 15:26:40 +0300</bug_when>
    <thetext>apt&gt; ls -i *ghc*
apt&gt; 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&gt; 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 &lt;respublica@altlinux.org&gt; 9.6.6-alt3
- Added LD_PRELOAD environment for the RTS subsystem
==ghc-ghci==
* Thu Apr 24 2025 Leonid Znamenok &lt;respublica@altlinux.org&gt; 9.6.6-alt2
- Rebuild with dependency on ghc-devel (Closes: #53978)
Committing changes...


Trying ghci:

$ ghci
bash: ghci: command not found

apt&gt; 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&gt; 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 &lt;respublica@altlinux.org&gt; 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

&lt;interactive&gt;: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&apos;t help:

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

https://bugzilla.altlinux.org/53978</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281962</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2026-02-13 15:33:42 +0300</bug_when>
    <thetext>(Ответ для Ivan Zakharyaschev на комментарий #0)

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

But there is still no dependency on ghc-devel:

apt&gt; depends ghc-ghci
ghc-ghci-9.6.6-alt2:p11+387571.100.1.1@1750762280
  Depends: ghc9.6-ghci
apt&gt; 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&gt; 


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

apt&gt; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>