CULLong-type constructor not visible when installing pango and GIO with cabal on Windows

201 views Asked by At

I'm trying to install Threadscope on Windows 8 in order to follow along the Parallel and Concurrent Programming in Haskell –book.

I successfully installed the GTK+ –bundle and subsequently tried installing threadscope through cabal. The installation terminated with the following information:

cabal: Error: some packages failed to install:
gio-0.12.5.0 failed during the building phase. The exception was:
ExitFailure 1
gtk-0.12.5.0 depends on pango-0.12.5.0 which failed to install.
pango-0.12.5.0 failed during the building phase. The exception was:
ExitFailure 1
threadscope-0.2.2 depends on pango-0.12.5.0 which failed to install.

So something was up with GIO and pango.

Looking further back what happened, the console was filled with messages like this:

Not in scope: type constructor or class `CULLong'

These messages followed when both GIO and pango were being compiled, as in:

Linking dist/setup-wrapper\setup.exe ...
Configuring gio-0.12.5.0...
Building gio-0.12.5.0...
Preprocessing library gio-0.12.5.0...
[ 1 of 24] Compiling System.GIO.Signals ( dist\build\System\GIO\Signals.hs, dist\build\System\GIO\Signals.o )
[ 2 of 24] Compiling System.GIO.Types ( dist\build\System\GIO\Types.hs, dist\build\System\GIO\Types.o )

System\GIO\Types.chs:1027:31:
    Not in scope: type constructor or class `CULLong'
    Perhaps you meant `CULong' (imported from Foreign.C.Types)

...

and,

Linking dist/setup-wrapper\setup.exe ...
Configuring pango-0.12.5.0...
Building pango-0.12.5.0...
Preprocessing library pango-0.12.5.0...
[ 1 of 14] Compiling Graphics.Rendering.Pango.Types ( dist\build\Graphics\Rendering\Pango\Types.hs, dist\build\Graphics\Rendering\Pango\Types.o )

Graphics\Rendering\Pango\Types.chs:256:29:
    Not in scope: type constructor or class `CULLong'
    Perhaps you meant `CULong' (imported from Foreign.C.Types)

...

I've tried searching hard but I can't find anything related to this. Help would be appreciated!

1

There are 1 answers

1
Keldor On

Both cabal configure and cabal install seem to revert Types.chs to the original version (missing CULLONG(..)).

It looks like you want to

cabal build
cabal register --global

Which gets you to CULLong missing from Pango. At least it's progress :-P

Adding the CULLong into Pango, we move on to a new and even more exciting error:

GraphicsRenderingPongoStructs.hsc:87:21:
    Not in scope: type constructor or class 'Word9150716308491337760'

Followed by many more similar errors. Any ideas?