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

libzmq recipe compiling error #1802

Closed
hpsaturn opened this issue Apr 22, 2019 · 7 comments
Closed

libzmq recipe compiling error #1802

hpsaturn opened this issue Apr 22, 2019 · 7 comments

Comments

@hpsaturn
Copy link
Contributor

hpsaturn commented Apr 22, 2019

Versions

  • Python: 3.6.5 (on virtualenv)
  • OS: Ubuntu 16.04.6 LTS
  • Kivy: master
  • Cython: no

Description

I have a similar issue that this but with libzmq recipe on current master code:

line execution:

(venv) (master) malos-python$ p4a apk --private . --package=com.admobilize.malos --name "ADM Malos Test" --version 1.2.10 --bootstrap=sdl2 --requirements=python3,libffi,matrix-io-malos,docopt,pyzmq,matrix-io-proto --permission INTERNET 

exported vars:

ANDROIDAPI=27
ANDROIDNDK=/opt/android-sdk/ndk-bundle
ANDROID_JAVA_HOME=/usr/lib/jvm/java-8-oracle/
ANDROIDSDK=/opt/android-sdk
NDKAPI=27

ndkversion: android-ndk-r17c

error lines output:

  ...
  CXX      src/libzmq_la-trie.lo
  CXX      src/libzmq_la-tipc_listener.lo
  CXX      src/libzmq_la-v1_decoder.lo
  CXX      src/libzmq_la-v2_decoder.lo
  CXX      src/libzmq_la-v1_encoder.lo
  CXX      src/libzmq_la-v2_encoder.lo
  CXX      src/libzmq_la-xpub.lo
  CXX      src/libzmq_la-xsub.lo
  CXX      src/libzmq_la-zmq.lo
  CXX      src/libzmq_la-zmq_utils.lo
  CXX      tools/curve_keygen.o
  CXX      perf/local_lat.o
  CXX      perf/remote_lat.o
  CXX      perf/local_thr.o
  CXX      perf/remote_thr.o
  CXX      perf/inproc_lat.o
  CXX      perf/inproc_thr.o
  CXXLD    libzmq.la
arm-linux-androideabi-g++: error: crtbegin_so.o: No such file or directory
arm-linux-androideabi-g++: error: crtend_so.o: No such file or directory
Makefile:1795: recipe for target 'libzmq.la' failed
make[1]: *** [libzmq.la] Error 1
make[1]: Leaving directory '/home/xxx/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_27/libzmq'
Makefile:3147: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

runned over this source code:
https://github.com/matrix-io/malos-python.git

Many thanks for any help

@AndreMiras
Copy link
Member

I confirm the bug, tested with Docker and the following p4a command:

python setup_testapp_python3_sqlite_openssl.py apk --sdk-dir $ANDROID_SDK_HOME --ndk-dir $ANDROID_NDK_HOME --bootstrap sdl2 --requirements python3,kivy,libzmq

Error was:

[INFO]:    Building libzmq for armeabi-v7a
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq
[INFO]:    -> running sh ./configure --host=arm-linux-androideabi --without-documentation --prefix=/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/install --with-libsodium=no
[INFO]:    -> running make
           working: make: *** [all-recursive] Error 1                                                                                                                                                                                                                                   Exception in thread background thread for pid 18250:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 1540, in wrap
    fn(*args, **kwargs)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
    handle_exit_code(exit_code)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 2157, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc 
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make 

  STDOUT:  
