Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 776637

Summary: dev-haskell/glib-0.13.8.1 - /.../Setup.hs: error:
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED DUPLICATE    
Severity: normal CC: louis.frayser
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-haskell:glib-0.13.8.1:20210316-053424.log
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-03-16 08:25:07 UTC
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/glib-0.13.8.1/work/glib-0.13.8.1/Setup.hs, /var/tmp/portage/dev-haskell/glib-0.13.8.1/work/glib-0.13.8.1/Setup.o )

/var/tmp/portage/dev-haskell/glib-0.13.8.1/work/glib-0.13.8.1/Setup.hs:8:29: error:
    • Couldn't match expected type ‘Distribution.Simple.UserHooks.UserHooks’
                  with actual type ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’
      NB: ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20210305-021532

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Mar 15 22:52:58 UTC 2021

emerge -qpvO dev-haskell/glib
[ebuild   R   ] dev-haskell/glib-0.13.8.1  USE="closure-signals -doc -hscolour -profile"
Comment 1 Toralf Förster gentoo-dev 2021-03-16 08:25:08 UTC
Created attachment 691719 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-16 08:25:09 UTC
Created attachment 691722 [details]
dev-haskell:glib-0.13.8.1:20210316-053424.log
Comment 3 Toralf Förster gentoo-dev 2021-03-16 08:25:11 UTC
Created attachment 691725 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-03-16 08:25:12 UTC
Created attachment 691728 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-03-16 08:25:13 UTC
Created attachment 691731 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-16 08:25:15 UTC
Created attachment 691734 [details]
temp.tar.bz2
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-27 06:46:04 UTC
Something caused older (bundled with ghc) cabal to be used:

[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/glib-0.13.8.1/work/glib-0.13.8.1/Setup.hs, /var/tmp/portage/dev-haskell/glib-0.13.8.1/work/glib-0.13.8.1/Setup.o )

[;1m/var/tmp/portage/dev-haskell/glib-0.13.8.1/work/glib-0.13.8.1/Setup.hs:8:29: [;1m[31merror:[0m[0m[;1m[0m[0m[;1m
    • Couldn't match expected type ‘Distribution.Simple.UserHooks.UserHooks’
                  with actual type ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’
      NB: ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’
            is defined in ‘Distribution.Simple.UserHooks’
                in package ‘Cabal-3.2.1.0’
          ‘Distribution.Simple.UserHooks.UserHooks’
            is defined in ‘Distribution.Simple.UserHooks’
                in package ‘Cabal-3.0.1.0’
    • In the first argument of ‘defaultMainWithHooks’, namely
        ‘gtk2hsUserHooks’
      In the expression: defaultMainWithHooks gtk2hsUserHooks
      In an equation for ‘main’:
          main = defaultMainWithHooks gtk2hsUserHooks[0m[0m
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-27 09:14:21 UTC
Should be fixed by #799077 wehere old cabal-3.0 was removed and hdbc-postgresql updated to avoid pulling in outdated Cabal.

*** This bug has been marked as a duplicate of bug 799077 ***