Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
haskell-updater --upgrade failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1275
Location: Tri-Cities, WA USA

PostPosted: Wed Sep 04, 2013 1:20 pm    Post subject: haskell-updater --upgrade failed Reply with quote

haskell-updater --upgrade failed

Any ideas on this one?

I tried : emerge -av dev-haskell/cairo dev-haskell/gio dev-haskell/gtk2hs-buildtools dev-haskell/gtk dev-haskell/glade dev-haskell/pango dev-haskell/glib

with no luck and the same errror
Code:

Compiling source in /var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0 ...
./setup build
Building gtk-0.12.0...
Preprocessing library gtk-0.12.0...

Graphics/UI/Gtk/Gdk/GC.chs:82:8:
    Could not find module `Control.OldException'
    Perhaps you meant Control.Exception (from base)
    Use -v to see a list of the files searched for.
 * ERROR: dev-haskell/gtk-0.12.0 failed (compile phase):
 *   setup build failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2925:  Called haskell-cabal_src_compile
 *   environment, line 2226:  Called cabal_src_compile
 *   environment, line  751:  Called cabal-build
 *   environment, line  551:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/gtk-0.12.0'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/gtk-0.12.0'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'
 * S: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'

>>> Failed to emerge dev-haskell/gtk-0.12.0, Log file:

>>>  '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'

 * Messages for package dev-haskell/gtk-0.12.0:

 * ERROR: dev-haskell/gtk-0.12.0 failed (compile phase):
 *   setup build failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2925:  Called haskell-cabal_src_compile
 *   environment, line 2226:  Called cabal_src_compile
 *   environment, line  751:  Called cabal-build
 *   environment, line  551:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/gtk-0.12.0'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/gtk-0.12.0'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'
 * S: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'
 *
 * The following package has failed to build or install:
 *
 *  (dev-haskell/gtk-0.12.0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'
 *
azzerare ~ #


Code:

azzerare ~ # emerge --info '=dev-haskell/gtk-0.12.0'
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.10.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.7-gentoo-x86_64-AMD_Athlon-tm-_64_Processor_3400+-with-gentoo-2.2
KiB Mem:     3310456 total,   1230900 free
KiB Swap:    8388812 total,   8313532 free
Timestamp of tree: Wed, 04 Sep 2013 11:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8-r3, 2.7.5-r2, 3.1.4-r3, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo floppym x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/floppym /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline sdl session socialweb spell sqlite sse sse2 ssl startup-notification svg tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-haskell/gtk-0.12.0 was built with the following:
USE="gio (multilib) -doc -hscolour -profile"
CFLAGS="-march=athlon64"
CXXFLAGS="-O2 -pipe"

azzerare ~ #

_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 212
Location: AU

PostPosted: Thu Sep 05, 2013 5:49 am    Post subject: Reply with quote

Control.OldException is removed from recent dev-lang/ghc versions. So it is necessary to unmask the most recent
versions of the gtk2hs. By adding them to /etc/portage/package.keywords (the gtk2 versions are in slot 2,
the gtk3 versions are not released by upstream yet):

dev-haskell/cairo:2
dev-haskell/gio:2
dev-haskell/gtk2hs-buildtools:2
dev-haskell/gtk:2
dev-haskell/glade:2
dev-haskell/pango:2
dev-haskell/glib:2
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Sep 05, 2013 8:41 am    Post subject: Reply with quote

Portage and Cabal do _not_ play well together. I've generally found it best to install
(or update) GHC from Portage, and then load everything else via Cabal. Cabal is no
sort of package management system, and it's best left to do its thing unmolested.


Will
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1275
Location: Tri-Cities, WA USA

PostPosted: Thu Sep 05, 2013 12:10 pm    Post subject: Reply with quote

gienah wrote:
Control.OldException is removed from recent dev-lang/ghc versions. So it is necessary to unmask the most recent
versions of the gtk2hs. By adding them to /etc/portage/package.keywords (the gtk2 versions are in slot 2,
the gtk3 versions are not released by upstream yet):

dev-haskell/cairo:2
dev-haskell/gio:2
dev-haskell/gtk2hs-buildtools:2
dev-haskell/gtk:2
dev-haskell/glade:2
dev-haskell/pango:2
dev-haskell/glib:2


thank you so much for the line. Some education is in order on my part. Before I proceed
I read some information about dev-haskell and read it is a language http://www.haskell.org/haskellwiki/Gentoo
It does appear I should not remove it from my system.

Could I just wait for the above packages to be updated . I need to find what depends on dev-haskell

and
What is slot 2?

Thanks again!
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1275
Location: Tri-Cities, WA USA

PostPosted: Thu Sep 05, 2013 12:13 pm    Post subject: Reply with quote

cwr wrote:
Portage and Cabal do _not_ play well together. I've generally found it best to install
(or update) GHC from Portage, and then load everything else via Cabal. Cabal is no
sort of package management system, and it's best left to do its thing unmolested.


Will



I don't know what Cabal is ? I have stuck to portage on my system I'm working on .
The only applications I use that are not installed with portage are Blender and Arduino which are run from the binary.
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 212
Location: AU

PostPosted: Thu Sep 05, 2013 12:46 pm    Post subject: Reply with quote

To find the packages that depend on haskell:

Code:
equery depends dev-lang/ghc


The default slot is 0. Some packages in portage are in slots other than 0 when it is desired
to be able to support the installation of multiple versions at the same time.

Quote:
Portage and Cabal do _not_ play well together. I've generally found it best to install
(or update) GHC from Portage, and then load everything else via Cabal. Cabal is no
sort of package management system, and it's best left to do its thing unmolested.


Installing everything except dev-lang/ghc with Cabal may work for a Haskell developer that does
not have that many Haskell packages installed. As the number of haskell packages that are
installed increases, then it becomes harder to obtain a consistent set of packages without
patching. Some Haskell developers use sandboxes like dev-haskell/cabal-dev to maintain
multiple sets of packages as an alternative way to manage this.

Packages that are installed with cabal are broken when dependent portage packages or dev-lang/ghc
are updated.

The alternative solution to installing all Haskell packages with cabal is to install all Haskell packages
with emerge. We maintain the gentoo-haskell overlay with hundreds of packages. If you need a
package that is missing, it can be added to a local overlay:

Code:
emerge app-portage/hackport
hackport merge missing-pkg-name


To fix the breakage to the portage managed haskell packages that occurs when
dependent haskell packages or dev-lang/ghc are updated:

Code:
haskell-updater
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri Sep 06, 2013 9:00 am    Post subject: Reply with quote

Yes, you need either Portage _or_ Cabal, and since Cabal has the full set of packages
from hackage that's what I use. It's not especially easy to set up, but it works. I haven't
found any special breakages updating GHC, though it's a while since I've done that. My
system is set up so that GHC's pet packages are left alone, and the rest of Haskell
is installed under /opt.

Will
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1275
Location: Tri-Cities, WA USA

PostPosted: Mon Sep 09, 2013 11:41 am    Post subject: http://wiki.gentoo.org/wiki/Haskell Reply with quote

http://wiki.gentoo.org/wiki/Haskell

I'm still working on this. Hopefully this guide will help.
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum