[FTBFS] gtk2hs fails to build on Gutsy (amd64)

Bug #129301 reported by Cesare Tirabassi
4
Affects Status Importance Assigned to Milestone
gtk2hs (Ubuntu)
Fix Committed
Undecided
Cesare Tirabassi

Bug Description

gtk2hs (0.9.11-2) synced from Debian unstable fails to build on Gutsy (amd64):

./tools/c2hs/c2hsLocal +RTS -RTS -C-I/usr/include/glib-2.0 -C-I/usr/lib/glib-2.0/include --cppopts='-include "gtk2hs-config.h"' --precomp=glib/glib.precomp glib-object.h
In file included from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:30,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gtype.h:26,
                 from /usr/include/glib-2.0/gobject/gboxed.h:26,
                 from /usr/include/glib-2.0/glib-object.h:25:
/usr/include/glib-2.0/glib/gutils.h:426:1: warning: "GLIB_CHECK_VERSION" redefined
In file included from <command line>:1:
./gtk2hs-config.h:140:1: warning: this is the location of the previous definition
c2hsLocal: Error in C header file.

/usr/include/glib-2.0/glib/gmessages.h:106: (column 1) [FATAL]
  >>> Syntax error!
  The symbol `__attribute__' does not fit here.

make[4]: *** [glib/glib.precomp] Error 1
make[4]: Leaving directory `/tmp/buildd/gtk2hs-0.9.11'
make[3]: *** [glib/System/Glib/Types.hs] Error 2
make[3]: Leaving directory `/tmp/buildd/gtk2hs-0.9.11'

<no location info>: can't find file: glib/System/Glib/Types.hs
make[2]: *** Deleting file `glib/libHSglib_a.deps'
rm -rf glib/System/Glib.o glib/System/Glib_split/
mkdir -p glib/System/Glib_split
/usr/bin/ghc +RTS -RTS -c glib/System/Glib.hs -o glib/System/Glib.o -split-objs -O -fffi -iglib -package-conf package.conf.inplace -hide-all-packages -ignore-package glib -package base -package haskell98 -package-name glib-0.9.11 '-#include<glib-object.h>' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

glib/System/Glib.hs:12:0:
    Failed to load interface for `System.Glib.UTFString':
      Use -v to see a list of the files searched for.
make[2]: *** [glib/System/Glib.o] Error 1

Tags: ftbfs
description: updated
description: updated
description: updated
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

This has been hopefully fixed upstream by release 0.9.12:

>>c2hs no longer chokes on some system headers (eg glibc-2.4)

Confirmation from upstream has been required.

It is most probably advisable to wait for a sync of the new issue from Debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434949

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Release 0.9.12 compiles without any hitch for Gutsy from tarball as well as when debianised.
The changes made since 0.9.11.5 were indeed effective in this respect.

Changed in gtk2hs:
assignee: nobody → norsetto
status: New → Fix Committed
Revision history for this message
Pierre R (pradermecker) wrote :

Can we expect the upgrade (0.9.12) in the final gutsy ?

Revision history for this message
Michael Bienia (geser) wrote :

Gutsy has already the source for gtk2hs 0.9.12 but it fails to build on archs other than amd64.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.