[GHC] #8194: make install (at git ef01794) still fails
GHC
ghc-devs at haskell.org
Fri Sep 13 01:57:57 CEST 2013
#8194: make install (at git ef01794) still fails
------------------------------------------+---------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: Build System | Version: 7.7
Resolution: | Keywords:
Operating System: Linux | Architecture: x86
Type of failure: Installing GHC failed | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
------------------------------------------+---------------------------
Comment (by bos):
The problem here is simple: {{{inplace/bin/ghc-cabal}}} does not know
about shared libraries.
Here is a simple, and ''incorrect'', patch that makes it unconditionally
install shared libraries. With this hack in place, {{{make install}}}
succeeds, and the installed code actually works.
{{{
--- a/utils/ghc-cabal/Main.hs
+++ b/utils/ghc-cabal/Main.hs
@@ -172,7 +172,8 @@ doCopy directory distDir
progs' <- configureProgram verbosity stripProgram' progs
let lbi' = lbi {
withPrograms = progs',
- installDirTemplates = idts
+ installDirTemplates = idts,
+ withSharedLib = True
}
f pd lbi' us flags
}}}
The correct fix is probably to pass another parameter to {{{ghc-cabal}}}
that tells it if we're building shared libraries, so that it can set
{{{withSharedLib}}} appropriately.
Weird followon observation: we copy ''two'' versions of many utilities
into the install tree. There are statically linked versions in the main
{{{bin}}} directory, and dynamically linked versions under {{{lib/ghc-
VERSION/bin}}}. (It is the dynamically linked copy of {{{lib/ghc-
VERSION/bin/ghc-pkg}}} that is crashing due to lack of shared libraries
during the install.)
I don't understand why there are two versions?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8194#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list