Ticket #1282 (closed defect: invalid)

Opened 20 months ago

Last modified 19 months ago

pango doesn't build on ghc 7.6

Reported by: guest Owned by: axel
Priority: normal Milestone: 0.13.0
Component: Pango bindings Version: 0.12.4
Keywords: ghc,7.6 Cc: gtk2hs-bug-tracker@…

Description (last modified by dmwit) (diff)

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.1
$
$ cabal install pango
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     ( /tmp/pango-0.12.4-9759/pango-0.12.4/SetupWrapper.hs, /tmp/pango-0.12.4-9759/pango-0.12.4/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /tmp/pango-0.12.4-9759/pango-0.12.4/Setup.hs, /tmp/pango-0.12.4-9759/pango-0.12.4/dist/setup/Main.o )
Linking /tmp/pango-0.12.4-9759/pango-0.12.4/dist/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( SetupMain.hs, dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
Configuring pango-0.12.4...
Building pango-0.12.4...
Preprocessing library pango-0.12.4...
[ 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:254:1:
    Unacceptable result type in foreign declaration: CUInt
    When checking declaration:
      foreign import ccall unsafe "static pango_context_get_type" pango_context_get_type
        :: CUInt

Graphics/Rendering/Pango/Types.chs:257:1:
    Unacceptable result type in foreign declaration: CUInt
    When checking declaration:
      foreign import ccall unsafe "static pango_layout_get_type" pango_layout_get_type
        :: CUInt

Graphics/Rendering/Pango/Types.chs:260:1:
    Unacceptable result type in foreign declaration: CUInt
    When checking declaration:
      foreign import ccall unsafe "static pango_font_get_type" pango_font_get_type
        :: CUInt

Graphics/Rendering/Pango/Types.chs:263:1:
    Unacceptable result type in foreign declaration: CUInt
    When checking declaration:
      foreign import ccall unsafe "static pango_font_family_get_type" pango_font_family_get_type
        :: CUInt

Graphics/Rendering/Pango/Types.chs:266:1:
    Unacceptable result type in foreign declaration: CUInt
    When checking declaration:
      foreign import ccall unsafe "static pango_font_face_get_type" pango_font_face_get_type
        :: CUInt

Graphics/Rendering/Pango/Types.chs:269:1:
    Unacceptable result type in foreign declaration: CUInt
    When checking declaration:
      foreign import ccall unsafe "static pango_fontset_get_type" pango_fontset_get_type
        :: CUInt
cabal: Error: some packages failed to install:
pango-0.12.4 failed during the building phase. The exception was:
ExitFailure 1

Change History

Changed 20 months ago by guest

Changed 20 months ago by dmwit

  • description modified (diff)

Can you give a few more details? "cabal install pango" works fine on GHC 7.6.1 here. What architecture/OS are you on? Does pango as it exists in the repository build for you?

Changed 19 months ago by guest

cabal install pango doesn't build for me either, but I'm on ghc 7.6.2.

amy@wombat$ uname -a
Linux wombat 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux
amy@wombat$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.2

I get the same error messages as the OP. And as already noted, it failed to build on the Hackage server.

Then I tried compiling the repository version:

darcs get http://code.haskell.org/gtk2hs/
cd gtk2hs
cd pango
cabal install

Exact same error!

Changed 19 months ago by guest

  • cc gtk2hs-bug-tracker@… added

Changed 19 months ago by dmwit

Aha! I think I finally managed to reproduce this error by downgrading gtk2hs-buildtools. Can you try installing the latest version of the build tools and try again?

Changed 19 months ago by guest

Worked for me! Thank you.

Changed 19 months ago by dmwit

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.