Skip to content

python runtime compiling failed #157

@Saibo-creator

Description

@Saibo-creator

Hello,
I got the following error while compiling python runtime from the source. It seems there is a function signature mimatch.

Error Reproduction

Go inside runtime/python/

python setup.py build

Error Message

pypgf.c:1740:77: error: too many arguments to function call, expected 6, have 7
                pgf_complete(self->concr, type, sentence, prefix, prefix_bind, parse_err, pyres->pool);
                ~~~~~~~~~~~~                                                              ^~~~~~~~~~~
/usr/local/include/pgf/pgf.h:253:1: note: 'pgf_complete' declared here
pgf_complete(PgfConcr* concr, PgfType* type, GuString string, 
^

Fix

Change line 1740 in pypgf.c
pgf_complete(self->concr, type, sentence, prefix, prefix_bind, parse_err, pyres->pool);

to
pgf_complete(self->concr, type, sentence, prefix, parse_err, pyres->pool);

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