bcdev / jpy

A bi-directional Python-Java bridge used to embed Java in CPython or the other way round.
Apache License 2.0
187 stars 37 forks source link

Mac builds failing due to compiler error #195

Open pont-us opened 3 years ago

pont-us commented 3 years ago

AppVeyor Python 3.5 - 3.8 builds on Mac are currently failing, evidently due to the following:

src/main/c/jni/org_jpy_PyLib.c:331:9: error: implicit declaration of function 'JPy_free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        JPy_free();
        ^

In previous Mac builds it was:

src/main/c/jni/org_jpy_PyLib.c:331:9: error: implicit declaration of function 'JPy_free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        JPy_free();
        ^

Current Windows and Linux builds also give a warning rather than an error here. We should either disable the -Werror flag in the Mac build or fix the implicit declaration itself.

matusbakon commented 3 years ago

hi @pont-us, is there a workaround to successfully build on Mac till this issue is resolved? thanks for any hint

pont-us commented 3 years ago

Hi @matusbakon -- sorry, I don't know of any workaround. By the way, jpy development has now moved to https://github.com/jpy-consortium/jpy , though the issues have not yet been transferred to the new repository.