I was trying to install xmonad but when I'm trying to compile darcs it raises this error: ... checking whether byte ordering is bigendian... no configure: creating ./config.status config.status: creating autoconf.mk config.status: WARNING: autoconf.mk.in seems to ignore the --datarootdir setting config.status: creating gitlib.h config.status: creating Autoconf.lhs config.status: WARNING: Autoconf.lhs.in seems to ignore the --datarootdir setting config.status: creating ThisVersion.lhs config.status: creating cgi/darcs.cgi config.status: WARNING: cgi/darcs.cgi.in seems to ignore the --datarootdir setting config.status: creating cgi/README config.status: WARNING: cgi/README.in seems to ignore the --datarootdir setting config.status: creating cgi/cgi.conf config.status: WARNING: cgi/cgi.conf.in seems to ignore the --datarootdir setting config.status: executing config.command commands The build is configured as follows: bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin mandir = /usr/share/man datadir = /usr/share sysconfdir = /etc libexecdir = ${exec_prefix}/libexec Build Manual = no Git support = no If you want to adjust any of these values, edit autoconf.mk and Autoconf.lhs -- or run configure with appropriate settings. rm -f Main.hi Main.o ghc -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -Wall -Werror -I. -DHAVE_CURSES -DHAVE_CURL -optl-L/usr/lib64 -optl-lcurl -optl-L/usr/lib -optl-lssl -optl-lcrypto -optl-ldl -optl-lz -optl-lcurses -o stringify stringify.hs <interno>:0:1: lexical error make: *** [stringify] Error 1 !!! ERROR: dev-util/darcs-1.0.8-r1 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3693: Called src_compile darcs-1.0.8-r1.ebuild, line 54: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/dev-util/darcs-1.0.8-r1/temp/build.log'. This is my emerge --info: ----------------------------------------------------------------------------- emerge --info Portage 2.1.2.2 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7 x86_64) ================================================================= System uname: 2.6.20-gentoo-r7 x86_64 Intel(R) Pentium(R) D CPU 3.40GHz Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 14 May 2007 01:47:01 +0000 dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" 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/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="es_BO.UTF-8" LC_ALL="es_BO.UTF-8" LINGUAS="es_BO es_AR es_ES es" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/dlang" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 arts avi berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg kde kerberos ldap libg++ mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv zlib" 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" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_BO es_AR es_ES es" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Which GHC version are you using? ghc -V
Hey, I got the same error while trying to emerge darcs (to checkout the haskell repository from layman). In my particular case, I DON'T have ghc installed, but ghc-bin, which installs itself outside of the default root path in /opt/bin/ghc (when run directly shows version 6.4.2). The path is included in my regular user, but if I emerge with sudo (instead of su) same thing happens (though plain "ghc --version" works).
Interesting. When using ghc-bin the file /etc/env.d/10ghc will take care of putting ghc in your path. That requires though that you env-update and source /etc/profile. I guess su reads the new profile and sudo does not? Still doesn't explain the error...
I've just added darcs-1.0.9 to the portage tree, it'll be available on the mirrors soon. Please see if you can repeat the error with this version. emerge --sync ACCEPT_KEYWORDS="~amd64" emerge darcs
This bug is because ghc-6.4.2 does not grok UTF8 in the output of cpp. Since gcc-4.x (if I recall correctly), cpp has produced localised output, so for example Sergio is using LANG="es_BO.UTF-8" and so cpp produces output with translations of locations like "internal" that uses non-ASCII chars. ghc-6.6.x accepts UTF8 input correctly. So there are a couple solutions, 1. LANG="C" emerge darcs assuming emerge doesn't override the LANG internally this might work. 2. update to ghc-6.6 ghc-6.6 and 6.6.1 should be unmasked in portage soon. if 1. works we could try updating the ghc-6.4.2 ebuild to set LANG="C".
*** Bug 186547 has been marked as a duplicate of this bug. ***
ghc-6.6.1 is stable in portage on most arches. We do not intend to fix ghc 6.4.2.