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

Numpy recipes build fail #1040

Closed
martirius opened this issue Apr 30, 2017 · 2 comments
Closed

Numpy recipes build fail #1040

martirius opened this issue Apr 30, 2017 · 2 comments
Milestone

Comments

@martirius
Copy link

martirius commented Apr 30, 2017

I'm trying to build an application that requires numpy and opencv, the building goes ok until he fails to build the numpy recipes.
I've already read other solutionss to this problem but none of them worked for me...

Here the log

> 
 #Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy,numpy,opencv,hostpython2 --arch armeabi-v7a --copy-libs --local-recipes /media/kivy/disk2/python-for-android/pythonforandroid/recipes --color=always --storage-dir=/media/kivy/disk2/KivyProject/.buildozer/android/platform/build'
# Cwd /media/kivy/disk2/python-for-android/
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (19, 21, 25)
[INFO]:    Requested API target 21 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[INFO]:    Using Google NDK r9c
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Bootstrap requires recipes ['sdl2', ('python2', 'python3crystax')]
[INFO]:    Loaded recipe opencv (depends on ['numpy'])
[INFO]:    Loaded recipe kivy (depends on ['pyjnius', ('sdl2', 'pygame'), ('python2', 'python3crystax')])
[INFO]:    Loaded recipe sdl2 (depends on [('python2', 'python3crystax'), 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf'], conflicts ['sdl', 'pygame', 'pygame_bootstrap_components'])
[INFO]:    Loaded recipe numpy (depends on ['python2'])
[INFO]:    Loaded recipe hostpython2 (depends on [], conflicts ['hostpython3'])
[INFO]:    Loaded recipe pyjnius (depends on ['six', ('sdl2', 'sdl', 'genericndkbuild'), ('python2', 'python3crystax')])
[INFO]:    Loaded recipe sdl2_image (depends on [])
[INFO]:    Loaded recipe sdl2_mixer (depends on [])
[INFO]:    Loaded recipe sdl2_ttf (depends on [])
[INFO]:    Loaded recipe python2 (depends on ['hostpython2'], conflicts ['python3crystax', 'python3'])
[INFO]:    Loaded recipe six (depends on [('python2', 'python3crystax')])
[INFO]:    Found a single valid recipe set (this is good)
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name myapp and recipes (kivy, numpy, opencv, hostpython2)
[INFO]:    -> running cp -r /media/kivy/disk2/python-for-android/pytho...(and 133 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Recipe build order is [u'hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'numpy', 'sdl2', 'six', u'opencv', 'pyjnius', u'kivy']
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython2
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 45 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/hostpython2
[INFO]:    -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
[INFO]:    hostpython2 download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 44 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ima...(and 34 more)
[INFO]:    sdl2_image download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 44 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mix...(and 34 more)
[INFO]:    sdl2_mixer download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 42 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/...(and 30 more)
[INFO]:    sdl2_ttf download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading python2
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 41 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/python2
[INFO]:    -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
                                                                                                 [INFO]:    python2 download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading numpy
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 39 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/numpy
[INFO]:    -> running basename http://pypi.python.org/packages/source/n...(and 25 more)
[INFO]:    numpy download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 38 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 37 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/source/...(and 22 more)
[INFO]:    six download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading opencv
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 40 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/opencv
[INFO]:    -> running basename https://github.com/Itseez/opencv/archive/2.4.10.1.zip
[INFO]:    opencv download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 41 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/master.zip
                                                                                                [INFO]:    pyjnius download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /media/kivy/disk2/KivyProject/.buildoze...(and 38 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/master.zip
[INFO]:    kivy download already cached, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython2 for armeabi-v7a
[INFO]:    -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop
[INFO]:    hostpython2 is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ima...(and 34 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mix...(and 34 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/...(and 30 more)
                                                                                               [INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking python2 for armeabi-v7a
[INFO]:    -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a
[INFO]:    python2 is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking numpy for armeabi-v7a
[INFO]:    -> running basename http://pypi.python.org/packages/source/n...(and 25 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a
[INFO]:    numpy is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/...(and 22 more)
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking opencv for armeabi-v7a
[INFO]:    -> running basename https://github.com/Itseez/opencv/archive/2.4.10.1.zip
                                                                                              [INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/opencv/armeabi-v7a
[INFO]:    opencv is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/master.zip
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/master.zip
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/kivy-python2-sdl2/armeabi-v7a
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython2 for armeabi-v7a
[INFO]:    -> running cp /media/kivy/disk2/python-for-android/pythonfo...(and 163 more)
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    sdl2_image already patched, skipping
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    sdl2_mixer already patched, skipping
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python2 for armeabi-v7a
[INFO]:    python2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python2[armeabi-v7a]
[INFO]:    python2 already patched, skipping
[INFO]:    Prebuilding numpy for armeabi-v7a
[INFO]:    numpy has no prebuild_armeabi_v7a, skipping
[WARNING]: Numpy is built assuming the archiver name is arm-linux-androideabi-ar, which may not always be true!
[INFO]:    Applying patches for numpy[armeabi-v7a]
[INFO]:    numpy already patched, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2[armeabi-v7a]
[INFO]:    sdl2 already patched, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding opencv for armeabi-v7a
[INFO]:    Applying patches for opencv[armeabi-v7a]
[INFO]:    opencv already patched, skipping
[INFO]:    Applying patches for opencv[armeabi-v7a]
[INFO]:    opencv already patched, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    pyjnius already patched, skipping
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython2 for armeabi-v7a
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2
[INFO]:    hostpython already exists, skipping build
[INFO]:    <- directory context /media/kivy/disk2/python-for-android
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python2 for armeabi-v7a
[INFO]:    Copying hostpython binary to targetpython folder
[INFO]:    -> running cp /media/kivy/disk2/KivyProject/.buildozer/andr...(and 188 more)
[INFO]:    Building numpy for armeabi-v7a
[INFO]:    numpy apparently isn't already in site-packages
[INFO]:    Building compiled components in numpy
[INFO]:    -> directory context /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy
[INFO]:    -> running python.host setup.py build_ext -v
           working:     out = check_types(*a, **kw)                              Exception in thread background thread for pid 19482:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1540, in wrap
    fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2455, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2153, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/bin/python.host setup.py build_ext -v

  STDOUT:
Running from numpy source directory.
/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
non-existing path in 'numpy/distutils': 'site.cfg'
non-existing path in 'numpy/f2py': 'docs'
non-existing path in 'numpy/f2py': 'f2py.1'
/bin/sh: 1: svnversion: not found
F2PY Version 2
blas_opt_info:
blas_mkl_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

openblas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_blas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1604: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1613: UserWarning: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  warnings.warn(BlasNotFoundError.__doc__)
blas_src_info:
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1616: UserWarning: 
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  warnings.warn(BlasSrcNotFoundError.__doc__)
  NOT AVAILABLE

/bin/sh: 1: svnversion: not found
non-existing path in 'numpy/lib': 'benchmarks'
lapack_opt_info:
openblas_lapack_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

lapack_mkl_info:
mkl_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

  NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_3_10_threads_info
  NOT AVAILABLE

atlas_3_10_info:
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_3_10_info
  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1506: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1517: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  warnings.warn(LapackNotFoundError.__doc__)
lapack_src_info:
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1520: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  warnings.warn(LapackSrcNotFoundError.__doc__)
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
running build_ext
running build_src
build_src
building py_modules sources
building library "npymath" sources
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Found executable /media/kivy/disk2/android_ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld
Found executable /media/kivy/disk2/android_ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ar
Found executable /media/kivy/disk2/android_ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ranlib
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function 'exp'
 int exp (void);
     ^
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm _configtest.o -o _configtest
_configtest.c:6: error: undefined reference to 'exp'
collect2: error: ld returned 1 exit status
_configtest.c:6: error: undefined reference to 'exp'
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function 'exp'
 int exp (void);
     ^
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm _configtest.o -lm -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building library "npysort" sources
  adding 'build/src.linux-x86_64-2.7/numpy/core/src/private' to include_dirs.
None - nothing done with h_files = ['build/src.linux-x86_64-2.7/numpy/core/src/private/npy_partition.h', 'build/src.linux-x86_64-2.7/numpy/core/src/private/npy_binsearch.h']
building extension "numpy.core._dummy" sources
Generating build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
In file included from /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/Python.h:58:0,
                 from _configtest.c:1:
/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  ^
In file included from /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/Python.h:58:0,
                 from _configtest.c:1:
/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  ^
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "setup.py", line 251, in <module>
    setup_package()
  File "setup.py", line 243, in setup_package
    setup(**metadata)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_ext.py", line 59, in run
    self.run_command('build_src')
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 153, in run
    self.build_sources()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 170, in build_sources
    self.build_extension_sources(ext)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 329, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 386, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 432, in generate_config_h
    moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
  File "numpy/core/setup.py", line 42, in check_types
    out = check_types(*a, **kw)
  File "numpy/core/setup.py", line 293, in check_types
    "Cannot compile 'Python.h'. Perhaps you need to "\
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.


  STDERR:


Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/media/kivy/disk2/python-for-android/pythonforandroid/toolchain.py", line 905, in <module>
    main()
  File "/media/kivy/disk2/python-for-android/pythonforandroid/toolchain.py", line 902, in main
    ToolchainCL()
  File "/media/kivy/disk2/python-for-android/pythonforandroid/toolchain.py", line 508, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/media/kivy/disk2/python-for-android/pythonforandroid/toolchain.py", line 147, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/media/kivy/disk2/python-for-android/pythonforandroid/toolchain.py", line 190, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "pythonforandroid/build.py", line 565, in build_recipes
  File "pythonforandroid/recipe.py", line 890, in build_arch
  File "pythonforandroid/recipe.py", line 902, in build_compiled_components
  File "pythonforandroid/logger.py", line 175, in shprint
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 863, in next
    self.wait()
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/bin/python.host setup.py build_ext -v

  STDOUT:
Running from numpy source directory.
/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
non-existing path in 'numpy/distutils': 'site.cfg'
non-existing path in 'numpy/f2py': 'docs'
non-existing path in 'numpy/f2py': 'f2py.1'
/bin/sh: 1: svnversion: not found
F2PY Version 2
blas_opt_info:
blas_mkl_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

openblas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_blas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1604: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1613: UserWarning: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  warnings.warn(BlasNotFoundError.__doc__)
blas_src_info:
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1616: UserWarning: 
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  warnings.warn(BlasSrcNotFoundError.__doc__)
  NOT AVAILABLE

/bin/sh: 1: svnversion: not found
non-existing path in 'numpy/lib': 'benchmarks'
lapack_opt_info:
openblas_lapack_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

lapack_mkl_info:
mkl_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

  NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_3_10_threads_info
  NOT AVAILABLE

atlas_3_10_info:
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_3_10_info
  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries  not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries lapack_atlas not found in /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib
  libraries  not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries  not found in /usr/lib/atlas-base
  libraries  not found in /usr/lib
  libraries  not found in /usr/lib/x86_64-linux-gnu
  libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1506: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
  libraries  not found in ['/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1517: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  warnings.warn(LapackNotFoundError.__doc__)
lapack_src_info:
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/system_info.py:1520: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  warnings.warn(LapackSrcNotFoundError.__doc__)
  NOT AVAILABLE

/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
running build_ext
running build_src
build_src
building py_modules sources
building library "npymath" sources
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Found executable /media/kivy/disk2/android_ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld
Found executable /media/kivy/disk2/android_ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ar
Found executable /media/kivy/disk2/android_ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ranlib
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function 'exp'
 int exp (void);
     ^
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm _configtest.o -o _configtest
_configtest.c:6: error: undefined reference to 'exp'
collect2: error: ld returned 1 exit status
_configtest.c:6: error: undefined reference to 'exp'
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function 'exp'
 int exp (void);
     ^
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm _configtest.o -lm -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building library "npysort" sources
  adding 'build/src.linux-x86_64-2.7/numpy/core/src/private' to include_dirs.
None - nothing done with h_files = ['build/src.linux-x86_64-2.7/numpy/core/src/private/npy_partition.h', 'build/src.linux-x86_64-2.7/numpy/core/src/private/npy_binsearch.h']
building extension "numpy.core._dummy" sources
Generating build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h
C compiler: arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /media/kivy/disk2/android_ndk/android-ndk-r14b/platforms/android-21/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7 -c'
arm-linux-androideabi-gcc: _configtest.c
In file included from /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/Python.h:58:0,
                 from _configtest.c:1:
/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  ^
In file included from /media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/Python.h:58:0,
                 from _configtest.c:1:
/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  ^
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "setup.py", line 251, in <module>
    setup_package()
  File "setup.py", line 243, in setup_package
    setup(**metadata)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_ext.py", line 59, in run
    self.run_command('build_src')
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/python-installs/myapp/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 153, in run
    self.build_sources()
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 170, in build_sources
    self.build_extension_sources(ext)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 329, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "/media/kivy/disk2/KivyProject/.buildozer/android/platform/build/build/other_builds/numpy/armeabi-v7a/numpy/numpy/distutils/command/build_src.py", line 386, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 432, in generate_config_h
    moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
  File "numpy/core/setup.py", line 42, in check_types
    out = check_types(*a, **kw)
  File "numpy/core/setup.py", line 293, in check_types
    "Cannot compile 'Python.h'. Perhaps you need to "\
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy,numpy,opencv,hostpython2 --arch armeabi-v7a --copy-libs --local-recipes /media/kivy/disk2/python-for-android/pythonforandroid/recipes --color=always --storage-dir=/media/kivy/disk2/KivyProject/.buildozer/android/platform/build
 
 Buildozer failed to execute the last command
 The error might be hidden in the log above this error
 Please read the full log, and search for it before
 raising an issue with buildozer itself.
 In case of a bug report, please add a full log with log_level = 2




@inclement
Copy link
Member

inclement commented May 11, 2017

I don't get this error, but it seems I do get a different one, whereas I know it used to work. I'll try to look into it.

@inclement inclement added this to the 0.5 milestone May 11, 2017
@inclement inclement modified the milestones: 0.6, 0.5 Aug 26, 2017
@inclement
Copy link
Member

Closing in favour of #1074.

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