From: Chris D. <chr...@gm...> - 2006-05-25 02:27:11
|
Hi Craig, yacc was indeed pointing to bison and wasn't installed by itself. emerged dev-util/yacc and now pcmciautils builds fine. Thanks for the help! Chris On 5/24/06, Craig Hughes <cr...@gu...> wrote: > On my gentoo box, I have: > > craig@azazel ~ $ equery list --full-regex '(bison|yacc)' > [ Searching for package '(bison|yacc)' in all categories among: ] > * installed packages > [I--] [ ] dev-util/yacc-1.9.1-r2 (0) > [I--] [ ] sys-devel/bison-2.1 (0) > > > Both yacc and bison installed. /usr/bin/yacc is yacc itself, and not > bison. yacc -V for me just gives a yacc usage (ie it doesn't like -V > as a flag). > > From the bison(1) manpage: > "Input files should follow the yacc convention of ending in .y. > Unlike yacc, the generated files do not have fixed names, but instead > use the prefix of the input file." > > so that "mv" thing in the Makefile isn't needed I guess if you're > using bison instead of yacc (invoking it as yacc though). If you > invoke bison with the "-y" flag, it'll behave like yacc though (fixed > output filename). On my gentoo bison install, it seems to have > installed a /usr/bin/yacc.bison: > > craig@azazel ~ $ cat /usr/bin/yacc.bison > #! /bin/sh > exec /usr/bin/bison -y "$@" > > > C > > On May 24, 2006, at 5:08 PM, Chris Dollar wrote: > > > Hi Craig, > > > > Here's the output: > > chris@gentoo ~ $ yacc -V > > bison (GNU Bison) 2.1 > > Written by Robert Corbett and Richard Stallman. > > > > Copyright (C) 2005 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. > > chris@gentoo ~ $ ls -lrt > > ~/gumstix/gumstix-buildroot/build_arm_nofpu/pcmciautils-013/src > > total 92 > > -rw-r--r-- 1 chris users 2861 Mar 26 03:56 yacc_config.y > > -rw-r--r-- 1 chris users 1109 Mar 26 03:56 startup.h > > -rw-r--r-- 1 chris users 5085 Mar 26 03:56 startup.c > > -rw-r--r-- 1 chris users 6845 Mar 26 03:56 read-cis.c > > -rw-r--r-- 1 chris users 4558 Mar 26 03:56 pcmcia-check-broken-cis.c > > -rw-r--r-- 1 chris users 17285 Mar 26 03:56 pccardctl.c > > -rw-r--r-- 1 chris users 4601 Mar 26 03:56 lex_config.l > > -rw-r--r-- 1 chris users 16210 Mar 26 03:56 cistpl.h > > -rw-r--r-- 1 chris users 12856 May 24 08:26 pccardctl.o > > > > My build host machine is a gentoo box running a 2.6.16 kernel and > > gcc-3.4.5 (also have a profile for gcc-3.3.6). > > > > Thanks for the help! > > Chris > > > > On 5/24/06, Craig Hughes <cr...@gu...> wrote: > >> what version of yacc/bison do you have on the build machine. Looks > >> like it's failing to produce a y.tab.c file (silently failing). Is > >> it producing a file with a different default name maybe? > >> > >> ls -lrt /home/chris/gumstix/gumstix-buildroot/pcmciautils-013/src > >> > >> Should be something yacc spat out near the bottom of the listing... > >> > >> C > >> > >> On May 24, 2006, at 8:28 AM, Chris Dollar wrote: > >> > >> > I am having issues with the buildroot compiling pcmciautils. Did a > >> > clean checkout and build and still got the error. I did a checkout > >> > and build on a different machine and it worked fine, so my guess is > >> > that it has something to do with my build machine?? Here is the > >> error: > >> > > >> > Applying pcmciautils-include-dir.patch using plaintext: > >> > patching file Makefile > >> > Hunk #1 succeeded at 143 (offset 2 lines). > >> > touch /home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > pcmciautils-013/Makefile > >> > make -j3 -C /home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > pcmciautils-013 > >> > V=3Dtrue SYMLINK=3D"ln -sf" > >> > CROSS=3D"/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > staging_dir/bin/arm-linux-uclibc-" > >> > DESTDIR=3D"/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> root" > >> > STARTUP=3D"false" UDEV=3D"true" all > >> > make[1]: Entering directory > >> > `/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > pcmciautils-013' > >> > Building ccdv > >> > /home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/staging_dir/ > >> > bin/arm-linux-uclibc-gcc > >> > -pipe -DPCMCIAUTILS_VERSION=3D\"013\" > >> > -I/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > pcmciautils-013/src > >> > -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare > >> > -Wdeclaration-after-statement -Wshadow > >> > -I/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > pcmciautils-013/../staging_dir/include > >> > -I/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> staging_dir/ > >> > lib/gcc/arm-linux-uclibc/3.4.5/include > >> > -Os -fomit-frame-pointer -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[1]: *** [src/yacc_config.h] Error 1 > >> > make[1]: *** Waiting for unfinished jobs.... > >> > make[1]: Leaving directory > >> > `/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > pcmciautils-013' > >> > make: *** [/home/chris/gumstix/gumstix-buildroot/build_arm_nofpu/ > >> > root/etc/udev/rules.d/60-pcmcia.rules] > >> > Error 2 > >> > > >> > Any ideas on this? > >> > > >> > Thanks, > >> > Chris > >> > > >> > > >> > ------------------------------------------------------- > >> > All the advantages of Linux Managed Hosting--Without the Cost and > >> > Risk! > >> > Fully trained technicians. The highest number of Red Hat > >> > certifications in > >> > the hosting industry. Fanatical Support. Click to learn more > >> > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=107521&bid$8729&dat=12= 1642 > >> > _______________________________________________ > >> > gumstix-users mailing list > >> > gum...@li... > >> > https://lists.sourceforge.net/lists/listinfo/gumstix-users > >> > >> > >> > >> ------------------------------------------------------- > >> All the advantages of Linux Managed Hosting--Without the Cost and > >> Risk! > >> Fully trained technicians. The highest number of Red Hat > >> certifications in > >> the hosting industry. Fanatical Support. Click to learn more > >> http://sel.as-us.falkag.net/sel?cmdlnk&kid=107521&bid$8729&dat=121642 > >> _______________________________________________ > >> gumstix-users mailing list > >> gum...@li... > >> https://lists.sourceforge.net/lists/listinfo/gumstix-users > >> > > > > > > ------------------------------------------------------- > > All the advantages of Linux Managed Hosting--Without the Cost and > > Risk! > > Fully trained technicians. The highest number of Red Hat > > certifications in > > the hosting industry. Fanatical Support. Click to learn more > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=107521&bid$8729&dat=12164= 2 > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications i= n > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmdlnk&kid=107521&bid$8729&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |