
#8614: Duplicate symbol error when loading text twice -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Runtime System | Version: 7.6.3 (Linker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: #7030 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by nh2): * status: infoneeded => closed * resolution: => fixed Comment: OK, so first on how to get the deps: * freenect: `apt-get install libfreenect-dev` on Ubuntu 14.04 * OpenNI2: `git clone https://github.com/occipital/OpenNI2.git`, `cd OpenNI2`, `git checkout origin/develop` Then I compile with `$HOME/.local/bin/cabal install --extra-include- dirs=$HOME/src/OpenNI2/Include/ --extra-lib- dirs=$HOME/src/OpenNI2/Bin/x64-Release/` However, I have tried this now with GHC 7.10.2, and cabal-install 1.22.6.0, and can no longer reproduce the issue. My output: {{{ ➤ ghci GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help Prelude> import Honi Prelude Honi> import Honi.Types Prelude Honi Honi.Types> initialize 2 StatusOK }}} Trying the same with GHC 7.8: {{{ ~/.stack/programs/x86_64-linux/ghc-7.8.4/bin/ghc --interactive GHCi, version 7.8.4: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> import Honi Prelude Honi> import Honi.Types Prelude Honi Honi.Types> initialize 2 Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package containers-0.5.5.1 ... linking ... done. Loading package binary-0.7.1.0 ... linking ... done. Loading package text-1.2.1.3 ... linking ... done. Loading package honi-0.1.0.0 ... linking ... done. StatusOK }}} So I believe this was probably fixed with the linker improvements in GHC 7.8 (I reported the bug against 7.6). Thanks for poking at this bug, I'm happy to find that it is fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8614#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler