>>> Emerging (7 of 7) dev-util/darcs-1.0.9 to / ... ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-docs --build=i686-pc-linux-gnu .. checking for module Debug.QuickCheck( quickCheck )... no; and neither in package QuickCheck configure: error: Cannot find Debug.QuickCheck; try installing package quickcheck?
Created attachment 164311 [details] build log
So sorry, forgot to mention that quickcheck-1.1.0.0 is indeed installed.
Please post your `emerge --info' too. Thanks for the build log, btw - it seems that it ought to find a regex/-compat too (but the 1.0.9 ebuild doesn't depend on dev-haskell/regex-compat): checking for module Text.Regex( mkRegex, matchRegex, Regex )... no; and neither in package text checking for module Text.Regex( mkRegex, matchRegex, Regex )... in package regex-compat Which version of dev-lang/ghc is installed? (emerge -vp dev-lang/ghc)
I have ghc-6.6.1. emerge --info: Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.7-r2, 2.6.25-gentoo-r6 i686) ================================================================= System uname: 2.6.25-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Timestamp of tree: Mon, 01 Sep 2008 15:15:02 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.2-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86" ALSA_CARDS="usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ARCH="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe" CHOST="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" COLORTERM="Terminal" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CVS_RSH="ssh" CXXFLAGS="-O2 -march=nocona -pipe" DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-JHGMDJ0i2c,guid=293723fe3d9f0a2d1689aef448bd9946" DCCC_PATH="/usr/lib/distcc/bin" DESKTOP_SESSION="xfce" DISPLAY=":0.0" DISTCC_LOG="" DISTCC_VERBOSE="0" DISTDIR="/usr/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--verbose --buildpkg" EMERGE_WARNING_DELAY="10" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}" GCC_SPECS="" GDK_USE_XFT="1" GDMSESSION="xfce" GDM_XSERVER_LOCATION="local" GENERATION="2" GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ ftp://darkstar.ist.utl.pt/pub/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://cesium.di.uminho.pt/pub/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/ http://linuv.uv.es/mirror/gentoo/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/" GUILE_LOAD_PATH="/usr/share/guile/1.6" HOME="/home/nelson" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/info:/usr/share/info/emacs-21" INPUT_DEVICES="evdev keyboard mouse" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KDEDIRS="/usr:/usr/local:/usr/kde/3.5" KERNEL="linux" LANG="fr_FR.UTF-8" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LDFLAGS="-Wl,-O1" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LINGUAS="pt pt_PT pt_BR en_GB en fr" LIRC_DEVICES="devinput creative_infracd" LOGNAME="nelson" LS_COLORS="rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:" MAKEOPTS="-j3" MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man" OPENGL_PROFILE="nvidia" PAGER="/usr/bin/less" PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.3.1:/usr/i686-pc-linux-gnu/powerpc-unknown-linux-gnu/gcc-bin/4.3.1:/usr/i686-pc-linux-gnu/powerpc64-unknown-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin" PKGDIR="/usr/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig" PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib/portage/bin" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="warn error log" PORTAGE_ELOG_COMMAND="/opt/portage_elog_command.sh nelson_batalha@hotmail.com stokes@netcabo.pt '\${PACKAGE}' '\${LOGFILE}'" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save custom echo" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_IUSE="^(alpha|alsa_cards_aoa|alsa_cards_aoa-fabric-layout|alsa_cards_aoa-onyx|alsa_cards_aoa-soundbus|alsa_cards_aoa-soundbus-i2s|alsa_cards_aoa-tas|alsa_cards_aoa-toonie|alsa_cards_armaaci|alsa_cards_at91-soc|alsa_cards_at91-soc-eti-b1-wm8731|alsa_cards_au1x00|alsa_cards_harmony|alsa_cards_powermac|alsa_cards_pxa2xx-i2sound|alsa_cards_pxa2xx-soc|alsa_cards_pxa2xx-soc-corgi|alsa_cards_pxa2xx-soc-poodle|alsa_cards_pxa2xx-soc-spitz|alsa_cards_pxa2xx-soc-tosa|alsa_cards_sa11xx-uda1341ts|alsa_cards_sun-amd7930|alsa_cards_sun-cs4231|alsa_cards_sun-dbri|altivec|amd64|aqua|arm|bmp|bmpx|bootstrap|build|coreaudio|crosscompile_opts_.*|elibc_.*|elibc_Darwin|elibc_DragonFly|elibc_FreeBSD|elibc_NetBSD|elibc_OpenBSD|elibc_glibc|elibc_uclibc|emul-linux-x86|hppa|ia64|ibm|infopipe|kernel_.*|kernel_Darwin|kernel_FreeBSD|kernel_linux|m68k|mips|mplayer-bin|multilib|n32|n64|pam_console|pbbuttonsd|ppc|ppc64|ppcsha1|s390|selinux|sh|sparc|sparc-fbsd|uclibc|ultra1|userland_.*|userland_BSD|userland_Darwin|userland_GNU|video_cards_impact|video_cards_newport|video_cards_sunbw2|video_cards_suncg14|video_cards_suncg3|video_cards_suncg6|video_cards_sunffb|video_cards_sunleo|video_cards_suntcx|vis|x86|x86-fbsd|xmms)$" PORTAGE_PYM_PATH="/usr/lib/portage/pym" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="3" PORTAGE_TMPDIR="/var/tmp" PORTAGE_USE="elibc_glibc kernel_linux userland_GNU x86" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman" PORT_LOGDIR="/var/log/portage" PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8:/usr/lib/klibc" PWD="/home/nelson" PYTHONPATH="/usr/lib/portage/pym" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}" ROOT="/" ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.3.1:/usr/i686-pc-linux-gnu/powerpc-unknown-linux-gnu/gcc-bin/4.3.1:/usr/i686-pc-linux-gnu/powerpc64-unknown-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin" RPMDIR="/usr/portage/rpm" SESSION_MANAGER="local/Babynuke:/tmp/.ICE-unix/22981" SHELL="/bin/bash" SHLVL="2" SSH_AGENT_PID="22971" SSH_AUTH_SOCK="/tmp/ssh-BQtha22951/agent.22951" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" TERM="xterm" USE="X a52 aac aalib acl acpi alsa asf avahi berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus divx djvu dlna dri dts dv dvb dvd dvdr dvdread dvi eds emboss encode esd evo fam fbcondecor ffmpeg firefox flac fortran ftp gdbm gif glitz glut gmedia gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv ieee1394 ipv6 irc isdnlog java joystick jpeg kerberos latex ldap libnotify lirc lm_sensors logitech-mouse mad midi mikmod mmx mmxext mono mp3 mpeg msn mudflap mythtv nautilus ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp oss pam pcre pdf perl png ppds pppd prediction python qt3 qt3support qt4 quicktime readline real realmedia reflection sdl session smp spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb v4l v4l2 vorbis win32codecs wmp x86 xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_PT pt_BR en_GB en fr" LIRC_DEVICES="devinput creative_infracd" USERLAND="GNU" VIDEO_CARDS="nvidia v4l v4l2 fbdev" USER="nelson" USERLAND="GNU" USERNAME="nelson" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" VIDEO_CARDS="nvidia v4l v4l2 fbdev" VMHANDLE="blackdown-jdk-1.4.2" WINDOWID="31457293" WINDOWPATH="7" XAUTHORITY="/home/nelson/.Xauthority" XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share:/usr/share" _="/usr/bin/emerge"
Could you please confirm that quickcheck is not just installed but also working? Load it into ghci and type "quickCheck True", which is similar to what the configure of darcs does. $ ghci GHCi, version 6.8.3: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Loading package old-locale-1.0.0.0 ... linking ... done. Loading package old-time-1.0.0.0 ... linking ... done. Loading package random-1.0.0.0 ... linking ... done. Loading package QuickCheck-1.1.0.0 ... linking ... done. Prelude> :m Debug.QuickCheck Prelude Debug.QuickCheck> quickCheck True OK, passed 100 tests. Prelude Debug.QuickCheck>
Thank you. Indeed Quickcheck wasn't working well. So I reemerged it and started a little odissey: >>> Emerging (1 of 1) dev-haskell/quickcheck-1.1.0.0 to / * QuickCheck-1.1.0.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking QuickCheck-1.1.0.0.tar.gz ;-) ... [ ok ] * The package dev-haskell/cabal is not correctly installed for * the currently active version of ghc (6.6.1). Please * run ghc-updater or re-emerge dev-haskell/cabal. Which is strange because I had just emerged everything haskell related for the first time. So I reemerge Cabal and was able to reemerge Quickcheck, yet it still fails to be found in ghci. So I tried ghc-updater which reemerged a lot of stuff (and in the middle failed to emerge some but didn't stop). In the end dev-haskell/parallel-1.0.0.0 needed to be emerged by hand. Ok, so then it pulled ghc-6.8.2. Forget it, reemerged quickcheck and cabal would work now. Still, should be considered a bug having to do all this manually when this was my first install of ghc (no update as the error suggests).
This is odd if you never have had ghc installed before. Darcs was package 7 of 7 during the installation, what where the other packages? You can check your logfile /var/log/emerge.log ghc-updater is used to recompile already installed packages when you upgrade your installed ghc version. If it found something it means you have had a previous version of ghc installed. ghc-updater failed with a package, you say, and we should be able to see the remains of it. Run $ echo /usr/lib/ghc-* and it should list the ghc 6.6.1 that you have installed, and possibly also list another version of ghc if there still are some leftovers (failed packages) from upgrading. What you're experiencing is common if you upgrade ghc without running ghc-updater. Portage thinks that the packages are installed, and indeed it is, but to a version of ghc which has been unmerged. We are unable to express the dependency of an installed haskell package to a specific installed version of ghc. To aid there is ghc-updater to find what has to be done.
(In reply to comment #7) > This is odd if you never have had ghc installed before. Darcs was package 7 of > 7 during the installation, what where the other packages? You can check your > logfile /var/log/emerge.log Ok sorry, I didn't knew of this file, it explains everything. I emerged himerge and it pulled ghc-6.8. Some minutes later my computer does "emerge --sync", and before I know it when I emerge dacs minutes later it pulled ghc-6.6.1. I didn't realize there had been a sync, so didn't think ghc had been {down/up}dated :/ Still ghc-6.8 has always been stable, something linked to dacs must be pulling an old ghc no? > ghc-updater failed with a package, you say, and we should be able to see the > remains of it. The package that failed was parallel.
Oh, and "quickCheck True" is still not in scope. Thanks for the support so far!
(In reply to comment #8) > (In reply to comment #7) > > This is odd if you never have had ghc installed before. Darcs was package 7 of > > 7 during the installation, what where the other packages? You can check your > > logfile /var/log/emerge.log > > Ok sorry, I didn't knew of this file, it explains everything. I emerged himerge > and it pulled ghc-6.8. Some minutes later my computer does "emerge --sync", and > before I know it when I emerge dacs minutes later it pulled ghc-6.6.1. > > I didn't realize there had been a sync, so didn't think ghc had been > {down/up}dated :/ Still ghc-6.8 has always been stable, something linked to > dacs must be pulling an old ghc no? Ok, then we know what happened, good. And yes. The last stable version of darcs, darcs-1.0.9, will pull ghc 6.6.1. I recommend you try darcs-2.0.2 instead, which is masked at the moment, but has worked really well. Either way you should really be using ghc 6.8.2 (or later) because 6.6.1 is quite old and does not have the new things 6.8.x brings, which you'd want if you're going to write applications yourself. > > ghc-updater failed with a package, you say, and we should be able to see the > > remains of it. > > The package that failed was parallel. > Right, parallel needs >=ghc-6.8.
So if I emerge himerge, I can only emerge an unstable darcs despite having a stable version. I have no problem doing that, but for instance builds in Catalyst (stage4) or other automatic builds have a problem here. This can be solved by slotting ghc I suppose. Any objections on doing this? I could try.
> This can be solved by slotting ghc I suppose. Any objections on doing this? I > could try. Humm, actually maybe not. The ebuild would have to change active ghc before compiling. For instance Darcs would emerge ghc-6.6.1, select it as active, build, and restore default ghc version, not sure if portage allows this with, for example, gcc.
(In reply to comment #11) > So if I emerge himerge, I can only emerge an unstable darcs despite having a > stable version. I have no problem doing that, but for instance builds in > Catalyst (stage4) or other automatic builds have a problem here. We have a patch in the haskell overlay fix the compilation of darcs-1.0.9 with ghc-6.8. I could look at moving it into portage. You probably really want darcs-2.0.2 anyway, lots of new stuff under the hood. I'll ask to stabilize it as soon as the 30 days has passed, and people will be able to use the latest ghc. > This can be solved by slotting ghc I suppose. Any objections on doing this? I > could try. Slotting ghc is a big project, and would result in much trouble for the users. If you have a haskell package installed with portage, to which ghc instances does it belong? Portage could not tell the difference. People would run into the same trouble you just had. Instead we should focus our efforts into making everything work with the latest released ghc version. Your welcome into #gentoo-haskell on freenode, where we coordinate our work. Still having trouble finding QuickCheck? $ ghc-pkg list QuickCheck $ ghci -package QuickCheck > :m Debug.QuickCheck > quickCheck True
I'm closing this bug, as the issue is resolved.