Making all in doc
make[1]: Entering directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/doc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/doc'
make[1]: Entering directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq'
  CXX      src/libzmq_la-address.lo
  CXX      src/libzmq_la-clock.lo
  CXX      src/libzmq_la-ctx.lo
  CXX      src/libzmq_la-curve_client.lo
  CXX      src/libzmq_la-curve_server.lo
  CXX      src/libzmq_la-dealer.lo
  CXX      src/libzmq_la-devpoll.lo
  CXX      src/libzmq_la-dist.lo
  CXX      src/libzmq_la-epoll.lo
  CXX      src/libzmq_la-err.lo 
  CXX      src/libzmq_la-fq.lo
  CXX      src/libzmq_la-gssapi_mechanism_base.lo
  CXX      src/libzmq_la-gssapi_client.lo
  CXX      src/libzmq_la-gssapi_server.lo
  CXX      src/libzmq_la-io_object.lo
  CXX      src/libzmq_la-io_thread.lo
  CXX      src/libzmq_la-ip.lo
  CXX      src/libzmq_la-ipc_address.lo
  CXX      src/libzmq_la-ipc_connecter.lo
  CXX      src/libzmq_la-ipc_listener.lo
  CXX      src/libzmq_la-kqueue.lo
  CXX      src/libzmq_la-lb.lo
  CXX      src/libzmq_la-mailbox.lo
  CXX      src/libzmq_la-mechanism.lo
  CXX      src/libzmq_la-metadata.lo
  CXX      src/libzmq_la-msg.lo
  CXX      src/libzmq_la-mtrie.lo
  CXX      src/libzmq_la-norm_engine.lo
  CXX      src/libzmq_la-null_mechanism.lo
  CXX      src/libzmq_la-object.lo
  CXX      src/libzmq_la-options.lo
  CXX      src/libzmq_la-own.lo
  CXX      src/libzmq_la-pair.lo
  CXX      src/libzmq_la-pgm_receiver.lo
  CXX      src/libzmq_la-pgm_sender.lo
  CXX      src/libzmq_la-pgm_socket.lo
  CXX      src/libzmq_la-pipe.lo
  CXX      src/libzmq_la-plain_client.lo
  CXX      src/libzmq_la-plain_server.lo
  CXX      src/libzmq_la-poll.lo
  CXX      src/libzmq_la-poller_base.lo
  CXX      src/libzmq_la-proxy.lo
  CXX      src/libzmq_la-pub.lo
  CXX      src/libzmq_la-pull.lo
  CXX      src/libzmq_la-push.lo
  CXX      src/libzmq_la-random.lo
  CXX      src/libzmq_la-raw_decoder.lo
  CXX      src/libzmq_la-raw_encoder.lo
  CXX      src/libzmq_la-reaper.lo
  CXX      src/libzmq_la-rep.lo
  CXX      src/libzmq_la-req.lo
  CXX      src/libzmq_la-router.lo
  CXX      src/libzmq_la-select.lo
  CXX      src/libzmq_la-session_base.lo
  CXX      src/libzmq_la-signaler.lo
  CXX      src/libzmq_la-socket_base.lo
  CXX      src/libzmq_la-socks.lo 
  CXX      src/libzmq_la-socks_connecter.lo
  CXX      src/libzmq_la-stream.lo
  CXX      src/libzmq_la-stream_engine.lo
  CXX      src/libzmq_la-sub.lo
  CXX      src/libzmq_la-tcp.lo
  CXX      src/libzmq_la-tcp_address.lo
  CXX      src/libzmq_la-tcp_connecter.lo
  CXX      src/libzmq_la-tcp_listener.lo
  CXX      src/libzmq_la-thread.lo
  CXX      src/libzmq_la-tipc_address.lo
  CXX      src/libzmq_la-tipc_connecter.lo
  CXX      src/libzmq_la-tipc_listener.lo
  CXX      src/libzmq_la-trie.lo
  CXX      src/libzmq_la-v1_decoder.lo
  CXX      src/libzmq_la-v2_decoder.lo
  CXX      src/libzmq_la-v1_encoder.lo
  CXX      src/libzmq_la-v2_encoder.lo
  CXX      src/libzmq_la-xpub.lo
  CXX      src/libzmq_la-xsub.lo
  CXX      src/libzmq_la-zmq.lo
  CXX      src/libzmq_la-zmq_utils.lo
  CXX      tools/curve_keygen.o
  CXX      perf/local_lat.o
  CXX      perf/remote_lat.o
  CXX      perf/local_thr.o
  CXX      perf/remote_thr.o
  CXX      perf/inproc_lat.o
  CXX      perf/inproc_thr.o
  CXXLD    libzmq.la
arm-linux-androideabi-g++: error: crtbegin_so.o: No such file or directory
arm-linux-androideabi-g++: error: crtend_so.o: No such file or directory
Makefile:1795: recipe for target 'libzmq.la' failed
make[1]: *** [libzmq.la] Error 1
make[1]: Leaving directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq'
Makefile:3147: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Complete log:

$ docker run -it --rm kivy/python-for-android                                        
Unable to find image 'kivy/python-for-android:latest' locally
latest: Pulling from kivy/python-for-android
898c46f3b1a1: Pull complete
63366dfa0a50: Pull complete
041d4cd74a92: Pull complete
6e1bee0f8701: Pull complete
09b00fc58486: Pull complete
52add1904e0d: Pull complete
6b75821d8fe1: Pull complete
8aba0d9e09b9: Pull complete
902f1b74d23e: Pull complete
fe4c66c64224: Pull complete
3f157a6f0f59: Pull complete
54680da046ae: Pull complete
475f6c301d0a: Pull complete
fec15389056d: Pull complete
55cccf8b079e: Pull complete
036ea57460fa: Pull complete
e04a02d777ff: Pull complete
86dcfc2ae44c: Pull complete
8f1fa9327ef5: Pull complete
fedf199b0eda: Pull complete
48f78949b5b2: Pull complete
cf2a90ecdf43: Pull complete
bb2ba5427b5c: Pull complete
Digest: sha256:b6d755c60c179849547fa6f5f4ebf5b144dd8229de38688218abce9284319068
Status: Downloaded newer image for kivy/python-for-android:latest
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

user@70a3871b6c1c:~$ . venv/bin/activate
(venv) user@70a3871b6c1c:~$ cd testapps/
(venv) user@70a3871b6c1c:~/testapps$ python setup_testapp_python3_sqlite_openssl.py apk --sdk-dir $ANDROID_SDK_HOME --ndk-dir $ANDROID_NDK_HOME --bootstrap sdl2 --requirements python3,kivy,libzmq
running apk
WARNING: You did not supply an Android package identifier, trying org.test.testapp_python3_sqlite_openssl_googlendk instead.
         This may fail if this is not a valid identifier
