Opened 8 years ago

Closed 8 years ago

Last modified 44 years ago

#486 closed bug (Wont Fix)

ghc-pkg to build ghci libraries on install

Reported by: jgoerzen Owned by: nobody
Priority: normal Milestone:
Component: Build System Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History (2)

comment:1 Changed 8 years ago by jgoerzen

  • Summary changed from Cabal tries to build ghci libraries on install to ghc-pkg to build ghci libraries on install
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.

comment:2 Changed 8 years ago by simonmar

  • Status changed from assigned to closed
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.

Note: See TracTickets for help on using tickets.