Re: YACC y.tab.c Usage: /usr/bin/yacc [options] filename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Glad I could help, and that this got fio going for you, and it's ok as
a temporary fix, but really, it should just work without having to
mess around with such things, so I still have some work to do to
figure out how to make that happen.

-- steve


On Mon, Oct 6, 2014 at 5:28 PM, Neto, Antonio Jose Rodrigues
<Antonio.Jose.Rodrigues.Neto@xxxxxxxxxx> wrote:
>
>
> On 10/6/14, 6:25 PM, "Stephen Cameron" <stephenmcameron@xxxxxxxxx> wrote:
>
>>On Mon, Oct 6, 2014 at 5:10 PM, Neto, Antonio Jose Rodrigues
>><Antonio.Jose.Rodrigues.Neto@xxxxxxxxxx> wrote:
>>>
>>>
>>[...]
>>>
>>> gcc -o lex.yy.o -std=gnu99 -Wwrite-strings -Wall
>>> -Wdeclaration-after-statement -O3 -g -ffast-math  -D_GNU_SOURCE -include
>>> config-host.h -DBITS_PER_LONG=64 -DFIO_VERSION='"fio-2.1.13-26-gb220c"'
>>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFIO_INTERNAL
>>> -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG -c lex.yy.c
>>> exp/expression-parser.l:23:19: error: y.tab.h: No such file or directory
>>> exp/expression-parser.l: In function Œyylex¹:
>>> exp/expression-parser.l:51: error: Œyylval¹ undeclared (first use in
>>>this
>>> function)
>>> exp/expression-parser.l:51: error: (Each undeclared identifier is
>>>reported
>>> only once
>>> exp/expression-parser.l:51: error: for each function it appears in.)
>>> exp/expression-parser.l:52: error: ŒSUFFIX¹ undeclared (first use in
>>>this
>>> function)
>>> exp/expression-parser.l:122: error: ŒNUMBER¹ undeclared (first use in
>>>this
>>> function)
>>> make: *** [lex.yy.o] Error 1
>>>
>>>
>>
>>Ok, hmm.
>>
>>Try making the following change to the Makefile:
>>
>>--- a/Makefile
>>+++ b/Makefile
>>@@ -277,7 +277,7 @@ y.tab.o: y.tab.c y.tab.h
>>        $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $<
>>
>> y.tab.c: exp/expression-parser.y
>>-       $(QUIET_YACC)$(YACC) --no-lines -d exp/expression-parser.y
>>+       $(QUIET_YACC)$(YACC) --no-lines -d -b y exp/expression-parser.y
>>
>> y.tab.h: y.tab.c
>>
>>(I cut and pasted the above, so it is probably not a well formatted
>>patch anymore).
>>
>>That is, add " -b y " into the line for yacc.  bison by default
>>doesn't produce y.tab.c y.tab.h, it produces from xxx.y -> xxx.tab.c
>>and xxx.tab.h, which makes more sense than what yacc does, but it's
>>not what the makefile is expecting.  The "-b y" tells bison to use "y"
>>as the output file prefix, just as yacc normally does.
>>
>>then "make clean" and "make YACC=bison" and see if that works.
>>
>>-- steve
>
>
> Steve,
>
> This is neto from Brazil
>
> How are you?
>
> Thank you VERY MUCH. It worked.
>
>   LINK fio
>     CC t/stest.o
>     CC t/log.o
>     CC t/debug.o
>   LINK t/stest
>     CC t/ieee754.o
>   LINK t/ieee754
>     CC t/genzipf.o
>   LINK t/genzipf
>     CC t/axmap.o
>   LINK t/axmap
>     CC t/lfsr-test.o
>   LINK t/lfsr-test
>     CC t/btrace2fio.o
>   LINK t/btrace2fio
>     CC t/dedupe.o
>   LINK t/dedupe
>
>
>
> All the best,
>
> neto
>
--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux