metacall / core

MetaCall: The ultimate polyglot programming experience.

Home Page:https://metacall.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to compile Metacall with the Python loader because of conflicting types

devraymondsh opened this issue Β· comments

πŸ› Bug Report

Compilation failure for the Python loader

Expected Behavior

To compile

Current Behavior

Doesn't compile, throws error about conflicting types

Steps to Reproduce

Just compile with the Python loader option turned on

logs.txt

You are compiling with Python 2, or for some reason it is finding Python 2 headers / lib instead of Python 3. This is not a code bug, you are configuring it wrong. For more info about proper configuration, check out the CI workflows if needed or open a new issue with more information about how you are setting up the dependencies and CMake.

You can see it here:

In file included from /usr/include/python2.7/Python.h:97,
                 from /root/metacall-polyglot/core/source/loaders/py_loader/include/py_loader/py_loader_impl.h:30,
                 from /root/metacall-polyglot/core/source/loaders/py_loader/source/py_loader_impl.c:21:
/usr/include/python2.7/stringobject.h:174:21: note: expected 'char **' but argument is of type 'const char **'