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

Fails to build on recipe for ios/src/ios.pyx #948

Open
hemna opened this issue Nov 24, 2024 · 3 comments
Open

Fails to build on recipe for ios/src/ios.pyx #948

hemna opened this issue Nov 24, 2024 · 3 comments

Comments

@hemna
Copy link

hemna commented Nov 24, 2024

Trying to build from master kivy-ios on macos x 15.1.1 with cython 3.0.11

buildozer -v ios debug

eventually results in this failure.

[INFO    ] Cythonize ios.pyx
[INFO    ] Running Shell: /Users/I530566/devel/mine/hamradio/kivy/AprsChat/.venv/bin/python ('/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/kivy_ios/tools/cythonize.py', 'ios.pyx') {'_iter': True, '_out_bufsize': 1, '_err_to_out': True}
[DEBUG   ] -- cythonize ['/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/kivy_ios/tools/cythonize.py', 'ios.pyx']
[DEBUG   ] cythonize: ios.pyx
[DEBUG   ] /Users/I530566/devel/mine/hamradio/kivy/AprsChat/.venv/lib/python3.12/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/build/ios/iphoneos-arm64/src/ios.pyx
[DEBUG   ]   tree = Parsing.p_module(s, pxd, full_module_name)
[DEBUG   ]
[DEBUG   ] Error compiling Cython file:
[DEBUG   ] ------------------------------------------------------------
[DEBUG   ] ...
[DEBUG   ]
[DEBUG   ]
[DEBUG   ]     Py_INCREF(callback)
[DEBUG   ]
[DEBUG   ]     ret = ios_send_email(j_subject, j_text, j_mimetype, j_filename,
[DEBUG   ]             j_filename_alias, _send_email_done, <void *>callback)
[DEBUG   ]                               ^
[DEBUG   ] ------------------------------------------------------------
[DEBUG   ]
[DEBUG   ] ios.pyx:195:30: Cannot assign type 'void (char *, void *) except *' to 'ios_send_email_cb' (alias of 'void (*)(char *, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of '_send_email_done'.
[DEBUG   ] no need to rewrite ios.pyx
[INFO    ] Running Shell: /Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/hostpython3/bin/python ('setup.py', 'build_ext', '-g') {'_env': {'CC': '/var/folders/ly/nghswfcj397gj52vdsczbg580000gn/T/tmpst406p_j', 'CXX': '/var/folders/ly/nghswfcj397gj52vdsczbg580000gn/T/tmpzxehao7o', 'AR': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar', 'LD': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld', 'OTHER_CFLAGS': '-I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/freetype -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/ffi -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/libjpeg -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/openssl -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64', 'OTHER_LDFLAGS': '-L/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/lib/iphoneos', 'CFLAGS': '-O3 -miphoneos-version-min=9.0 -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/freetype -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/ffi -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/libjpeg -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/openssl -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64', 'LDFLAGS': '-arch arm64 -L/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk/usr/lib -miphoneos-version-min=9.0', 'KIVYIOSROOT': '/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/kivy_ios', 'IOSSDKROOT': '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk', 'CUSTOMIZED_OSX_COMPILER': 'True', 'LDSHARED': '/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/kivy_ios/tools/liblink', 'ARM_LD': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld', 'PLATFORM_SDK': 'iphoneos', 'ARCH': 'arm64'}, '_iter': True, '_out_bufsize': 1, '_err_to_out': True}
[DEBUG   ] running build_ext
[DEBUG   ] building 'ios' extension
[DEBUG   ] creating build
[DEBUG   ] creating build/temp.macosx-15.1-arm64-cpython-311
[DEBUG   ] /var/folders/ly/nghswfcj397gj52vdsczbg580000gn/T/tmpst406p_j -O3 -miphoneos-version-min=9.0 -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/freetype -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/ffi -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/libjpeg -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64/openssl -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/include/iphoneos-arm64 -g -I/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/ios/platform/kivy-ios/dist/hostpython3/include/python3.11 -c ios.c -o build/temp.macosx-15.1-arm64-cpython-311/ios.o
[DEBUG   ] clang: error: no such file or directory: 'ios.c'
[DEBUG   ] clang: error: no input files
@hemna
Copy link
Author

hemna commented Nov 24, 2024

Also tried running against the kivy-ios renovate/cython-3.x branch. same issue.

@hemna
Copy link
Author

hemna commented Dec 3, 2024

I have also tried installing an old version of macOS, 14.6.1 and an older version of Xcode 15.4, using the main kivy-ios branch
with cython==3.0.0.

Same exact failure. How do you make this work?

@hemna
Copy link
Author

hemna commented Dec 5, 2024

you can't use cython==3.0.0 even though the documentation says so.

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

No branches or pull requests

1 participant