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

/usr/include/bits/floatn.h:75:1: error: unknown machine mode '__TC__' #995

Closed
bhaskar-c opened this issue Nov 15, 2019 · 1 comment
Closed

Comments

@bhaskar-c
Copy link

Summary of errors:

/usr/include/bits/floatn.h:75:1: error: unknown machine mode '__TC__'
/usr/include/bits/floatn.h:87:9: error: unknown type name '__float128'

Versions

  • Python: 3.6.5
  • OS: Linux Mint 19 Tara
  • Buildozer: 0.40.dev0
  • gcc toolchain 4.9

Description

Trying to build a kivy app for Android. The app uses pygame.
I have installed all the requirements of pygame mentioned at:
https://www.pygame.org/wiki/CompileUbuntu?parent=

buildozer.spec

Command:

buildozer android debug

Spec file:

[app]
title = Flow
package.name = flow.humtools.com
package.domain = humtools.com
source.dir = ./src
version = 0.1
requirements = python3.6.5,kivy
requirements.source.python3 = /home/me/Documents/Python/venv/bin/python
requirements.source.kivy = /home/me/Documents/Python/venv/lib/python3.6/site-packages/kivy/
icon.filename = /home/me/Desktop/HCXDOCS/icon.png
orientation = landscape
fullscreen = 0
android.presplash_color = magenta
android.api = 27
android.minapi = 21
android.ndk = 17c
android.ndk_api = 21
android.private_storage = True
android.ndk_path = /home/me/Documents/Android/Ndk/android-ndk-r17c/
android.sdk_path = /home/me/Documents/Android/Sdk/
#android.ant_path =
android.skip_update = True
android.accept_sdk_license = True
android.ouya.category = GAME
android.arch = armeabi-v7a
[buildozer]
log_level = 2
warn_on_root = 1

Logs

    arm-linux-androideabi-gcc -DANDROID -fomit-frame-pointer -D__ANDROID_API__=21 -mandroid -isystem /home/me/Documents/Android/Ndk/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/me/Documents/Android/Ndk/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/me/Documents/Android/Ndk/android-ndk-r17c/sysroot -I/home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/flow.humtools.com/include/python3.7 -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -D__ANDROID_API__=21 -mandroid -isystem /home/me/Documents/Android/Ndk/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/me/Documents/Android/Ndk/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/me/Documents/Android/Ndk/android-ndk-r17c/sysroot -I/home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/flow.humtools.com/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include -fPIC -D_REENTRANT -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/include/SDL -I/usr/include/SDL -I/usr/include -I/usr/include -I/usr/include/python3.6m -I/home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/venv/include/python3.6m -c src_c/imageext.c -o build/temp.linux-x86_64-3.6/src_c/imageext.o
    In file included from /usr/include/stdlib.h:55:0,
                     from /home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/Python.h:34,
                     from src_c/_pygame.h:85,
                     from src_c/pygame.h:32,
                     from src_c/imageext.c:29:
    /usr/include/bits/floatn.h:75:1: error: unknown machine mode '__TC__'
     typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
     ^
    /usr/include/bits/floatn.h:87:9: error: unknown type name '__float128'
     typedef __float128 _Float128;
             ^
    In file included from /home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/pythread.h:114:0,
                     from /home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/pystate.h:11,
                     from /home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/traceback.h:8,
                     from /home/me/Desktop/flow/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/Python.h:100,
                     from src_c/_pygame.h:85,
                     from src_c/pygame.h:32,
                     from src_c/imageext.c:29:
    /usr/include/pthread.h:682:6: warning: '__regparm__' attribute directive ignored [-Wattributes]
          __cleanup_fct_attribute;
          ^
    /usr/include/pthread.h:694:3: warning: '__regparm__' attribute directive ignored [-Wattributes]
       __cleanup_fct_attribute;
       ^
    /usr/include/pthread.h:717:6: warning: '__regparm__' attribute directive ignored [-Wattributes]
          __cleanup_fct_attribute;
          ^
    /usr/include/pthread.h:730:3: warning: '__regparm__' attribute directive ignored [-Wattributes]
       __cleanup_fct_attribute;
       ^
    /usr/include/pthread.h:739:6: warning: '__regparm__' attribute directive ignored [-Wattributes]
          ;
          ^
    In file included from src_c/imageext.c:52:0:
    /usr/include/jpeglib.h:29:72: fatal error: jconfig.h: No such file or directory
     #include "jconfig.h"            /* widely used configuration options */
                                                                            ^
    compilation terminated.
    ---
    For help with compilation see:
        https://www.pygame.org/wiki/Compilation
    To contribute to pygame development see:
        https://www.pygame.org/contribute.html
    ---
    error: command 'arm-linux-androideabi-gcc' failed with exit status 1
    Running setup.py install for pygame ... error

@AndreMiras
Copy link
Member

Please provide full build log, this is way too truncated for us to debug. Also your buildozer.spec file seems incomplete.
Last pygame recipe recently got an update, so try again on p4a.branch = develop.
Feel free to re-open with requested info

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

2 participants