
#9129: link error: unknown symbol `diagramszmlibzm1zi1zi0zi1_DiagramsziDirection_Direction_closure' ----------------------------------+------------------------------------- Reporter: dmbergey | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: x86_64 (amd64) | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+------------------------------------- When trying to build libraries linking against https://github.com/diagrams /diagrams-lib/tree/direction I get an error, in both GHC 7.6.3 and GHC 7.8.2. In 7.6.3: `Loading package diagrams-lib-1.1.0.1 ... linking ... ghc: /home/vagrant/.cabal/lib/diagrams-lib-1.1.0.1/ghc-7.6.3/HSdiagrams- lib-1.1.0.1.o: unknown symbol \`diagramszmlibzm1zi1zi0zi1_DiagramsziDirection_Direction_closure'` In 7.8.2: `Loading package diagrams-lib-1.1.0.1 ... <command line>: can't load .so/.DLL for: /home/bergey/code/diagrams/.cabal-sandbox/lib/x86_64-linux- ghc-7.8.2/diagrams-lib-1.1.0.1/libHSdiagrams-lib-1.1.0.1-ghc7.8.2.so (/home/bergey/code/diagrams/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.2 /diagrams-lib-1.1.0.1/libHSdiagrams-lib-1.1.0.1-ghc7.8.2.so: undefined symbol: diagramszmlibzm1zi1zi0zi1_DiagramsziDirection_Direction_con_info)` The problem seems specific to this branch. I can install the package, but cannot link against it. The following steps reproduce the error in a clean Linux (Ubuntu) VM with HP 2013.2 installed: set -e sudo aptitude install git -y git clone https://github.com/diagrams/diagrams-core.git core git clone https://github.com/diagrams/diagrams-lib.git lib git clone https://github.com/diagrams/diagrams-svg.git svg cabal update cd lib/ git checkout direction cd .. cabal install core/ lib/ svg/ I'm happy to do more debugging if someone can advise me what to try. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9129 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler