packaging for android failed on buildozer using numpy.

423 views
Skip to first unread message

Shruti Chandra

unread,
Sep 30, 2015, 10:26:28 AM9/30/15
to Kivy users support
Hello,

Trying to make an kivy app using numpy with buildozer, but failed in android packaging. I searched on groups, could not find a solution so far.

Please help to fix this issue.

Full error log is given below:


# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-7-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool
# Install platform
# Apache ANT found at /home/shruti/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/shruti/.buildozer/android/platform/android-sdk-21
# Android NDK found at /home/shruti/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/shruti/Documents/src/ShapeCorrection/.buildozer/android/platform/pyt
hon-for-android
Available modules: android apsw audiostream bidi boost cherrypy c_igraph cprotob
uf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype
gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy l
eveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml
 m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl para
miko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygam
e pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six
sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope
# Application requirements already installed, pass
# Check garden requirements
# Garden requirements already installed, pass
# Compile platform
# Run './distribute.sh -l'
# Cwd /home/shruti/Documents/src/ShapeCorrection/.buildozer/android/platform/pyt
hon-for-android
Available modules: android apsw audiostream bidi boost cherrypy c_igraph cprotob
uf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype
gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy l
eveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml
 m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl para
miko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygam
e pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six
sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope
# Clean and build python-for-android
# Remove directory and subdirectory /home/shruti/Documents/src/ShapeCorrection/.
buildozer/android/platform/python-for-android/dist/shapecorrection
# Run './distribute.sh -m "numpy kivy" -d "shapecorrection"'
# Cwd /home/shruti/Documents/src/ShapeCorrection/.buildozer/android/platform/pyt
hon-for-android
Check build dependencies for Ubuntu
Check environment
SDK located at /home/shruti/.buildozer/android/platform/android-sdk-21
NDK located at /home/shruti/.buildozer/android/platform/android-ndk-r9c
NDK version is r9c
API level set to 14
Check NDK location
Check mandatory tools
Distribution will be located at /home/shruti/Documents/src/ShapeCorrection/.buil
dozer/android/platform/python-for-android/dist/shapecorrection
Entering in ARM environment
Compiler found at /home/shruti/.buildozer/android/platform/android-ndk-r9c/toolc
hains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi
-gcc
PATH is /home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-
linux-androideabi-4.8/prebuilt/linux-x86/bin/:/home/shruti/.buildozer/android/pl
atform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_6
4/bin/:/home/shruti/.buildozer/android/platform/android-ndk-r9c:/home/shruti/.bu
ildozer/android/platform/android-sdk-21/tools:/home/shruti/.buildozer/android/pl
atform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/s
bin:/bin
Leaving ARM environment
Read numpy recipe
Module numpy depend on python
Read kivy recipe
Module kivy depend on pygame pyjnius android
Read python recipe
Module python depend on hostpython
Read pygame recipe
Module pygame depend on python sdl
Read pyjnius recipe
Module pyjnius depend on python sdl
Read android recipe
Module android depend on pygame
Read hostpython recipe
Ignored python, already processed
Read sdl recipe
Module sdl depend on python
Ignored python, already processed
Ignored sdl, already processed
Ignored pygame, already processed
Ignored python, already processed
Modules changed to hostpython python numpy sdl pygame pyjnius android kivy
Pure-Python modules changed to
Run get packages
Download package for hostpython
Module hostpython already downloaded
Download package for python
Module python already downloaded
Download package for numpy
Module numpy already downloaded
Download package for sdl
No package for sdl
Download package for pygame
Module pygame already downloaded
Download package for pyjnius
Module pyjnius already downloaded
Download package for android
No package for android
Download package for kivy
Module kivy already downloaded
Run prebuild
Call prebuild_hostpython
Call prebuild_python
Call prebuild_numpy
Call prebuild_sdl
Call prebuild_pygame
Call prebuild_pyjnius
Call prebuild_android
Call prebuild_kivy
Run build
Skipped build_hostpython
Skipped build_python
Call build_numpy
Entering in ARM environment
Compiler found at /home/shruti/.buildozer/android/platform/android-ndk-r9c/toolc
hains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi
-gcc
Running from numpy source directory.
/home/shruti/Documents/src/ShapeCorrection/.buildozer/android/platform/python-fo
r-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning:
 Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/bin/sh: 1: svnversion: not found
non-existing path in 'numpy/distutils': 'site.cfg'
non-existing path in 'numpy/f2py': 'docs'
non-existing path in 'numpy/f2py': 'f2py.1'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in ['/home/shruti/Documents/src/ShapeCorrect
ion/.buildozer/android/platform/python-for-android/build/python-install/lib', '/
usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

openblas_info:
  libraries openblas not found in ['/home/shruti/Documents/src/ShapeCorrection/.
buildozer/android/platform/python-for-android/build/python-install/lib', '/usr/l
ocal/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries tatlas not found in ['/home/shruti/Documents/src/ShapeCorrection/.bu
ildozer/android/platform/python-for-android/build/python-install/lib', '/usr/loc
al/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_blas_info:
  libraries satlas not found in ['/home/shruti/Documents/src/ShapeCorrection/.bu
ildozer/android/platform/python-for-android/build/python-install/lib', '/usr/loc
al/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in ['/home/shruti/Documents/src/Sh
apeCorrection/.buildozer/android/platform/python-for-android/build/python-instal
l/lib', '/usr/local/lib', '/usr/lib/atlas-base', '/usr/lib', '/usr/lib/x86_64-li
nux-gnu']
  NOT AVAILABLE

atlas_blas_info:
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Found executable /home/shruti/.buildozer/android/platform/android-ndk-r9c/toolch
ains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-l
d
Found executable /home/shruti/.buildozer/android/platform/android-ndk-r9c/toolch
ains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-a
r
Found executable /home/shruti/.buildozer/android/platform/android-ndk-r9c/toolch
ains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-r
anlib
customize Gnu95FCompiler
customize Gnu95FCompiler using config
compiling '_configtest.c':

/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
  ATL_buildinfo();
  return 0;
}

C compiler: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-po
inter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platfor
ms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysro
ot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14
/arch-arm -fPIC

compile options: '-c'
ccache: _configtest.c
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysr
oot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-1
4/arch-arm _configtest.o -L/usr/lib/atlas-base -lf77blas -lcblas -latlas -o _con
figtest
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libf77blas.so while searching for f77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lf77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libcblas.so while searching for cblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lcblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libatlas.so while searching for atlas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -latlas
_configtest.o:_configtest.c:function main: error: undefined reference to 'ATL_bu
ildinfo'
collect2: error: ld returned 1 exit status
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libf77blas.so while searching for f77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lf77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libcblas.so while searching for cblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lcblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libatlas.so while searching for atlas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -latlas
_configtest.o:_configtest.c:function main: error: undefined reference to 'ATL_bu
ildinfo'
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
Status: 255
Output: compiling '_configtest.c':

/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
  ATL_buildinfo();
  return 0;
}

C compiler: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-po
inter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platfor
ms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysro
ot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14
/arch-arm -fPIC

compile options: '-c'
ccache: _configtest.c
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysr
oot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-1
4/arch-arm _configtest.o -L/usr/lib/atlas-base -lf77blas -lcblas -latlas -o _con
figtest
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libf77blas.so while searching for f77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lf77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libcblas.so while searching for cblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lcblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libatlas.so while searching for atlas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -latlas
_configtest.o:_configtest.c:function main: error: undefined reference to 'ATL_bu
ildinfo'
collect2: error: ld returned 1 exit status

  FOUND:
    libraries = ['f77blas', 'cblas', 'atlas']
    library_dirs = ['/usr/lib/atlas-base']
    language = c
    define_macros = [('ATLAS_INFO', '"\\"None\\""')]
    include_dirs = ['/usr/include/atlas']

  FOUND:
    libraries = ['f77blas', 'cblas', 'atlas']
    library_dirs = ['/usr/lib/atlas-base']
    language = c
    define_macros = [('ATLAS_INFO', '"\\"None\\""')]
    include_dirs = ['/usr/include/atlas']

/bin/sh: 1: svnversion: not found
non-existing path in 'numpy/lib': 'benchmarks'
lapack_opt_info:
openblas_lapack_info:
  libraries openblas not found in ['/home/shruti/Documents/src/ShapeCorrection/.
buildozer/android/platform/python-for-android/build/python-install/lib', '/usr/l
ocal/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in ['/home/shruti/Documents/src/ShapeCorrect
ion/.buildozer/android/platform/python-for-android/build/python-install/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 tatlas,tatlas not found in /home/shruti/Documents/src/ShapeCorrectio
n/.buildozer/android/platform/python-for-android/build/python-install/lib
  libraries lapack_atlas not found in /home/shruti/Documents/src/ShapeCorrection
/.buildozer/android/platform/python-for-android/build/python-install/lib
  libraries tatlas,tatlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries tatlas,tatlas not found in /usr/lib/atlas-base
  libraries tatlas,tatlas not found in /usr/lib
  libraries tatlas,tatlas 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 satlas,satlas not found in /home/shruti/Documents/src/ShapeCorrectio
n/.buildozer/android/platform/python-for-android/build/python-install/lib
  libraries lapack_atlas not found in /home/shruti/Documents/src/ShapeCorrection
/.buildozer/android/platform/python-for-android/build/python-install/lib
  libraries satlas,satlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries satlas,satlas not found in /usr/lib/atlas-base
  libraries satlas,satlas not found in /usr/lib
  libraries satlas,satlas 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 ptf77blas,ptcblas,atlas not found in /home/shruti/Documents/src/Shap
eCorrection/.buildozer/android/platform/python-for-android/build/python-install/
lib
  libraries lapack_atlas not found in /home/shruti/Documents/src/ShapeCorrection
/.buildozer/android/platform/python-for-android/build/python-install/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib/atlas-base
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  libraries ptf77blas,ptcblas,atlas 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 f77blas,cblas,atlas not found in /home/shruti/Documents/src/ShapeCor
rection/.buildozer/android/platform/python-for-android/build/python-install/lib
  libraries lapack_atlas not found in /home/shruti/Documents/src/ShapeCorrection
/.buildozer/android/platform/python-for-android/build/python-install/lib
  libraries f77blas,cblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
numpy.distutils.system_info.atlas_info
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['/usr/lib/atlas-base/atlas', '/usr/lib/atlas-base']
    language = f77
    define_macros = [('ATLAS_INFO', '"\\"None\\""')]
    include_dirs = ['/usr/include/atlas']

  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['/usr/lib/atlas-base/atlas', '/usr/lib/atlas-base']
    language = f77
    define_macros = [('ATLAS_INFO', '"\\"None\\""')]
    include_dirs = ['/usr/include/atlas']

/home/shruti/Documents/src/ShapeCorrection/.buildozer/android/platform/python-fo
r-android/build/python-install/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
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-po
inter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platfor
ms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysro
ot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14
/arch-arm -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/cor
e/src/npysort -Inumpy/core/include -I/home/shruti/Documents/src/ShapeCorrection/
.buildozer/android/platform/python-for-android/build/python-install/include/pyth
on2.7 -c'
ccache: _configtest.c
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysr
oot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-1
4/arch-arm _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-po
inter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platfor
ms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysro
ot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14
/arch-arm -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/cor
e/src/npysort -Inumpy/core/include -I/home/shruti/Documents/src/ShapeCorrection/
.buildozer/android/platform/python-for-android/build/python-install/include/pyth
on2.7 -c'
ccache: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabl
ed by default]
 int exp (void);
     ^
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysr
oot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-1
4/arch-arm _configtest.o -o _configtest
_configtest.o:_configtest.c:function main: error: undefined reference to 'exp'
collect2: error: ld returned 1 exit status
_configtest.o:_configtest.c:function main: error: undefined reference to 'exp'
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
C compiler: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-po
inter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platfor
ms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysro
ot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14
/arch-arm -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/cor
e/src/npysort -Inumpy/core/include -I/home/shruti/Documents/src/ShapeCorrection/
.buildozer/android/platform/python-for-android/build/python-install/include/pyth
on2.7 -c'
ccache: _configtest.c
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabl
ed by default]
 int exp (void);
     ^
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysr
oot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-1
4/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/p
rivate/npy_partition.h', 'build/src.linux-x86_64-2.7/numpy/core/src/private/npy_
binsearch.h']
building extension "numpy.core._dummy" sources
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to sourc
es.
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h' to
 sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h
' to sources.
numpy.core - nothing done with h_files = ['build/src.linux-x86_64-2.7/numpy/core
/include/numpy/config.h', 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_
numpyconfig.h', 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarra
y_api.h']
building extension "numpy.core.multiarray" sources
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to sourc
es.
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h' to
 sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h
' to sources.
numpy.core - nothing done with h_files = ['build/src.linux-x86_64-2.7/numpy/core
/include/numpy/config.h', 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_
numpyconfig.h', 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarra
y_api.h']
building extension "numpy.core.umath" sources
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to sourc
es.
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h' to
 sources.
executing numpy/core/code_generators/generate_ufunc_api.py
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h' to
sources.
  adding 'build/src.linux-x86_64-2.7/numpy/core/src/umath' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.linux-x86_64-2.7/numpy/core
/src/umath/funcs.inc', 'build/src.linux-x86_64-2.7/numpy/core/src/umath/simd.inc
', 'build/src.linux-x86_64-2.7/numpy/core/src/umath/loops.h', 'build/src.linux-x
86_64-2.7/numpy/core/include/numpy/config.h', 'build/src.linux-x86_64-2.7/numpy/
core/include/numpy/_numpyconfig.h', 'build/src.linux-x86_64-2.7/numpy/core/inclu
de/numpy/__ufunc_api.h']
building extension "numpy.core.scalarmath" sources
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to sourc
es.
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h' to
 sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h
' to sources.
executing numpy/core/code_generators/generate_ufunc_api.py
  adding 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h' to
sources.
  adding 'build/src.linux-x86_64-2.7/numpy/core/src/private' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.linux-x86_64-2.7/numpy/core
/src/private/scalarmathmodule.h', 'build/src.linux-x86_64-2.7/numpy/core/include
/numpy/config.h', 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpycon
fig.h', 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h'
, 'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h']
building extension "numpy.core._dotblas" sources
  adding 'numpy/core/blasdot/_dotblas.c' to sources.
  adding 'numpy/core/blasdot/python_xerbla.c' to sources.
  adding 'numpy/core/blasdot/apple_sgemv_patch.c' to sources.
building extension "numpy.core.umath_tests" sources
building extension "numpy.core.test_rational" sources
building extension "numpy.core.struct_ufunc_test" sources
building extension "numpy.core.multiarray_tests" sources
building extension "numpy.core.operand_flag_tests" sources
building extension "numpy.lib._compiled_base" sources
building extension "numpy.fft.fftpack_lite" sources
building extension "numpy.linalg.lapack_lite" sources
  adding 'numpy/linalg/lapack_litemodule.c' to sources.
  adding 'numpy/linalg/lapack_lite/python_xerbla.c' to sources.
building extension "numpy.linalg._umath_linalg" sources
  adding 'numpy/linalg/umath_linalg.c.src' to sources.
  adding 'numpy/linalg/lapack_lite/python_xerbla.c' to sources.
building extension "numpy.random.mtrand" sources
C compiler: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-po
inter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platfor
ms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysro
ot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14
/arch-arm -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/cor
e/src/npysort -Inumpy/core/include -I/home/shruti/Documents/src/ShapeCorrection/
.buildozer/android/platform/python-for-android/build/python-install/include/pyth
on2.7 -c'
ccache: _configtest.c
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysr
oot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-1
4/arch-arm _configtest.o -o _configtest
_configtest
unable to execute _configtest: Exec format error
failure.
removing: _configtest.c _configtest.o _configtest
building data_files sources
build_src: building npy-pkg config files
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'numpy.core._dotblas' extension
compiling C sources
C compiler: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-po
inter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platfor
ms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysro
ot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14
/arch-arm -fPIC

compile options: '-DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOUR
CE=1 -D_LARGEFILE64_SOURCE=1 -DATLAS_INFO="\"None\"" -Inumpy/core/blasdot -I/usr
/include/atlas -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/incl
ude/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/sr
c/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/np
ysort -Inumpy/core/include -I/home/shruti/Documents/src/ShapeCorrection/.buildoz
er/android/platform/python-for-android/build/python-install/include/python2.7 -I
build/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/n
umpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuil
d/src.linux-x86_64-2.7/numpy/core/src/private -c'
ccache: numpy/core/blasdot/python_xerbla.c
ccache: numpy/core/blasdot/_dotblas.c
numpy/core/blasdot/_dotblas.c: In function 'dotblas_matrixproduct':
numpy/core/blasdot/_dotblas.c:404:36: warning: passing argument 1 of 'PyUFunc_Ch
eckOverride' from incompatible pointer type [enabled by default]
                                    &override, 2);
                                    ^
In file included from numpy/core/blasdot/_dotblas.c:13:0:
numpy/core/src/private/ufunc_override.h:167:1: note: expected 'struct PyUFuncObj
ect *' but argument is of type 'struct PyObject *'
 PyUFunc_CheckOverride(PyUFuncObject *ufunc, char *method,
 ^
ccache: numpy/core/blasdot/apple_sgemv_patch.c
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysr
oot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-1
4/arch-arm -shared -lm -lm -DANDROID -mandroid -fomit-frame-pointer --sysroot /h
ome/shruti/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch
-arm build/temp.linux-x86_64-2.7/numpy/core/blasdot/_dotblas.o build/temp.linux-
x86_64-2.7/numpy/core/blasdot/python_xerbla.o build/temp.linux-x86_64-2.7/numpy/
core/blasdot/apple_sgemv_patch.o -L/usr/lib/atlas-base -L/home/shruti/Documents/
src/ShapeCorrection/.buildozer/android/platform/python-for-android/build/python-
install/lib -Lbuild/temp.linux-x86_64-2.7 -lf77blas -lcblas -latlas -lpython2.7
-o build/lib.linux-x86_64-2.7/numpy/core/_dotblas.so
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libf77blas.so while searching for f77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lf77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libcblas.so while searching for cblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lcblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libatlas.so while searching for atlas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -latlas
collect2: error: ld returned 1 exit status
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libf77blas.so while searching for f77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lf77blas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libcblas.so while searching for cblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -lcblas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/lib/a
tlas-base/libatlas.so while searching for atlas
/home/shruti/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-an
droideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/../
../../../arm-linux-androideabi/bin/ld: error: cannot find -latlas
collect2: error: ld returned 1 exit status
error: Command "ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-fram
e-pointer --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/pla
tforms/android-14/arch-arm -shared -lm -lm -DANDROID -mandroid -fomit-frame-poin
ter --sysroot /home/shruti/.buildozer/android/platform/android-ndk-r9c/platforms
/android-14/arch-arm build/temp.linux-x86_64-2.7/numpy/core/blasdot/_dotblas.o b
uild/temp.linux-x86_64-2.7/numpy/core/blasdot/python_xerbla.o build/temp.linux-x
86_64-2.7/numpy/core/blasdot/apple_sgemv_patch.o -L/usr/lib/atlas-base -L/home/s
hruti/Documents/src/ShapeCorrection/.buildozer/android/platform/python-for-andro
id/build/python-install/lib -Lbuild/temp.linux-x86_64-2.7 -lf77blas -lcblas -lat
las -lpython2.7 -o build/lib.linux-x86_64-2.7/numpy/core/_dotblas.so" failed wit
h exit status 1
# Command failed: ./distribute.sh -m "numpy kivy" -d "shapecorrection"
#
# 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
shruti@shruti-VPCSE2K9E:~/Documents/src/ShapeCorrection$



Alexander Taylor

unread,
Sep 30, 2015, 11:44:56 AM9/30/15
to Kivy users support
I think you're hitting (at least) a known bug where the numpy recipe fails if certain numpy dependencies/components are already installed, as it hardcodes some places to look for them even though these are not valid things to link with when building for arm.

I fixed this for the p4a revamp but didn't backport it. There's at least one PR doing some of the job at https://github.com/kivy/python-for-android/pull/414 , maybe you can try that or the linked patches.

Shruti Chandra

unread,
Sep 30, 2015, 12:22:21 PM9/30/15
to kivy-...@googlegroups.com
Okay!

Just to confirm, should I  use all the patches in python-for-android/pythonforandroid/recipes/numpy/patches/  with the current patch (fix-numpy.patch) that i have ??

 Pull request  CompareThis branch is 336 commits ahead, 15 commits behind master.

cheers,
Shruti Chandra


--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/FsHTPYw7Wwc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander Taylor

unread,
Sep 30, 2015, 12:25:35 PM9/30/15
to kivy-...@googlegroups.com
You should be able to replace the current patch with the ones in that
revamp branch (and make sure to also replace the patching in the recipe.sh).

If it works, feel free to make a PR for python-for-android.

On 30/09/15 17:22, Shruti Chandra wrote:
> Okay!
>
> Just to confirm, should I use all the patches in python-for-android
> <https://github.com/kivy/python-for-android/tree/revamp>/pythonforandroid <https://github.com/kivy/python-for-android/tree/revamp/pythonforandroid>/recipes
> <https://github.com/kivy/python-for-android/tree/revamp/pythonforandroid/recipes>/numpy
> <https://github.com/kivy/python-for-android/tree/revamp/pythonforandroid/recipes/numpy>/*patches*/
> with the current patch (fix-numpy.patch) that i have ??
>
> Pull request
> <https://github.com/kivy/python-for-android/pull/new/revamp> Compare
> <https://github.com/kivy/python-for-android/compare/revamp>This branch
> is 336 commits ahead, 15 commits behind master.
>
> Fixed numpy compilation and upgraded to 1.9.2
> <https://github.com/kivy/python-for-android/commit/c0cf5e7151b1b058ae96aadb90d97bdddeeab6df>
>
> latest commit c0cf5e7151
> <https://github.com/kivy/python-for-android/commit/c0cf5e7151b1b058ae96aadb90d97bdddeeab6df>
> @inclement inclement <https://github.com/inclement> authored on Jul 13
> ..
> <https://github.com/kivy/python-for-android/tree/revamp/pythonforandroid/recipes/numpy>
>
> ar.patch
> <https://github.com/kivy/python-for-android/blob/revamp/pythonforandroid/recipes/numpy/patches/ar.patch>
> Fixed numpy compilation and upgraded to 1.9.2
> <https://github.com/kivy/python-for-android/commit/c0cf5e7151b1b058ae96aadb90d97bdddeeab6df>
> 3 months ago
> fix-numpy.patch
> <https://github.com/kivy/python-for-android/blob/revamp/pythonforandroid/recipes/numpy/patches/fix-numpy.patch>
> Fixed numpy compilation and upgraded to 1.9.2
> <https://github.com/kivy/python-for-android/commit/c0cf5e7151b1b058ae96aadb90d97bdddeeab6df>
> 3 months ago
> lib.patch
> <https://github.com/kivy/python-for-android/blob/revamp/pythonforandroid/recipes/numpy/patches/lib.patch>
> Fixed numpy compilation and upgraded to 1.9.2
> <https://github.com/kivy/python-for-android/commit/c0cf5e7151b1b058ae96aadb90d97bdddeeab6df>
> 3 months ago
> prevent_libs_check.patch
> <https://github.com/kivy/python-for-android/blob/revamp/pythonforandroid/recipes/numpy/patches/prevent_libs_check.patch>
> Fixed numpy compilation and upgraded to 1.9.2
> <https://github.com/kivy/python-for-android/commit/c0cf5e7151b1b058ae96aadb90d97bdddeeab6df>
> 3 months ago
>
>
> cheers,
> *Shruti Chandra*
>
>
> On Wed, Sep 30, 2015 at 4:44 PM, Alexander Taylor
> <alexander...@gmail.com <mailto:alexander...@gmail.com>>
> <mailto:kivy-users+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kivy users support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/kivy-users/FsHTPYw7Wwc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kivy-users+...@googlegroups.com
> <mailto:kivy-users+...@googlegroups.com>.
signature.asc

Shruti Chandra

unread,
Sep 30, 2015, 12:52:59 PM9/30/15
to kivy-...@googlegroups.com
But, where is recipe.sh of numpy? Could u pass me a link? Also what is PR in your previous mail? 

cheers,
Shruti Chandra


To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.

Shruti Chandra

unread,
Sep 30, 2015, 12:55:25 PM9/30/15
to kivy-...@googlegroups.com
is it pull request?

cheers,
Shruti Chandra

Shruti chandra

unread,
Oct 2, 2015, 4:09:58 AM10/2/15
to Kivy users support
Hello,

I checked by replacing 4 files in revamped. But it did not work, till I did not change the recipe.sh in numpy? Could you suggest where I could find the modified recipe.sh in revamp?
Reply all
Reply to author
Forward
0 new messages