Ticket #1259 (closed defect: fixed)

Opened 3 years ago

Last modified 21 months ago

gtk2hs-buildtools update breaks glade 0.12.1

Reported by: guest Owned by: duncan
Priority: normal Milestone:
Component: build system Version:
Keywords: Cc: simons@…, gtk2hs-bug-tracker@…

Description

The build fails, saying "gtk2hsC2hs: UName: root name supply used after saving". How can I fix that error?

The complete build log is attached below.

source root is glade-0.12.1 patching sources configuring [1 of 2] Compiling SetupWrapper? ( SetupWrapper?.hs, SetupWrapper?.o ) [2 of 2] Compiling Main ( Setup.hs, Setup.o ) Linking 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 glade-0.12.1... Dependency base ==4.*: using base-4.3.1.0 Dependency glib ==0.12.*: using glib-0.12.3 Dependency gtk ==0.12.*: using gtk-0.12.3 Dependency libglade-2.0 >=2.0.0: using version 2.6.4 Using Cabal-1.10.2.0 compiled by ghc-7.0 Using compiler: ghc-7.0.4 Using install prefix: /nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1 Binaries installed in: /nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/bin Libraries installed in: /nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/lib/glade-0.12.1/ghc-7.0.4 Private binaries installed in: /nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/libexec Data files installed in: /nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/share/glade-0.12.1 Documentation installed in: /nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/share/doc/glade-0.12.1 No alex found Using ar found on system at: /nix/store/rnzwhcgj311rhp999cl67cpmkxxjcs92-binutils-2.21.1a/bin/ar No c2hs found No cpphs found No ffihugs found Using gcc version 4.6.3 found on system at: /nix/store/3ggngsc09z4jsvl0vs8qp64i0pxz0drp-gcc-wrapper-4.6.3/bin/gcc Using ghc version 7.0.4 found on system at: /nix/store/yhzzsksl033pvma44rd98miz7d5k2kfc-ghc-7.0.4-wrapper/bin/ghc Using ghc-pkg version 7.0.4 found on system at: /nix/store/yhzzsksl033pvma44rd98miz7d5k2kfc-ghc-7.0.4-wrapper/bin/ghc-pkg No greencard found Using gtk2hsC2hs version 0.13.5 found on system at: /nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsC2hs Using gtk2hsHookGenerator found on system at: /nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsHookGenerator Using gtk2hsTypeGen found on system at: /nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsTypeGen Using haddock version 2.9.2 found on system at: /nix/store/6gg3scl04xqq0rc8fdi69wn45as8bhqn-ghc-7.0.4/bin/haddock No happy found No hmake found Using hsc2hs version 0.67 found on system at: /nix/store/yhzzsksl033pvma44rd98miz7d5k2kfc-ghc-7.0.4-wrapper/bin/hsc2hs No hscolour found No hugs found No jhc found Using ld found on system at: /nix/store/3ggngsc09z4jsvl0vs8qp64i0pxz0drp-gcc-wrapper-4.6.3/bin/ld No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.23 found on system at: /nix/store/hjbrbbdxd1wqssg3mfy9kvxvi5s99fkm-pkg-config-0.23/bin/pkg-config Using ranlib found on system at: /nix/store/rnzwhcgj311rhp999cl67cpmkxxjcs92-binutils-2.21.1a/bin/ranlib Using strip found on system at: /nix/store/rnzwhcgj311rhp999cl67cpmkxxjcs92-binutils-2.21.1a/bin/strip Using tar found on system at: /nix/store/ncc2id9jplas9i7r0d9sxinw6ff04x2c-gnutar-1.26/bin/tar No uhc found /nix/store/hjbrbbdxd1wqssg3mfy9kvxvi5s99fkm-pkg-config-0.23/bin/pkg-config --modversion libglade-2.0 Ensuring that class hierarchy in Graphics/UI/Gtk/Glade/Types.chs is up-to-date. /nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsTypeGen --tag=libglade --hierarchy=hierarchy.list --destructor=objectUnrefFromMainloop --forward=*Graphics.UI.GtkInternals? --modname=Graphics.UI.Gtk.Glade.Types --tag=libglade --tag=libglade-2.0 --tag=libglade-2.2 --tag=libglade-2.4 --tag=libglade-2.6 building Preprocessing library glade-0.12.1... gtk2hsC2hs: UName: root name supply used after saving builder for `/nix/store/3xqiqknxm1255vn0mqy5a4bmsv0kzacc-haskell-glade-ghc7.0.4-0.12.1.drv' failed with exit code 1

Change History

Changed 3 years ago by guest

source root is glade-0.12.1
patching sources
configuring
[1 of 2] Compiling SetupWrapper     ( SetupWrapper.hs, SetupWrapper.o )
[2 of 2] Compiling Main             ( Setup.hs, Setup.o )
Linking 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 glade-0.12.1...
Dependency base ==4.*: using base-4.3.1.0
Dependency glib ==0.12.*: using glib-0.12.3
Dependency gtk ==0.12.*: using gtk-0.12.3
Dependency libglade-2.0 >=2.0.0: using version 2.6.4
Using Cabal-1.10.2.0 compiled by ghc-7.0
Using compiler: ghc-7.0.4
Using install prefix:
/nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1
Binaries installed in:
/nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/bin
Libraries installed in:
/nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/lib/glade-0.12.1/ghc-7.0.4
Private binaries installed in:
/nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/libexec
Data files installed in:
/nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/share/glade-0.12.1
Documentation installed in:
/nix/store/wazrxscdby33pcfsiiax711vc63in6nj-haskell-glade-ghc7.0.4-0.12.1/share/doc/glade-0.12.1
No alex found
Using ar found on system at:
/nix/store/rnzwhcgj311rhp999cl67cpmkxxjcs92-binutils-2.21.1a/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.6.3 found on system at:
/nix/store/3ggngsc09z4jsvl0vs8qp64i0pxz0drp-gcc-wrapper-4.6.3/bin/gcc
Using ghc version 7.0.4 found on system at:
/nix/store/yhzzsksl033pvma44rd98miz7d5k2kfc-ghc-7.0.4-wrapper/bin/ghc
Using ghc-pkg version 7.0.4 found on system at:
/nix/store/yhzzsksl033pvma44rd98miz7d5k2kfc-ghc-7.0.4-wrapper/bin/ghc-pkg
No greencard found
Using gtk2hsC2hs version 0.13.5 found on system at:
/nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsC2hs
Using gtk2hsHookGenerator found on system at:
/nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsHookGenerator
Using gtk2hsTypeGen found on system at:
/nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsTypeGen
Using haddock version 2.9.2 found on system at:
/nix/store/6gg3scl04xqq0rc8fdi69wn45as8bhqn-ghc-7.0.4/bin/haddock
No happy found
No hmake found
Using hsc2hs version 0.67 found on system at:
/nix/store/yhzzsksl033pvma44rd98miz7d5k2kfc-ghc-7.0.4-wrapper/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at:
/nix/store/3ggngsc09z4jsvl0vs8qp64i0pxz0drp-gcc-wrapper-4.6.3/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.23 found on system at:
/nix/store/hjbrbbdxd1wqssg3mfy9kvxvi5s99fkm-pkg-config-0.23/bin/pkg-config
Using ranlib found on system at:
/nix/store/rnzwhcgj311rhp999cl67cpmkxxjcs92-binutils-2.21.1a/bin/ranlib
Using strip found on system at:
/nix/store/rnzwhcgj311rhp999cl67cpmkxxjcs92-binutils-2.21.1a/bin/strip
Using tar found on system at:
/nix/store/ncc2id9jplas9i7r0d9sxinw6ff04x2c-gnutar-1.26/bin/tar
No uhc found
/nix/store/hjbrbbdxd1wqssg3mfy9kvxvi5s99fkm-pkg-config-0.23/bin/pkg-config --modversion libglade-2.0
Ensuring that class hierarchy in Graphics/UI/Gtk/Glade/Types.chs is
up-to-date.
/nix/store/mbcklmjcqwavi9fan7vj6sys2d7p4s2s-gtk2hs-buildtools-0.12.3/bin/gtk2hsTypeGen --tag=libglade --hierarchy=hierarchy.list --destructor=objectUnrefFromMainloop --forward=*Graphics.UI.GtkInternals --modname=Graphics.UI.Gtk.Glade.Types --tag=libglade --tag=libglade-2.0 --tag=libglade-2.2 --tag=libglade-2.4 --tag=libglade-2.6
building
Preprocessing library glade-0.12.1...
gtk2hsC2hs: UName: root name supply used after saving
builder for `/nix/store/3xqiqknxm1255vn0mqy5a4bmsv0kzacc-haskell-glade-ghc7.0.4-0.12.1.drv' failed with exit code 1

Changed 3 years ago by guest

  • cc gtk2hs-bug-tracker@… added

This is the change that appears to have led to the failure:

--- b/hierarchyGen/Hierarchy.chs.template        2012-03-08 18:22:57.000000000 -0500
+++ a/hierarchyGen/Hierarchy.chs.template        2011-09-12 07:44:11.000000000 -0400
@@ -37,7 +37,11 @@
   ) where
 
 import Foreign.ForeignPtr (ForeignPtr, castForeignPtr, unsafeForeignPtrToPtr)
+#if __GLASGOW_HASKELL__>=704
+import Foreign.C.Types    (CULong(..), CUInt(..))
+#else
 import Foreign.C.Types    (CULong, CUInt)
+#endif
 import System.Glib.GType       (GType, typeInstanceIsA)
 @MODULE_IMPORTS@
 {# context lib="@CONTEXT_LIB@" prefix="@CONTEXT_PREFIX@" #}

Changed 21 months ago by dmwit

  • status changed from new to closed
  • resolution set to fixed

Thanks for the report. This seems to have been fixed for some time now.

Note: See TracTickets for help on using tickets.