Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#542 ghc-pkg to build ghci libraries on install

closed-wont-fix
nobody
5
2005-11-28
2005-11-23
John Goerzen
No

This is with GHC 6.4.1.

ghci is not supported on AIX.

I recently tried to isntall MissingH with Cabal. I got:

# ./setup install
Installing: /usr/local/lib/MissingH-0.12.0 &
/usr/local/bin MissingH-0.12.0...
Registering MissingH-0.12.0...
Reading package info from ".installed-pkg-config" ... done.
building GHCi library
/usr/local/lib/MissingH-0.12.0/HSMissingH-0.12.0.o...ld:
0706-027 The -x flag is ignored.
ld: 0706-012 The -- flag is not recognized.
ld: 0706-012 The -w flag is not recognized.
ld: 0706-012 The -h flag is not recognized.

ghc-pkg list does not see the package after this, either.

I'm not sure why Cabal seems to think it needs to build
a GHCi library, and it's even more concerning that
invalid flags are being given to ld.

Discussion

  • John Goerzen
    John Goerzen
    2005-11-23

    Logged In: YES
    user_id=491567

    After talking with Isaac Jones, he asked me to run install
    -v4. The last command it runs is:

    Registering MissingH-0.12.0...
    /usr/local/bin/ghc-pkg --auto-ghci-libs update
    .installed-pkg-config
    Reading package info from ".installed-pkg-config" ... done.
    building GHCi library
    /usr/local/lib/MissingH-0.12.0/HSMissingH-0.12.0.o...ld:
    0706-027 The -x flag is ignored.
    ld: 0706-012 The -- flag is not recognized.
    ld: 0706-012 The -w flag is not recognized.
    ld: 0706-012 The -h flag is not recognized.

    If I manually run:

    /usr/local/bin/ghc-pkg update .installed-pkg-config
    Reading package info from ".installed-pkg-config" ... done.
    warning: can't find GHCi lib HSMissingH-0.12.0.o
    Saving old package config file... done.
    Writing new package config file... done.

    it works fine.

    So looks like the bug is in ghc-pkg.

     
  • John Goerzen
    John Goerzen
    2005-11-23

    • summary: Cabal tries to build ghci libraries on install --> ghc-pkg to build ghci libraries on install
     
  • Simon Marlow
    Simon Marlow
    2005-11-28

    Logged In: YES
    user_id=48280

    Cabal 1.0 (in GHC 6.4.x) invokes ghc-pkg with the
    --auto-ghci-libs option. Cabal 1.1.x builds the GHCi libs
    itself, which is much better. This should be fixed in Cabal
    1.1.x, or if not, it is a bug in Cabal.

    I should really deprecate ghc-pkg's --auto-ghci-libs option,
    it was only a stopgap anyway.

     
  • Simon Marlow
    Simon Marlow
    2005-11-28

    • status: open --> closed-wont-fix