Including testapp_sqlite_openssl/main.py
Including testapp_sqlite_openssl/colours.png
[WARNING]: --ndk-version is deprecated and no longer necessary, the value you passed is ignored
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Getting Android API version from user argument: 27
[INFO]:    Available Android APIs are (19, 27)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Getting NDK dir from from user argument
[INFO]:    Found NDK revision 17.2.4988734
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    Found virtualenv at /usr/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found a single valid recipe set: ['hostpython3', 'libffi', 'libzmq', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name bdisttest_python3_sqlite_openssl_googlendk and requirements (python3, kivy, libzmq)
[INFO]:    Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'libzmq', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    Dist will also contain modules () installed from pip
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Recipe build order is ['hostpython3', 'libffi', 'libzmq', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    # Downloading recipes
[INFO]:    Downloading hostpython3
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/hostpython3
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/hostpython3
[INFO]:    -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
[INFO]:    -> running rm -f .mark-Python-3.7.1.tgz
[INFO]:    Downloading hostpython3 from https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
[INFO]:    -> running touch .mark-Python-3.7.1.tgz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading libffi
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/libffi
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/libffi
[INFO]:    -> running basename https://github.com/libffi/libffi/archive/v3.2.1.tar.gz
[INFO]:    -> running rm -f .mark-v3.2.1.tar.gz
[INFO]:    Downloading libffi from https://github.com/libffi/libffi/archive/v3.2.1.tar.gz
[INFO]:    -> running touch .mark-v3.2.1.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading libzmq
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/libzmq
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/libzmq
[INFO]:    -> running basename http://download.zeromq.org/zeromq-4.1.4.tar.gz
[INFO]:    -> running rm -f .mark-zeromq-4.1.4.tar.gz
[INFO]:    Downloading libzmq from http://download.zeromq.org/zeromq-4.1.4.tar.gz
[INFO]:    -> running touch .mark-zeromq-4.1.4.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading openssl
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/openssl
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/openssl
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1.tar.gz
[INFO]:    -> running rm -f .mark-openssl-1.1.1.tar.gz
[INFO]:    Downloading openssl from https://www.openssl.org/source/openssl-1.1.1.tar.gz
[INFO]:    -> running touch .mark-openssl-1.1.1.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/sdl2_image
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> running rm -f .mark-SDL2_image-2.0.4.tar.gz
[INFO]:    Downloading sdl2_image from https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> running touch .mark-SDL2_image-2.0.4.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/sdl2_mixer
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    -> running rm -f .mark-SDL2_mixer-2.0.4.tar.gz
[INFO]:    Downloading sdl2_mixer from https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    -> running touch .mark-SDL2_mixer-2.0.4.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/sdl2_ttf
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> running rm -f .mark-SDL2_ttf-2.0.14.tar.gz
[INFO]:    Downloading sdl2_ttf from https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> running touch .mark-SDL2_ttf-2.0.14.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading sqlite3
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/sqlite3
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/sqlite3
[INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> running rm -f .mark-sqlite-amalgamation-3150100.zip
[INFO]:    Downloading sqlite3 from https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> running touch .mark-sqlite-amalgamation-3150100.zip
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading python3
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/python3
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/python3
[INFO]:    -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
[INFO]:    -> running rm -f .mark-Python-3.7.1.tgz
[INFO]:    Downloading python3 from https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
[INFO]:    -> running touch .mark-Python-3.7.1.tgz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/sdl2
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> running rm -f .mark-SDL2-2.0.9.tar.gz
[INFO]:    Downloading sdl2 from https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> running touch .mark-SDL2-2.0.9.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/six
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    -> running rm -f .mark-six-1.9.0.tar.gz
[INFO]:    Downloading six from https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    -> running touch .mark-six-1.9.0.tar.gz
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/pyjnius
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/6553ad4.zip
[INFO]:    -> running rm -f .mark-6553ad4.zip
[INFO]:    Downloading pyjnius from https://github.com/kivy/pyjnius/archive/6553ad4.zip
[INFO]:    -> running touch .mark-6553ad4.zip
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /home/user/.local/share/python-for-android/packages/kivy
[INFO]:    -> directory context /home/user/.local/share/python-for-android/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/44a8a6f.zip
[INFO]:    -> running rm -f .mark-44a8a6f.zip
[INFO]:    Downloading kivy from https://github.com/kivy/kivy/archive/44a8a6f.zip
[INFO]:    -> running touch .mark-44a8a6f.zip
[INFO]:    <- directory context /home/user/testapps
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython3 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop
[INFO]:    -> running mv Python-3.7.1 /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking libffi for armeabi-v7a
[INFO]:    -> running basename https://github.com/libffi/libffi/archive/v3.2.1.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv libffi-3.2.1 /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking libzmq for armeabi-v7a
[INFO]:    -> running basename http://download.zeromq.org/zeromq-4.1.4.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv zeromq-4.1.4 /home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking openssl for armeabi-v7a
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/openssl/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv openssl-1.1.1 /home/user/.local/share/python-for-android/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni
[INFO]:    -> running mv SDL2_image-2.0.4 /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_image
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni
[INFO]:    -> running mv SDL2_mixer-2.0.4 /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni
[INFO]:    -> running mv SDL2_ttf-2.0.14 /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking sqlite3 for armeabi-v7a
[INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv sqlite-amalgamation-3150100 /home/user/.local/share/python-for-android/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21/sqlite3
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking python3 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv Python-3.7.1 /home/user/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni
[INFO]:    -> running mv SDL2-2.0.9 /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/six-python3/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv six-1.9.0 /home/user/.local/share/python-for-android/build/other_builds/six-python3/armeabi-v7a__ndk_target_21/six
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/6553ad4.zip
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/pyjnius-python3-sdl2/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv pyjnius-6553ad4409782fd1c37247c64736f4aa698a00b2 /home/user/.local/share/python-for-android/build/other_builds/pyjnius-python3-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    <- directory context /home/user/testapps
[INFO]:    -> running rm -rf /home/user/.local/share/python-for-android/build/other_builds/android-python3-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    -> running cp -a /home/user/pythonforandroid/recipes/android/src /home/user/.local/share/python-for-android/build/other_builds/android-python3-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/44a8a6f.zip
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/kivy-python3-sdl2/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv kivy-44a8a6f8f5780ef0733de44da8c9e9e45c4028d1 /home/user/.local/share/python-for-android/build/other_builds/kivy-python3-sdl2/armeabi-v7a__ndk_target_21/kivy
[INFO]:    <- directory context /home/user/testapps
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython3 for armeabi-v7a
[INFO]:    hostpython3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding libffi for armeabi-v7a
[INFO]:    libffi has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for libffi[armeabi-v7a]
[INFO]:    Applying patch remove-version-info.patch
[INFO]:    -> running patch -t -d /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi -p1 -i /home/user/pythonforandroid/recipes/libffi/remove-version-info.patch
[INFO]:    Applying patch fix-includedir.patch
[INFO]:    -> running patch -t -d /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi -p1 -i /home/user/pythonforandroid/recipes/libffi/fix-includedir.patch
[INFO]:    -> running touch /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/.patched
[INFO]:    Prebuilding libzmq for armeabi-v7a
[INFO]:    libzmq has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding openssl for armeabi-v7a
[INFO]:    openssl has no prebuild_armeabi_v7a, skipping
[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]:    Applying patch toggle_jpg_png_webp.patch
[INFO]:    -> running patch -t -d /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_image -p1 -i /home/user/pythonforandroid/recipes/sdl2_image/toggle_jpg_png_webp.patch
[INFO]:    Applying patch extra_cflags.patch
[INFO]:    -> running patch -t -d /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_image -p1 -i /home/user/pythonforandroid/recipes/sdl2_image/extra_cflags.patch
[INFO]:    -> running touch /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_image/.patched
[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]:    Applying patch toggle_modplug_mikmod_smpeg_ogg.patch
[INFO]:    -> running patch -t -d /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer -p1 -i /home/user/pythonforandroid/recipes/sdl2_mixer/toggle_modplug_mikmod_smpeg_ogg.patch
[INFO]:    -> running touch /home/user/.local/share/python-for-android/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/.patched
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sqlite3 for armeabi-v7a
[INFO]:    sqlite3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python3 for armeabi-v7a
[INFO]:    python3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python3[armeabi-v7a]
[INFO]:    Applying patch patches/fix-ctypes-util-find-library.patch
[INFO]:    -> running patch -t -d /home/user/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3 -p1 -i /home/user/pythonforandroid/recipes/python3/patches/fix-ctypes-util-find-library.patch
[INFO]:    -> running touch /home/user/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/.patched
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    Applying patch sdl2_jnienv_getter.patch
[INFO]:    -> running patch -t -d /home/user/.local/share/python-for-android/build/other_builds/pyjnius-python3-sdl2/armeabi-v7a__ndk_target_21/pyjnius -p1 -i /home/user/pythonforandroid/recipes/pyjnius/sdl2_jnienv_getter.patch
[INFO]:    -> running touch /home/user/.local/share/python-for-android/build/other_builds/pyjnius-python3-sdl2/armeabi-v7a__ndk_target_21/pyjnius/.patched
[INFO]:    Prebuilding android for armeabi-v7a
[INFO]:    android has no prebuild_armeabi_v7a, skipping
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/android-python3-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython3 for armeabi-v7a
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build
[INFO]:    -> running configure
[INFO]:    <- directory context /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3
[INFO]:    -> running cp Modules/Setup.dist /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Modules/Setup
[INFO]:    -> running make -j 4 -C /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Building libffi for armeabi-v7a
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi
[INFO]:    -> running autogen.sh
[INFO]:    -> running autoreconf -vif
[INFO]:    -> running configure --host=arm-linux-androideabi --prefix=/home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi --disable-builddir --enable-shared
[INFO]:    -> running make -j 4 libffi.la
[INFO]:    -> running cp /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/.libs/libffi.so /home/user/.local/share/python-for-android/build/libs_collections/bdisttest_python3_sqlite_openssl_googlendk/armeabi-v7a
[INFO]:    <- directory context /home/user/testapps
[INFO]:    Building libzmq for armeabi-v7a
[INFO]:    -> directory context /home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq
[INFO]:    -> running sh ./configure --host=arm-linux-androideabi --without-documentation --prefix=/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/install --with-libsodium=no
[INFO]:    -> running make
           working: make: *** [all-recursive] Error 1                                                                                                                                                                                                                                   Exception in thread background thread for pid 18250:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 1540, in wrap
    fn(*args, **kwargs)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
    handle_exit_code(exit_code)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 2157, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2:

  RAN: /usr/bin/make

  STDOUT:
Making all in doc
make[1]: Entering directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/doc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/doc'
make[1]: Entering directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq'
  CXX      src/libzmq_la-address.lo
  CXX      src/libzmq_la-clock.lo
  CXX      src/libzmq_la-ctx.lo
  CXX      src/libzmq_la-curve_client.lo
  CXX      src/libzmq_la-curve_server.lo
  CXX      src/libzmq_la-dealer.lo
  CXX      src/libzmq_la-devpoll.lo
  CXX      src/libzmq_la-dist.lo
  CXX      src/libzmq_la-epoll.lo
  CXX      src/libzmq_la-err.lo
  CXX      src/libzmq_la-fq.lo
  CXX      src/libzmq_la-gssapi_mechanism_base.lo
  CXX      src/libzmq_la-gssapi_client.lo
  CXX      src/libzmq_la-gssapi_server.lo
  CXX      src/libzmq_la-io_object.lo
  CXX      src/libzmq_la-io_thread.lo
  CXX      src/libzmq_la-ip.lo
  CXX      src/libzmq_la-ipc_address.lo
  CXX      src/libzmq_la-ipc_connecter.lo
  CXX      src/libzmq_la-ipc_listener.lo
  CXX      src/libzmq_la-kqueue.lo
  CXX      src/libzmq_la-lb.lo
  CXX      src/libzmq_la-mailbox.lo
  CXX      src/libzmq_la-mechanism.lo
  CXX      src/libzmq_la-metadata.lo
  CXX      src/libzmq_la-msg.lo
  CXX      src/libzmq_la-mtrie.lo
  CXX      src/libzmq_la-norm_engine.lo
  CXX      src/libzmq_la-null_mechanism.lo
  CXX      src/libzmq_la-object.lo
  CXX      src/libzmq_la-options.lo
  CXX      src/libzmq_la-own.lo
  CXX      src/libzmq_la-pair.lo
  CXX      src/libzmq_la-pgm_receiver.lo
  CXX      src/libzmq_la-pgm_sender.lo
  CXX      src/libzmq_la-pgm_socket.lo
  CXX      src/libzmq_la-pipe.lo
  CXX      src/libzmq_la-plain_client.lo
  CXX      src/libzmq_la-plain_server.lo
  CXX      src/libzmq_la-poll.lo
  CXX      src/libzmq_la-poller_base.lo
  CXX      src/libzmq_la-proxy.lo
  CXX      src/libzmq_la-pub.lo
  CXX      src/libzmq_la-pull.lo
  CXX      src/libzmq_la-push.lo
  CXX      src/libzmq_la-random.lo
  CXX      src/libzmq_la-raw_decoder.lo
  CXX      src/libzmq_la-raw_encoder.lo
  CXX      src/libzmq_la-reaper.lo
  CXX      src/libzmq_la-rep.lo
  CXX      src/libzmq_la-req.lo
  CXX      src/libzmq_la-router.lo
  CXX      src/libzmq_la-select.lo
  CXX      src/libzmq_la-session_base.lo
  CXX      src/libzmq_la-signaler.lo
  CXX      src/libzmq_la-socket_base.lo
  CXX      src/libzmq_la-socks.lo
  CXX      src/libzmq_la-socks_connecter.lo
  CXX      src/libzmq_la-stream.lo
  CXX      src/libzmq_la-stream_engine.lo
  CXX      src/libzmq_la-sub.lo
  CXX      src/libzmq_la-tcp.lo
  CXX      src/libzmq_la-tcp_address.lo
  CXX      src/libzmq_la-tcp_connecter.lo
  CXX      src/libzmq_la-tcp_listener.lo
  CXX      src/libzmq_la-thread.lo
  CXX      src/libzmq_la-tipc_address.lo
  CXX      src/libzmq_la-tipc_connecter.lo
  CXX      src/libzmq_la-tipc_listener.lo
  CXX      src/libzmq_la-trie.lo
  CXX      src/libzmq_la-v1_decoder.lo
  CXX      src/libzmq_la-v2_decoder.lo
  CXX      src/libzmq_la-v1_encoder.lo
  CXX      src/libzmq_la-v2_encoder.lo
  CXX      src/libzmq_la-xpub.lo
  CXX      src/libzmq_la-xsub.lo
  CXX      src/libzmq_la-zmq.lo
  CXX      src/libzmq_la-zmq_utils.lo
  CXX      tools/curve_keygen.o
  CXX      perf/local_lat.o
  CXX      perf/remote_lat.o
  CXX      perf/local_thr.o
  CXX      perf/remote_thr.o
  CXX      perf/inproc_lat.o
  CXX      perf/inproc_thr.o
  CXXLD    libzmq.la
arm-linux-androideabi-g++: error: crtbegin_so.o: No such file or directory
arm-linux-androideabi-g++: error: crtend_so.o: No such file or directory
Makefile:1795: recipe for target 'libzmq.la' failed
make[1]: *** [libzmq.la] Error 1
make[1]: Leaving directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq'
Makefile:3147: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


  STDERR:


Traceback (most recent call last):
  File "setup_testapp_python3_sqlite_openssl.py", line 22, in <module>
    package_data={'testapp_sqlite_openssl': ['*.py', '*.png']}
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/user/pythonforandroid/bdistapk.py", line 80, in run
    main()
  File "/home/user/pythonforandroid/toolchain.py", line 1075, in main
    ToolchainCL()
  File "/home/user/pythonforandroid/toolchain.py", line 577, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/user/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/user/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/user/pythonforandroid/build.py", line 562, in build_recipes
    recipe.build_arch(arch)
  File "/home/user/pythonforandroid/recipes/libzmq/__init__.py", line 39, in build_arch
    shprint(sh.make, _env=env)
  File "/home/user/pythonforandroid/logger.py", line 178, in shprint
    for line in output:
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 863, in next
    self.wait()
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/user/venv/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2:

  RAN: /usr/bin/make

  STDOUT:
Making all in doc
make[1]: Entering directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/doc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/doc'
make[1]: Entering directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq'
  CXX      src/libzmq_la-address.lo
  CXX      src/libzmq_la-clock.lo
  CXX      src/libzmq_la-ctx.lo
  CXX      src/libzmq_la-curve_client.lo
  CXX      src/libzmq_la-curve_server.lo
  CXX      src/libzmq_la-dealer.lo
  CXX      src/libzmq_la-devpoll.lo
  CXX      src/libzmq_la-dist.lo
  CXX      src/libzmq_la-epoll.lo
  CXX      src/libzmq_la-err.lo
  CXX      src/libzmq_la-fq.lo
  CXX      src/libzmq_la-gssapi_mechanism_base.lo
  CXX      src/libzmq_la-gssapi_client.lo
  CXX      src/libzmq_la-gssapi_server.lo
  CXX      src/libzmq_la-io_object.lo
  CXX      src/libzmq_la-io_thread.lo
  CXX      src/libzmq_la-ip.lo
  CXX      src/libzmq_la-ipc_address.lo
  CXX      src/libzmq_la-ipc_connecter.lo
  CXX      src/libzmq_la-ipc_listener.lo
  CXX      src/libzmq_la-kqueue.lo
  CXX      src/libzmq_la-lb.lo
  CXX      src/libzmq_la-mailbox.lo
  CXX      src/libzmq_la-mechanism.lo
  CXX      src/libzmq_la-metadata.lo
  CXX      src/libzmq_la-msg.lo
  CXX      src/libzmq_la-mtrie.lo
  CXX      src/libzmq_la-norm_engine.lo
  CXX      src/libzmq_la-null_mechanism.lo
  CXX      src/libzmq_la-object.lo
  CXX      src/libzmq_la-options.lo
  CXX      src/libzmq_la-own.lo
  CXX      src/libzmq_la-pair.lo
  CXX      src/libzmq_la-pgm_receiver.lo
  CXX      src/libzmq_la-pgm_sender.lo
  CXX      src/libzmq_la-pgm_socket.lo
  CXX      src/libzmq_la-pipe.lo
  CXX      src/libzmq_la-plain_client.lo
  CXX      src/libzmq_la-plain_server.lo
  CXX      src/libzmq_la-poll.lo
  CXX      src/libzmq_la-poller_base.lo
  CXX      src/libzmq_la-proxy.lo
  CXX      src/libzmq_la-pub.lo
  CXX      src/libzmq_la-pull.lo
  CXX      src/libzmq_la-push.lo
  CXX      src/libzmq_la-random.lo
  CXX      src/libzmq_la-raw_decoder.lo
  CXX      src/libzmq_la-raw_encoder.lo
  CXX      src/libzmq_la-reaper.lo
  CXX      src/libzmq_la-rep.lo
  CXX      src/libzmq_la-req.lo
  CXX      src/libzmq_la-router.lo
  CXX      src/libzmq_la-select.lo
  CXX      src/libzmq_la-session_base.lo
  CXX      src/libzmq_la-signaler.lo
  CXX      src/libzmq_la-socket_base.lo
  CXX      src/libzmq_la-socks.lo
  CXX      src/libzmq_la-socks_connecter.lo
  CXX      src/libzmq_la-stream.lo
  CXX      src/libzmq_la-stream_engine.lo
  CXX      src/libzmq_la-sub.lo
  CXX      src/libzmq_la-tcp.lo
  CXX      src/libzmq_la-tcp_address.lo
  CXX      src/libzmq_la-tcp_connecter.lo
  CXX      src/libzmq_la-tcp_listener.lo
  CXX      src/libzmq_la-thread.lo
  CXX      src/libzmq_la-tipc_address.lo
  CXX      src/libzmq_la-tipc_connecter.lo
  CXX      src/libzmq_la-tipc_listener.lo
  CXX      src/libzmq_la-trie.lo
  CXX      src/libzmq_la-v1_decoder.lo
  CXX      src/libzmq_la-v2_decoder.lo
  CXX      src/libzmq_la-v1_encoder.lo
  CXX      src/libzmq_la-v2_encoder.lo
  CXX      src/libzmq_la-xpub.lo
  CXX      src/libzmq_la-xsub.lo
  CXX      src/libzmq_la-zmq.lo
  CXX      src/libzmq_la-zmq_utils.lo
  CXX      tools/curve_keygen.o
  CXX      perf/local_lat.o
  CXX      perf/remote_lat.o
  CXX      perf/local_thr.o
  CXX      perf/remote_thr.o
  CXX      perf/inproc_lat.o
  CXX      perf/inproc_thr.o
  CXXLD    libzmq.la
arm-linux-androideabi-g++: error: crtbegin_so.o: No such file or directory
arm-linux-androideabi-g++: error: crtend_so.o: No such file or directory
Makefile:1795: recipe for target 'libzmq.la' failed
make[1]: *** [libzmq.la] Error 1
make[1]: Leaving directory '/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq'
Makefile:3147: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


  STDERR:

(venv) user@70a3871b6c1c:~/testapps$

@AndreMiras
Copy link
Member

@hpsaturn the libzmq looks definitely broken and outdated. If you want to give it a try

@hpsaturn
Copy link
Contributor Author

I submitted a pull request that fixed this bug, but I have a new issue in pyzmq dependency. I don't know, but I believe that this is not relationed, is a new issue on pyzmq recipe

[INFO]:    Building pyzmq for armeabi-v7a
[INFO]:    zmq apparently isn't already in site-packages
Traceback (most recent call last):
  File "/home/avp/src/admobilize/admprovider/venv/bin/p4a", line 11, in <module>
    load_entry_point('python-for-android==0.7.1', 'console_scripts', 'p4a')()
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 1075, in main
    ToolchainCL()
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 577, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/build.py", line 562, in build_recipes
    recipe.build_arch(arch)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/recipe.py", line 986, in build_arch
    self.build_cython_components(arch)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/recipes/pyzmq/__init__.py", line 46, in build_cython_components
    """.format(libzmq_prefix))
TypeError: a bytes-like object is required, not 'str'

@AndreMiras
Copy link
Member

AndreMiras commented Apr 24, 2019

Thanks for the PR and the error log. That last one should be trivial enough to fix I hope. I'd like to reproduce it locally and then see if we can reproduce in a unit test before fixing it.
Just took a deeper look and:

  1. fixing it should be as simple as putting a b prefix .encode() suffix to the write blockstring.
  2. we should rather use a patch file to create that setup.cfg
  3. in the meantime I would pin the version to something else than master, e.g. the last tag v18.0.1

@hpsaturn
Copy link
Contributor Author

Yes, .encode() resolve the issue. I updated the PR with all changes suggested from you

@AndreMiras
Copy link
Member

Fixed in #1803 thanks for the contribution.

@rubar-tech
Copy link

rubar-tech commented Jun 20, 2021

I submitted a pull request that fixed this bug, but I have a new issue in pyzmq dependency. I don't know, but I believe that this is not relationed, is a new issue on pyzmq recipe

[INFO]:    Building pyzmq for armeabi-v7a
[INFO]:    zmq apparently isn't already in site-packages
Traceback (most recent call last):
  File "/home/avp/src/admobilize/admprovider/venv/bin/p4a", line 11, in <module>
    load_entry_point('python-for-android==0.7.1', 'console_scripts', 'p4a')()
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 1075, in main
    ToolchainCL()
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 577, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/build.py", line 562, in build_recipes
    recipe.build_arch(arch)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/recipe.py", line 986, in build_arch
    self.build_cython_components(arch)
  File "/home/avp/src/admobilize/admprovider/venv/lib/python3.6/site-packages/pythonforandroid/recipes/pyzmq/__init__.py", line 46, in build_cython_components
    """.format(libzmq_prefix))
TypeError: a bytes-like object is required, not 'str'

i have the same issue, i raised an issue in buildozer, number 1333 the .encode() function already exists in latest versin of buildozer, can u take a look please

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

No branches or pull requests

3 participants