... [18 of 22] Compiling Text.CSL.Proc ( src/Text/CSL/Proc.hs, dist/build/Text/CSL/Proc.o ) [19 of 22] Compiling Text.CSL.Input.Bibtex ( src/Text/CSL/Input/Bibtex.hs, dist/build/Text/CSL/Input/Bibtex.o ) [20 of 22] Compiling Text.CSL.Input.Bibutils ( src/Text/CSL/Input/Bibutils.hs, dist/build/Text/CSL/Input/Bibutils.o ) src/Text/CSL/Input/Bibutils.hs:68:1: parse error (possibly incorrect indentation or mismatched brackets) * ERROR: dev-haskell/pandoc-citeproc-0.3.1::gentoo failed (compile phase): * setup build failed * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2788: Called haskell-cabal_src_compile * environment, line 1905: Called cabal_src_compile * environment, line 734: Called cabal-build * environment, line 523: Called die * The specific snippet of code: * ./setup "$@" || die "setup build failed" * Reproducible: Always # emerge --info '=dev-haskell/pandoc-citeproc-0.3.1::gentoo' Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.12.21-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.12.21-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2 KiB Mem: 16360596 total, 5379336 free KiB Swap: 20971516 total, 20971516 free Timestamp of tree: Sun, 06 Jul 2014 04:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.2.5-r3, 3.3.3 dev-util/cmake: 2.8.12.2 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo desktop-effects sunrise seden java science barzog-overlay rion x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -fomit-frame-pointer -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/fax/etc /var/spool/munin-async/.ssh" 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.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=corei7-avx -fomit-frame-pointer -O2 -pipe" DISTDIR="/misc/GFZ640Gb/gentoo/distfiles" 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 userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/desktop-effects /var/lib/layman/sunrise /var/lib/layman/seden /var/lib/layman/java /var/lib/layman/science /var/lib/layman/barzog-overlay /var/lib/layman/rion /usr/local/portage" SYNC="rsync://192.168.5.1/gentoo-portage" USE="R X X509 a52 aac aalib accounting acl acpi adns aim aio alsa amd64 amr ansi ao apache2 apng applet archive ass audio audiofile automount avahi avx bacula-console bash-completion bazaar bcmath berkdb bidi bind-mysql bittorrent blas bluetooth bluray bonobo boost bzip2 cairo calendar caps ccache cdb cdda cddb cdio cdparanoia cdr cgi chipcard chroot colord command-args consolekit corefonts cpudetection cpulimit cracklib cramfs crypt cscope css csv ctype cups curl curlwrappers customlog cvs cvsgraph cxx cyrus dba dbi dbm dbus dbx device-mapper devmap dga dhcp dirac directfb djvu dlopen dnsdb dri dts dv dvb dvd dvdr ecc egl encode excel exif expat faad fam fastcgi fat fdk ffmpeg fftw fits flac flash flatfile fltk fontconfig fpx ftp fuse gallium gd gdal gdbm gdu geoip geos gif gimp ginac git gles gles1 gles2 glib glut gmp gnome-keyring gnuplot gpg gphoto2 graphviz gs gsl gssapi gstreamer gtk gtk3 gudev gzip h323 hal hardened hardenedphp hddtemp hdf5 hdri highlight hpn html http hunspell hwdb iconv icq icu idea idled idn imagemagick imap imlib imlib2 inifile innodb introspection ios ipalias ipc ipod ipv6 jabber jack java javascript jbig jingle jit jpeg jpeg2k json kdrive kerberos keymap kpathsea lame lapack latex lcms ldap less libass libnotify libsamplerate libv4l libv4l2 libwww lm_sensors lmtp logrotate logwatch lua lzma lzo mad magic matroska mbox mcal memlimit mercurial mgetty mhash midi milter mime mimencode ming mmap mms mmx mmxext mng mp3 mp4 mpeg mplayer msn mtp multilib musepack musicbrainz mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nautilus ncurses netboot netcdf netlink network networkmanager nfs nis nls nntp nptl nsplugin nss ntfs ntp oav ocaml ocamlopt ocatve octave odbc offensive ogg openal openexr opengl openmp openrc openssh openssl osc oscar pam pam_chroot pam_timestamp pango parse-clocks pcf pcntl pcre pda pdf pdfkit pdflib perl php pic plotutils png policykit posix postfix postgis postgres postscript ppds procmail ps pulseaudio pwdb python qdbm qt4 quotas radius raw rdesktop readline recode reiserfs rrdtool rss rtmp samba sample sasl scanner schroedinger screen sendfile sensord session sftp sftplogging shaper shared sharedext shorten sieve simplexml slang slp smartcard smime smp sms smtp sna sndfile snmp snortsam soap sockets socks5 sound sox spamassassin spatialite speex spell spl sql sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 ssl ssse3 stream subversion svg sysfs syslog sysvipc szip taglib tcpd telepathy theora threads tidy tiff timidity tokenizer tools transparent-proxy truetype truetype-fonts type1-fonts udev unicode upnp upnp-av usb userlocales utf8 uuid v4l vaapi vala vcd vhosts video vim-syntax virtual-users virus-scan vnc vorbis vpx wddx weather webdav webkit webm webp wifi win32codecs withsamplescripts wmf x264 xattr xcb xcomposite xetex xface xfs xft xinerama xinetd xml xml2 xmlrpc xmp xmpp xorg xosd xpdf-headers xpm xrandr xsl xslt xv xvfb xvid xvmc yahoo yaml yaz zlib zvbi" ABI_X86="64" APACHE2_MODULES="access auth auth_basic auth_digest authn_default authn_core authn_file authz_core authz_groupfile authz_host authz_user authn_dbm authn_dbd authz_dbd dbd ident imagemap authn_file authn_default authz_groupfile authn_alias authn_anon authz_dbm authz_owner authz_default authz_user auth_digest authz_host alias file_cache echo charset_lite cache disk_cache mem_cache ext_filter case_filter case-filter-in deflate filter mime_magic cern_meta proxy_ajp proxy_balancer expires headers usertrack proxy proxy_connect proxy_ftp proxy_http info include cgi cgid dav dav_lock dav_fs vhost_alias speling rewrite log_config logio env setenvif mime status substitute autoindex asis negotiation dir imap actions userdir so unique_id version dumpio log_forensic reqtimeout socache_shmcb unixd proxy_fcgi slotmem_shm ratelimit remoteip" APACHE2_MPMS="worker" CURL_SSL="nss" ELIBC="glibc" FFTOOLS="cws2fws qt-faststart aviocat ismindex" GPSD_PROTOCOLS="aivdm sirf mtk3301 gpsclock superstar2 timing nmea" GRUB_PLATFORMS="pc multiboot efi coreboot efi-64" INPUT_DEVICES="keyboard mouse evdev wacom synaptics" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport wiki-publisher" LINGUAS="en_GB en en_US de_DE de" PHP_TARGETS="php5-3 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="net hp" USERLAND="GNU" VIDEO_CARDS="vga intel i915 i965 fbdev vesa" XFCE_PLUGINS="brightness clock xmonad multiload-nandhp trash" USE_PYTHON="2.7 3.2 3.3" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 380404 [details] build.log
Please try with the bibutils use flag: USE=bibutils emerge -av dev-haskell/pandoc-citeproc It would be neat if you would like to report it upstream. In which case, please ask about the ++ at the end of line 65 in the source file that the compile fails on: https://github.com/jgm/pandoc-citeproc/blob/master/src/Text/CSL/Input/Bibutils.hs It builds for me with the bibutils use flag.
(In reply to Mark Wright from comment #2) > Please try with the bibutils use flag: > > USE=bibutils emerge -av dev-haskell/pandoc-citeproc compiles w/o problem > It would be neat if you would like to report it upstream. > In which case, please ask about the ++ at the end of line 65 > in the source file that the compile fails on: > > https://github.com/jgm/pandoc-citeproc/blob/master/src/Text/CSL/Input/ > Bibutils.hs just removing the trailing " ++" doesn't work: [20 of 22] Compiling Text.CSL.Input.Bibutils ( src/Text/CSL/Input/Bibutils.hs, dist/build/Text/CSL/Input/Bibutils.o ) [21 of 22] Compiling Text.CSL ( src/Text/CSL.hs, dist/build/Text/CSL.o ) [22 of 22] Compiling Text.CSL.Pandoc ( src/Text/CSL/Pandoc.hs, dist/build/Text/CSL/Pandoc.o ) In-place registering pandoc-citeproc-0.3.1... Preprocessing executable 'pandoc-citeproc' for pandoc-citeproc-0.3.1... [1 of 2] Compiling Paths_pandoc_citeproc ( dist/build/autogen/Paths_pandoc_citeproc.hs, dist/build/pandoc-citeproc/pandoc-citeproc-tmp/Paths_pandoc_citeproc.o ) [2 of 2] Compiling Main ( pandoc-citeproc.hs, dist/build/pandoc-citeproc/pandoc-citeproc-tmp/Main.o ) pandoc-citeproc.hs:77:30: Not in scope: data constructor `Ris' pandoc-citeproc.hs:78:30: Not in scope: data constructor `Endnote' pandoc-citeproc.hs:79:30: Not in scope: data constructor `Endnote' pandoc-citeproc.hs:80:32: Not in scope: data constructor `EndnotXml' pandoc-citeproc.hs:81:30: Not in scope: data constructor `EndnotXml' pandoc-citeproc.hs:82:30: Not in scope: data constructor `Isi' pandoc-citeproc.hs:83:30: Not in scope: data constructor `Isi' pandoc-citeproc.hs:84:30: Not in scope: data constructor `Medline' pandoc-citeproc.hs:85:30: Not in scope: data constructor `Copac' * ERROR: dev-haskell/pandoc-citeproc-0.3.1-r1::x-portage failed (compile phase): * setup build failed
Created attachment 380660 [details, diff] compiles w/o bibutils USE flag
(In reply to Thomas Beutin from comment #4) > Created attachment 380660 [details, diff] [details, diff] > compiles w/o bibutils USE flag and here is the ebuild patch: --- /usr/portage/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild 2014-07-02 17:45:40.000000000 +0200 +++ /usr/local/portage/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1-r1.ebuild 2014-07-13 01:19:17.894181779 +0200 @@ -51,6 +51,9 @@ dev-haskell/text >=dev-haskell/yaml-0.8.8.2 ) " +src_prepare() { + epatch "${FILESDIR}"/${P}-Bibutils.patch +} src_configure() { # workaround bug on ghc-7.6.3:
Created attachment 380662 [details, diff] compiles w/o bibutils USE flag
the same happens to dev-haskell/pandoc-citeproc-0.7.2
Pushed 0.7.2 and upper fix as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b0ef9a0800b86559169cab3e236dbb0c32d1db0 Sent upstream as: https://github.com/jgm/pandoc-citeproc/pull/215 Apologoes, took me a while to get to it. Thank you!