[Barrelfish-users] Compile error in lib/octopus/parser/parser.c

Gerd Zellweger zgerd at student.ethz.ch
Thu Jul 5 10:40:34 CEST 2012


Hi Kornilios,

You are correct. I'm currently trying to figure out why - for some people - hake actually tries to invoke yacc even tough I never intended this to happen. I cannot reproduce it on my Ubuntu machine so I'm planning to do a quick test with a gentoo stable setup that Georgios reported he was using. I'll keep you posted on my progress.

@Patrick: As Kornilios mentioned, the parse.c file is generated by bison so fixing this file does not make a lot of sense. However, I declared yyerror wrong in parse.y and will fix the declaration there. Thanks for pointing this out.

Gerd

Kornilios Kourtis <kornilios.kourtis at inf.ethz.ch> wrote:

>Hi Patrik,
>
>On Wed, Jul 04, 2012 at 03:48:46PM +0000, Patrik Eklöf wrote:
>> It seems there was a compile error in parser.c due to someone using bad
>> coding practices of passing a string literal to a function expecting a
>> char* (which really was expecting a string literal, though).  In case
>> this error hasn't been fixed yet, I made a patch to fix the error.
>
>The parser.c file is automatically generated by bison (yacc), which is why
>lib/octopus/Hakefile silences some warnings for this particular file.
>Based on one of your previous mails, I'm guessing that you generated
>a new parse.c file.
>
>You can check this using:
> hg diff ./lib/octopus/parser/parse.c
>
>I think the real bug was the one in your previous mail about the yacc
>error. I can't figure out why make decided to regenerate the file and I
>can't reproduce it here. Maybe it was some kind of implicit make rule
>invocation.
>
>cheers,
>Kornilios.
>
>-- 
>Kornilios Kourtis
>
>_______________________________________________
>Barrelfish-users mailing list
>Barrelfish-users at lists.inf.ethz.ch
>https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users


More information about the Barrelfish-users mailing list