dev-util/ftjam-2.5.3_rc2 fails to compile for me on amd64. The full build log will be attached, but pasted below are the sort of lines that I suspect might be causing the trouble. Yacc1 jamgram.c jamgram.h YaccMv jamgram.c jamgram.h mv: cannot stat `y.tab.c': No such file or directory mv: cannot stat `y.tab.h': No such file or directory mv -f y.tab.c jamgram.c mv -f y.tab.h jamgram.h ...failed YaccMv jamgram.c jamgram.h ... ...removing jamgram.c ...removing jamgram.h ...skipped jamgram.o for lack of jamgram.c... . . . ...skipped jam for lack of libjam.a... ...failed updating 2 target(s)... ...skipped 4 target(s)... ...updated 30 target(s)... make: *** [all] Error 1 * * ERROR: dev-util/ftjam-2.5.3_rc2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2381: Called die * The specific snippet of code: * emake || die "emake failed"; * The die message: * emake failed Reproducible: Always Steps to Reproduce: Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 x86_64) ================================================================= System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Pentium(R) D CPU 3.20GHz Timestamp of tree: Mon, 17 Mar 2008 20:16:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 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.61-r1 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.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" 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/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo " MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://gentoo-rsync.halibutdepot.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 arts berkdb cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam fame flac fortran gcj gdbm gif gnome gpm gstreamer gtk hal iconv imagemagick isdnlog jpeg kde kerberos mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd theora tiff truetype unicode vorbis xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="intel8x0" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 146433 [details] build.log
Created attachment 146435 [details] eclass-debug.log
Created attachment 146437 [details] environment
the only way i can reproduce this is to remove bison altogether. what does yacc -V say? can you try remerging bison?
(In reply to comment #4) > what does yacc -V say? becky16 ~ # yacc -V bison (GNU Bison) 2.3 Written by Robert Corbett and Richard Stallman. Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > can you try remerging bison? I have re-emerged sys-devel/bison-2.3 ; the problem still appears.
(In reply to comment #0) > dev-util/ftjam-2.5.3_rc2 fails to compile for me on amd64. I was able to get ftjam to compile and emerge successfully by first emerging yacc (I used dev-util/yacc-1.9.1-r3, the stable version on amd64 at the time of this writing). Since the problem is resolved for me, I'm comfortable with having this bug closed if it's not affecting anyone else.
i'd like to leave it open until i understand the root cause, even if just to see if anyone else runs into it.
(In reply to comment #7) > i'd like to leave it open until i understand the root cause, even if just to > see if anyone else runs into it. That sounds fine to me. If necessary, I will be available for testing. Also: (In reply to comment #6) > I was able to get ftjam to compile and emerge successfully by first emerging > yacc (I used dev-util/yacc-1.9.1-r3 To clarify: I did not have any version of yacc installed when this problem appeared. That is, when I emerged dev-util/yacc as described above, I was installing it as a new package, not, say, re-emerging an existing installation of dev-util/yacc .
(In reply to comment #8) > (In reply to comment #7) > > i'd like to leave it open until i understand the root cause, even if just to > > see if anyone else runs into it. > I had the same problem, too (with bison-2.3 and without yacc). With: emerge yacc; emerge -1 ftjam; emerge -C yacc ftjam could be compiled without any problems. (yacc was 1.9.1-r3)
Created attachment 148244 [details] emerge --info Same here.
okay, i'll need to fix this asap.
(In reply to comment #9) > I had the same problem, too (with bison-2.3 and without yacc). > > With: > emerge yacc; emerge -1 ftjam; emerge -C yacc > ftjam could be compiled without any problems. > (yacc was 1.9.1-r3) > +1
i did look into this but couldn't find the problem. i need to figure out how to reproduce it.
Same problem "equery b y.tab.c" results in a not found in any package. While emerging yacc portage detect a collision: /usr/bin/yacc Emerge bison after yacc doesn't result in any collision detection. Unmerging yacc an "orphaned" file /usr/bin/yacc remain in the system. It's the symlink at yacc.bison.
IN fact, I guess yacc is missing in the dependency of dev-util/ftjam-2.5.3_rc2? I had the same problem. I had to emerge yacc first to install ftjam.
the next person that hits this, send me as much info about your system pre-workaround as possible. tar up the work directory and email it to me if you can.
Created attachment 161017 [details] failed ftjam build workdir, environment and log
thanks! $ type -P yacc $ file /bin/yacc $ file /usr/bin/yacc $ cat /usr/bin/yacc.bison
actually, run `./jam0 -a -d7` in work/ftjam-2.5.3rc2. it looks like yacc isn't even being called on my system, it falls back to the yyacc script in the work directory.
Created attachment 161066 [details, diff] ftjam-2.5.3-i-hate-yacc.patch please give this a try.
Patch works for me. I had the same problem. I've tried your patch (without emerging yacc or so) and ftjam-2.5.3_rc2 emerged successfully. Thanks.
ftjam-2.5.3-i-hate-yacc.patch worked for me too.
thanks guys, sorry it took so long to sort out.