I am getting a compile error during emerge of dev-lang/mercury-10.04.2. Error msg is: gmake[2]: Entering directory `/var/tmp/portage/dev-lang/mercury-10.04.2/work/mercury-compiler-10.04.2/compiler' mmc --make-private-interface --grade asm_fast.gc --mercury-linkage static --flags COMP_FLAGS --no-warn-unused-imports hlds mmc --make-private-interface --grade asm_fast.gc --mercury-linkage static --flags COMP_FLAGS libs ../scripts/mmc: line 26: /usr/bin/mercury_compile: No such file or directory ../scripts/mmc: line 26: exec: /usr/bin/mercury_compile: cannot execute: No such file or directory gmake[2]: *** [hlds.date0] Error 126 gmake[2]: INTERNAL: Exiting with 4 jobserver tokens available; should be 3! gmake[2]: Leaving directory `/var/tmp/portage/dev-lang/mercury-10.04.2/work/mercury-compiler-10.04.2/compiler' gmake[1]: *** [compiler] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/dev-lang/mercury-10.04.2/work/mercury-compiler-10.04.2' make: *** [all] Error 2 emake failed ----- if full build log is needed I'll provide it of course. Reproducible: Always Steps to Reproduce: 1. emerge mercury - build fails Expected Results: clean build (at least) Portage 2.1.9.20 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, glibc-2.12.1-r1, 2.6.34.7 x86_64) ================================================================= System uname: Linux-2.6.34.7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 19 Oct 2010 17:30:19 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 virtual/os-headers: 2.6.35 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 skype-eula PUEL googleearth Nero-AAC-EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O3 -march=native -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 beagle berkdb bluetooth branding bzip2 cairo caps cdda cddb cdr cjk cli consolekit cracklib crypt cups curl cvs cxx dbus dri dts dvb dvd dvdr eds emboss encode evo exif fam fbcon ffmpeg firefox flac fontconfig fortran gdbm gdu gif glade gmp gnome gnome-keyring gnuplot gnutls gpm gps graphviz gstreamer gtk iconv idn ieee1394 ipv6 java javascript jbig jpeg jpeg2k ladspa lame lapack latex lcms ldap libnotify lua lzma lzo mad matroska mikmod mmx mng modplug modules mono mp3 mp4 mpeg mtp mudflap multilib musepack nautilus ncurses nls nntp nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl plotutils png policykit postgres ppds pppd pulseaudio python qt3support qt4 readline reflection ruby samba sdl session smp snmp speex spell sqlite sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vorbis wavpack wmf wxwidgets x264 xattr xcb xml xorg xpm xulrunner xv xvid 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 mmap_emul 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 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel radeon" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Attach the build log, then. The emerge output explicitly asked you to.
Created attachment 251343 [details] Build Log Well every ebuild does so, no matter if it's sane and worth the effort, doesn't it?
Thanks for taking the time to report this. Alas, I've been unable to reproduce this. :-( It looks like your 'make' thinks it needs to regenerate .c files from .m files (we can't do that since we don't have a Mercury compiler built yet). Can you try emerging mercury again and when it fails, run the following: # cd /var/tmp/portage/dev-lang/mercury-10.04.2-r1/work/mercury-compiler-10.04.2-r1/compiler # MMAKE_DIR=`pwd`/../scripts PATH=`pwd`/../scripts:$PATH ../scripts/mmake -v -d 2>&1 | gzip &> /var/tmp/portage/dev-lang/mercury-10.04.2-r1/temp/log.gz Then please attach the /var/tmp/portage/dev-lang/mercury-10.04.2-r1/temp/log.gz file to this bug. This should give me an idea as to which files it thinks need regenerating and why.
Created attachment 253367 [details] Requested log file Aside from the log, I just saw that after unpacking the call to autoheader seems to fail - I don't know if that's a problem though.
Thanks very much for the log - it proved a real help! This should now be fixed in CVS. We now use a 2-pass bootstrap that allows us to patch .m files directly. (I've also tidied up the autoheader failure, along with a java/erlang grade failure when using GNU make 3.82). Keri