Skip to content

GHCi runtime linker: duplicate definition for symbol _getProcessExitCode #34

@pjonsson

Description

@pjonsson

Sorry for all the bug reports but here's what I get on a clean checkout of latest BulidWrapper:

$ buildwrapper synchronize --cabalfile=buildwrapper.cabal
<Lots of things synchronized>
$ buildwrapper configure --cabalfile=buildwrapper.cabal
<Some warnings
...
package ghc-7.6.3 requires Cabal-1.16.0
package bin-package-db-0.0.0.0 requires Cabal-1.16.0
package buildwrapper-0.8.2 requires Cabal-1.20.0.0
...
but result is [true, ..]>
$ buildwrapper build --cabalfile=buildwrapper.cabal
...
ghc: could not execute: htfpp
<fails>

Ok, so build everything did not work for some reason. Let's try a single file:

$ buildwrapper build1 --file=src/Language/Haskell/BuildWrapper/Cabal.hs --cabalfile=buildwrapper.cabal
GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   _getProcessExitCode
whilst processing object file
   /usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/process-1.1.0.2/HSprocess-1.1.0.2.o
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect package.conf entry, causing some object to be
     loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.

Same thing happens with --file=.../Src.hs, --file=.../Packages.hs and so on.

After this happened I removed my installed version of buildwrapper and dynamic-cabal and installed the latest dynamic-cabal from hackage. After that I ran cabal clean in the tree of buildwrapper and installed a new version. After that I ran cabal clean and rm -rf .dist-buildwrapper before reproducing the problem again.

Am I using buildwrapper in ways that it wasn't designed to be used, or is it my system that is acting up? I have a standard installation of GHC 7.6.3 through Homebrew and after that I've run cabal install for getting my Haskell dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions