Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239422 - sys-apps/pcmciautils-0.15 (without dev-util/yacc) - mv: cannot stat `y.tab.c': No such file or directory
Summary: sys-apps/pcmciautils-0.15 (without dev-util/yacc) - mv: cannot stat `y.tab.c'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-03 11:29 UTC by Matt Enright
Modified: 2009-10-17 11:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Enright 2008-10-03 11:29:42 UTC
sys-apps/pcmciautils-0.15 fails to emerge with the following error if dev-util/yacc is not installed:

>>> Compiling source in /var/tmp/portage/sys-apps/pcmciautils-015/work/pcmciautils-015 ...
Building ccdv
x86_64-pc-linux-gnu-gcc -pipe -DPCMCIAUTILS_VERSION=\"015\" -I/var/tmp/portage/sys-apps/pcmciautils-015/work/pcmciautils-015/src -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -Wshadow -I/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/include -O2 -pipe -march=athlon64 -msse3   -D_GNU_SOURCE -c -o src/pccardctl.o src/pccardctl.c
yacc -d src/yacc_config.y
mv y.tab.c src/yacc_config.c
mv: cannot stat `y.tab.c': No such file or directory
make: *** [src/yacc_config.h] Error 1
make: *** Waiting for unfinished jobs....
 * 
 * ERROR: sys-apps/pcmciautils-015 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 3168:  Called die
 * The specific snippet of code:
 * emake OPTIMIZATION="${CFLAGS} ${CPPFLAGS}" V="true" CC="$(tc-getCC)" LD="$(tc-getCC)" STRIP="true" || die "emake failed"
 * The die message:
 * emake 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/sys-apps/pcmciautils-015/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/pcmciautils-015/temp/environment'.
 *

Reproducible: Always

Steps to Reproduce:
1. Unmerge dev-util/yacc (emerge -avC yacc)
2. emerge -av pcmciautils

Actual Results:  
Emerge of pcmciautils fails with above error message.

Expected Results:  
Ebuild should require yacc, and install it before attempting to emerge pcmciautils.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-03 15:09:02 UTC
Please post your `emerge --info' too.
Comment 2 Matt Enright 2008-10-03 16:16:51 UTC
Portage 2.2_rc11 (default-linux/amd64/2007.0, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-AMD_Turion-tm-_64_Mobile_Technology_MT-37-with-glibc2.2.5
Timestamp of tree: Fri, 03 Oct 2008 10:30:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 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.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-O2 -pipe -march=athlon64 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en de fr"
MAKEOPTS="-j2"
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://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apache2 avahi beagle berkdb bitmap-fonts cairo cjk cli cracklib crypt cups dbus dri dvd eds encode fortran galago gdbm gif gnome gnome-keyring gpm gstreamer gtk hal i8x0 iconv imlib ipv6 isdnlog jpeg libnotify mad midi mmx mono mp3 mpeg mudflap ncurses networkmanager nls nptl nptlonly offensive ogg opengl openmp pam pcre perl png pppd python quicktime readline reflection sdl session spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vim-syntax vorbis xorg zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr" USERLAND="GNU" VIDEO_CARDS="sis fbdev vga vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-03 20:15:58 UTC
Thanks, looks like a missing dep. Assigning to maintainer team.
Comment 4 Alex Barker 2009-05-14 18:24:27 UTC
This also effects sys-apps/pcmciautils-0.14-r1
Comment 5 Marcello Magaldi 2009-07-02 13:23:41 UTC
(In reply to comment #4)
> This also effects sys-apps/pcmciautils-0.14-r1
> 

I can confirm it, cannot merge pcmciautils at all, and pcmcia-cs is deprecated since kernel 2.6.13
Comment 6 Marcello Magaldi 2009-07-15 17:10:13 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > This also effects sys-apps/pcmciautils-0.14-r1
> > 
> 
> I can confirm it, cannot merge pcmciautils at all, and pcmcia-cs is deprecated
> since kernel 2.6.13
> 

installing also dev-util/yacc before merging pcmciautils worked also for 0.14-r1 , so pcmciautils ebuild should really depend on dev-util/yacc. Without it pcmciautils won't build.
Comment 7 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-16 19:20:52 UTC
fixed in cvs.
thanks
Comment 8 Hanno Böck gentoo-dev 2009-10-17 09:03:50 UTC
pcmciautils does not need dev-util/yacc, it needs any implementation of yacc, which can be bison as well.
So please change this to 
|| ( sys-devel/bison dev-util/yacc )
unless there's a reason you need a specific implementation of yacc.
Comment 9 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-17 11:18:06 UTC
you originally changed it to "|| ( sys-devel/bison dev-util/yacc )" in the past and since then there have been reports of build failures, which were fixed by installing yacc.

feel free to work up a patch supporting building with bison.