Skip to content

Cannot build in Ubuntu with gcc-7 and gcc-8 #188

Open
@arquicanedo

Description

@arquicanedo

Hi, I'm trying to compile the gcc-python-plugin. I tried with both gcc-7 and gcc-8. I'm using Python 3.8 and building with

make PYTHON=python3.8 PYTHON_CONFIG=python3.8-config

The first problem is related to this error:

gcc-python-wrapper.c:188:1: error: converting to non-pointer type ‘long int’ from NULL [-Werror=conversion-null]
 };
 ^
cc1plus: all warnings being treated as errors
make: *** [Makefile:168: gcc-python-wrapper.o] Error 1

I thought a workaround is to replace -Werror with -Wno-error in the Makefile.

This generates the python.so but fails in the demo as follows

cc1: error: cannot load plugin /home/canedo/MINDSIGHT/gcc-python-plugin/python.so
   /home/canedo/gcc-python-plugin/python.so: undefined symbol: PyExc_NotImplementedError
make[1]: *** [Makefile:303: demo] Error 1

Any hints would be highly appreciated. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions