Skip to content

Failing to compile 'covered' sources #7

@jogindersingh

Description

@jogindersingh

Hi, I have cloned the git repo covered.git and am trying to build the tool. The make is failing with multiple compile errors. I'm able to fix few but it seems there are many. Am I missing something?
--- log from make -----
gen_parser.c: In function ‘GENparse’:
gen_parser.c:69:25: error: implicit declaration of function ‘GENlex’ [-Wimplicit-function-declaration]
69 | #define yylex GENlex
| ^~~~~~
gen_parser.c:4313:16: note: in expansion of macro ‘yylex’
4313 | yychar = yylex ();
| ^~~~~
In file included from ./gen_parser.y:40:
./gen_parser.y:2335:66: error: passing argument 1 of ‘generator_event_comb_cov’ makes pointer from integer without a cast [-Wint-conversion]
2335 | generator_event_comb_cov( @1.ppfline, @1.first_column, TRUE ),
| ~~~~~~~~~~~^~~~~~~~
| |
| unsigned int
generator.new.h:48:74: note: in definition of macro ‘generator_build’
48 | #define generator_build(x, ...) generator_build1( FILE, LINE, x, VA_ARGS )
| ^~~~~~~~~~~
generator.new.h:172:15: note: expected ‘expression *’ {aka ‘struct expression_s ’} but argument is of type ‘unsigned int’
172 | expression
exp,
| ~~~~~~~~~~~~^~~
./gen_parser.y:2335:87: error: passing argument 2 of ‘generator_event_comb_cov’ makes pointer from integer without a cast [-Wint-conversion]
2335 | generator_event_comb_cov( @1.ppfline, @1.first_column, TRUE ),
| ~~~~~~~~~~~^~~~
| |
| unsigned int
generator.new.h:48:74: note: in definition of macro ‘generator_build’
48 | #define generator_build(x, ...) generator_build1( FILE, LINE, x, VA_ARGS )
| ^~~~~~~~~~~
generator.new.h:173:15: note: expected ‘func_unit *’ {aka ‘struct func_unit_s ’} but argument is of type ‘unsigned int’
173 | func_unit
funit,
| ~~~~~~~~~~~~^~~~~
make[2]: *** [Makefile:497: gen_parser.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions