Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.10 cffi build fails #2799

Closed
RobertFlatt opened this issue May 26, 2023 · 0 comments · Fixed by #2800
Closed

Python 3.10 cffi build fails #2799

RobertFlatt opened this issue May 26, 2023 · 0 comments · Fixed by #2800

Comments

@RobertFlatt
Copy link
Contributor

Checklist

  • [ x] the issue is indeed a bug and not a support request
  • [ x] issue doesn't already exist: https://github.com/kivy/python-for-android/issues
  • [ x] I have a short, runnable example that reproduces the issue
  • [x ] I reproduced the problem with the latest development version (p4a.branch = develop)
  • [ x] I used the grave accent (aka backticks) to format code or logs when appropriated

Versions

  • Python: 2.10.6 (OS)
  • OS: Ubuntu 22.04.2
  • Kivy: 2.2.0
  • Cython: 0.29.33
  • OpenJDK:

Description

p4a v2023.5.21 build of cffi fails

buildozer.spec

Spec file:

requirements = python3,kivy, cffi

Logs

/home/bobf/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/bobf/ex/hello/.buildozer/android/platform/build-arm64-v8a/build/other_builds/libffi/arm64-v8a__ndk_target_21/libffi/include -I/home/bobf/ex/hello/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/home/bobf/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/bobf/ex/hello/.buildozer/android/platform/build-arm64-v8a/build/python-installs/apptest/arm64-v8a/include/python3.1 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/home/bobf/ex/hello/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/bobf/ex/hello/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.10/c/_cffi_backend.o
c/_cffi_backend.c:407:23: error: expression is not assignable
        Py_REFCNT(ct) = 43;
        ~~~~~~~~~~~~~ ^
c/_cffi_backend.c:410:23: error: expression is not assignable
        Py_REFCNT(ct) = 0;
        ~~~~~~~~~~~~~ ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant