Opened 3 years ago

Closed 3 years ago

#9129 closed bug (invalid)

link error: unknown symbol `diagramszmlibzm1zi1zi0zi1_DiagramsziDirection_Direction_closure'

Reported by: dmbergey Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: x86_64 (amd64)
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


When trying to build libraries linking against I get an error, in both GHC 7.6.3 and GHC 7.8.2. In 7.6.3:

Loading package diagrams-lib- ... linking ... ghc: /home/vagrant/.cabal/lib/diagrams-lib- unknown symbol \diagramszmlibzm1zi1zi0zi1_DiagramsziDirection_Direction_closure'`

In 7.8.2:

`Loading package diagrams-lib- ... <command line>: can't load .so/.DLL for: /home/bergey/code/diagrams/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.2/diagrams-lib- (/home/bergey/code/diagrams/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.2/diagrams-lib- 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 core git clone lib git clone 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.

Change History (1)

comment:1 Changed 3 years ago by rwbarton

Resolution: invalid
Status: newclosed

You need to list Diagrams.Direction in diagrams-lib.cabal somewhere, or Cabal won't link it into the library. Admittedly the diagnostic messages are not good, but it's unclear to me who is at fault here (GHC or Cabal). Please reopen if you think it is that GHC should be producing a more informative error.

Note: See TracTickets for help on using tickets.