pfalcon / pycopy

Pycopy - a minimalist and memory-efficient Python dialect. Good for desktop, cloud, constrained systems, microcontrollers, and just everything.
http://pycopy.readthedocs.io
MIT License
805 stars 78 forks source link

build failed for android port on macos #55

Open Lwenkun opened 3 years ago

Lwenkun commented 3 years ago

I use build-android.sh in "cross" branch to build but get some errors. Is there tutorial about how to build for android port on macos? My steps:

make-standalone-toolchain.sh
cd ports/unix
make axtls
./build-android.sh

the last step throws error:

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build-micropython-android/lib/libffi; cd build-micropython-android/lib/libffi; \
        /Users/liwenkun/Desktop/pycopy/lib/libffi/configure --host=arm-linux-androideabi --prefix=$PWD/out --disable-structs CC="clang" CXX="arm-linux-androideabi-g++" LD="arm-linux-androideabi-ld" CFLAGS="-Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions"; \
        /Applications/Xcode.app/Contents/Developer/usr/bin/make install-exec-recursive; /Applications/Xcode.app/Contents/Developer/usr/bin/make -C include install-data-am
checking build system type... x86_64-apple-darwin20.3.0
checking host system type... arm-unknown-linux-androideabi
checking target system type... arm-unknown-linux-androideabi
checking for gsed... sed
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for arm-linux-androideabi-gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of clang... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-androideabi-g++ accepts -g... yes
checking dependency style of arm-linux-androideabi-g++... gcc3
checking dependency style of clang... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... arm-linux-androideabi-ld
checking if the linker (arm-linux-androideabi-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /Users/liwenkun/android-sdk/ndk/16.1.4479499/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B
checking the name lister (/Users/liwenkun/android-sdk/ndk/16.1.4479499/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert x86_64-apple-darwin20.3.0 file names to arm-unknown-linux-androideabi format... func_convert_file_noop
checking how to convert x86_64-apple-darwin20.3.0 file names to toolchain format... func_convert_file_noop
checking for arm-linux-androideabi-ld option to reload object files... -r
checking for arm-linux-androideabi-objdump... arm-linux-androideabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-linux-androideabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-linux-androideabi-ar... arm-linux-androideabi-ar
checking for archiver @FILE support... @
checking for arm-linux-androideabi-strip... (cached) arm-linux-androideabi-strip
checking for arm-linux-androideabi-ranlib... arm-linux-androideabi-ranlib
checking command to parse /Users/liwenkun/android-sdk/ndk/16.1.4479499/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B output from clang object... failed
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-linux-androideabi-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fPIC -DPIC
checking if clang PIC flag -fPIC -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (arm-linux-androideabi-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Android linker
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... clang -E
checking for ld used by arm-linux-androideabi-g++... arm-linux-androideabi-ld
checking if the linker (arm-linux-androideabi-ld) is GNU ld... yes
checking whether the arm-linux-androideabi-g++ linker (arm-linux-androideabi-ld) supports shared libraries... yes
checking for arm-linux-androideabi-g++ option to produce PIC... -fPIC -DPIC
checking if arm-linux-androideabi-g++ PIC flag -fPIC -DPIC works... yes
checking if arm-linux-androideabi-g++ static flag -static works... no
checking if arm-linux-androideabi-g++ supports -c -o file.o... yes
checking if arm-linux-androideabi-g++ supports -c -o file.o... (cached) yes
checking whether the arm-linux-androideabi-g++ linker (arm-linux-androideabi-ld) supports shared libraries... yes
checking dynamic linker characteristics... Android linker
checking how to hardcode library paths into programs... immediate
checking size of size_t... 8
checking for C compiler vendor... clang
checking CFLAGS for maximum warnings... -Wall
checking whether to enable maintainer-specific portions of Makefiles... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking for mkostemp... yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for ANSI C header files... (cached) yes
checking for memcpy... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking size of double... 8
checking size of long double... 16
checking whether byte ordering is bigendian... no
checking assembler .cfi pseudo-op support... yes
checking for _ prefix in compiled symbols... no
checking whether .eh_frame section should be read-only... no
checking for __attribute__((visibility("hidden")))... no
clang: error: no input files
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating include/Makefile
config.status: creating include/ffi.h
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating man/Makefile
config.status: creating libffi.pc
config.status: creating fficonfig.h
config.status: linking /Users/liwenkun/Desktop/pycopy/lib/libffi/src/arm/ffitarget.h to include/ffitarget.h
config.status: executing buildir commands
config.status: skipping top_srcdir/Makefile - not created
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include commands
config.status: executing src commands
Making install-exec in include
make[2]: Nothing to be done for `install-exec'.
Making install-exec in testsuite
make[2]: Nothing to be done for `install-exec'.
Making install-exec in man
make[2]: Nothing to be done for `install-exec'.
depbase=`echo src/prep_cif.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi  -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src   -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions  -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF $depbase.Tpo -c -o src/prep_cif.lo /Users/liwenkun/Desktop/pycopy/lib/libffi/src/prep_cif.c &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF src/.deps/prep_cif.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/prep_cif.c  -fPIC -DPIC -o src/.libs/prep_cif.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/prep_cif.lo -MD -MP -MF src/.deps/prep_cif.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/prep_cif.c -o src/prep_cif.o >/dev/null 2>&1
depbase=`echo src/types.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi  -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src   -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions  -Wall -fexceptions -MT src/types.lo -MD -MP -MF $depbase.Tpo -c -o src/types.lo /Users/liwenkun/Desktop/pycopy/lib/libffi/src/types.c &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/types.lo -MD -MP -MF src/.deps/types.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/types.c  -fPIC -DPIC -o src/.libs/types.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/types.lo -MD -MP -MF src/.deps/types.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/types.c -o src/types.o >/dev/null 2>&1
depbase=`echo src/raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi  -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src   -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions  -Wall -fexceptions -MT src/raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/raw_api.lo /Users/liwenkun/Desktop/pycopy/lib/libffi/src/raw_api.c &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/raw_api.lo -MD -MP -MF src/.deps/raw_api.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/raw_api.c  -fPIC -DPIC -o src/.libs/raw_api.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/raw_api.lo -MD -MP -MF src/.deps/raw_api.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/raw_api.c -o src/raw_api.o >/dev/null 2>&1
depbase=`echo src/java_raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi  -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src   -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions  -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/java_raw_api.lo /Users/liwenkun/Desktop/pycopy/lib/libffi/src/java_raw_api.c &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/java_raw_api.c  -fPIC -DPIC -o src/.libs/java_raw_api.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/java_raw_api.c -o src/java_raw_api.o >/dev/null 2>&1
depbase=`echo src/closures.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi  -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src   -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions  -Wall -fexceptions -MT src/closures.lo -MD -MP -MF $depbase.Tpo -c -o src/closures.lo /Users/liwenkun/Desktop/pycopy/lib/libffi/src/closures.c &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/closures.c  -fPIC -DPIC -o src/.libs/closures.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/closures.c -o src/closures.o >/dev/null 2>&1
depbase=`echo src/arm/ffi.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi  -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src   -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions  -Wall -fexceptions -MT src/arm/ffi.lo -MD -MP -MF $depbase.Tpo -c -o src/arm/ffi.lo /Users/liwenkun/Desktop/pycopy/lib/libffi/src/arm/ffi.c &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi -I. -I/Users/liwenkun/Desktop/pycopy/lib/libffi/include -Iinclude -I/Users/liwenkun/Desktop/pycopy/lib/libffi/src -Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions -Wall -fexceptions -MT src/arm/ffi.lo -MD -MP -MF src/arm/.deps/ffi.Tpo -c /Users/liwenkun/Desktop/pycopy/lib/libffi/src/arm/ffi.c  -fPIC -DPIC -o src/arm/.libs/ffi.o
/Users/liwenkun/Desktop/pycopy/lib/libffi/src/arm/ffi.c:804:3: error: implicit declaration of function '__clear_cache' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  __clear_cache(closure->tramp, closure->tramp + 8);    /* clear data map */
  ^
1 error generated.
make[2]: *** [src/arm/ffi.lo] Error 1
make[1]: *** [install-exec-recursive] Error 1
 /usr/local/bin/gmkdir -p '/Users/liwenkun/Desktop/pycopy/ports/unix/build-micropython-android/lib/libffi/out/lib/libffi-3.99999/include'
 /usr/local/bin/ginstall -c -m 644 ffi.h ffitarget.h '/Users/liwenkun/Desktop/pycopy/ports/unix/build-micropython-android/lib/libffi/out/lib/libffi-3.99999/include'
mkdir -p build-micropython-android/genhdr
python ../../py/makeversionhdr.py build-micropython-android/genhdr/mpversion.h
GEN build-micropython-android/genhdr/mpversion.h
GEN build-micropython-android/genhdr/qstr.i.last
clang -E -DNO_QSTR -Ibuild-micropython-android/tmp -I../../lib/berkeley-db-1.xx/PORT/include -I. -I../.. -Ibuild-micropython-android -I../../lib/mp-readline -Wall -Werror -Wpointer-arith -Wuninitialized -std=gnu99 -DUNIX -DFFCONF_H=\"lib/oofatfs/ffconf.h\" -DMICROPY_PY_USSL=1 -DMICROPY_SSL_AXTLS=1 -I../../lib/axtls/ssl -I../../lib/axtls/crypto -I../../extmod/axtls-include -DMICROPY_PY_BTREE=1 -DMICROPY_USE_READLINE=1 -DMICROPY_PY_TERMIOS=1 -DMICROPY_PY_SOCKET=1 -DMICROPY_PY_THREAD=1 -DMICROPY_PY_THREAD_GIL=0 -Ibuild-micropython-android/lib/libffi/out/lib/libffi-3.99999/include -DMICROPY_PY_FFI=1 -I/usr/lib/jvm/java-7-openjdk-amd64/include -DMICROPY_PY_JNI=1 -Os -fdata-sections -ffunction-sections -DNDEBUG  -U _FORTIFY_SOURCE -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool -DMICROPY_MODULE_FROZEN_MPY -DMPZ_DIG_SIZE=16  ../../lib/axtls/ssl/asn1.c ../../lib/axtls/ssl/loader.c ../../lib/axtls/ssl/tls1.c ../../lib/axtls/ssl/tls1_svr.c ../../lib/axtls/ssl/tls1_clnt.c ../../lib/axtls/ssl/x509.c ../../lib/axtls/crypto/aes.c ../../lib/axtls/crypto/bigint.c ../../lib/axtls/crypto/crypto_misc.c ../../lib/axtls/crypto/hmac.c ../../lib/axtls/crypto/md5.c ../../lib/axtls/crypto/rsa.c ../../lib/axtls/crypto/sha1.c ../../extmod/modbtree.c ../../lib/berkeley-db-1.xx/btree/bt_close.c ../../lib/berkeley-db-1.xx/btree/bt_conv.c ../../lib/berkeley-db-1.xx/btree/bt_debug.c ../../lib/berkeley-db-1.xx/btree/bt_delete.c ../../lib/berkeley-db-1.xx/btree/bt_get.c ../../lib/berkeley-db-1.xx/btree/bt_open.c ../../lib/berkeley-db-1.xx/btree/bt_overflow.c ../../lib/berkeley-db-1.xx/btree/bt_page.c ../../lib/berkeley-db-1.xx/btree/bt_put.c ../../lib/berkeley-db-1.xx/btree/bt_search.c ../../lib/berkeley-db-1.xx/btree/bt_seq.c ../../lib/berkeley-db-1.xx/btree/bt_split.c ../../lib/berkeley-db-1.xx/btree/bt_utils.c ../../lib/berkeley-db-1.xx/mpool/mpool.c modtermios.c modusocket.c modffi.c modjni.c ../../py/mpstate.c ../../py/malloc.c ../../py/gc.c ../../py/pystack.c ../../py/qstr.c ../../py/vstr.c ../../py/mpprint.c ../../py/unicode.c ../../py/mpz.c ../../py/reader.c ../../py/lexer.c ../../py/parse.c ../../py/scope.c ../../py/compile.c ../../py/emitcommon.c ../../py/emitbc.c ../../py/asmbase.c ../../py/asmx64.c ../../py/emitnx64.c ../../py/asmx86.c ../../py/emitnx86.c ../../py/asmthumb.c ../../py/emitnthumb.c ../../py/emitinlinethumb.c ../../py/asmarm.c ../../py/emitnarm.c ../../py/asmxtensa.c ../../py/emitnxtensa.c ../../py/emitinlinextensa.c ../../py/formatfloat.c ../../py/parsenumbase.c ../../py/parsenum.c ../../py/emitglue.c ../../py/persistentcode.c ../../py/runtime.c ../../py/runtime_utils.c ../../py/scheduler.c ../../py/nativeglue.c ../../py/stackctrl.c ../../py/argcheck.c ../../py/warning.c ../../py/map.c ../../py/obj.c ../../py/objarray.c ../../py/objattrtuple.c ../../py/objbool.c ../../py/objboundmeth.c ../../py/objcell.c ../../py/objclosure.c ../../py/objcomplex.c ../../py/objdeque.c ../../py/objdict.c ../../py/objenumerate.c ../../py/objexcept.c ../../py/objfilter.c ../../py/objfloat.c ../../py/objfun.c ../../py/objgenerator.c ../../py/objgetitemiter.c ../../py/objint.c ../../py/objint_longlong.c ../../py/objint_mpz.c ../../py/objlist.c ../../py/objmap.c ../../py/objmodule.c ../../py/objobject.c ../../py/objpolyiter.c ../../py/objproperty.c ../../py/objnone.c ../../py/objnamedtuple.c ../../py/objrange.c ../../py/objreversed.c ../../py/objset.c ../../py/objsingleton.c ../../py/objslice.c ../../py/objstr.c ../../py/objstrunicode.c ../../py/objstringio.c ../../py/objtuple.c ../../py/objtype.c ../../py/objzip.c ../../py/opmethods.c ../../py/sequence.c ../../py/stream.c ../../py/binary.c ../../py/builtinimport.c ../../py/builtinevex.c ../../py/builtinhelp.c ../../py/modarray.c ../../py/modbuiltins.c ../../py/modcollections.c ../../py/modgc.c ../../py/modio.c ../../py/modmath.c ../../py/modcmath.c ../../py/modmicropython.c ../../py/modstruct.c ../../py/modsys.c ../../py/moduerrno.c ../../py/modthread.c ../../py/vm.c ../../py/bc.c ../../py/showbc.c ../../py/repl.c ../../py/smallint.c ../../py/frozenmod.c ../../extmod/moductypes.c ../../extmod/modujson.c ../../extmod/modure.c ../../extmod/moduzlib.c ../../extmod/moduheapq.c ../../extmod/modutimeq.c ../../extmod/moduhashlib.c ../../extmod/moducryptolib.c ../../extmod/modubinascii.c ../../extmod/virtpin.c ../../extmod/machine_mem.c ../../extmod/machine_pinbase.c ../../extmod/machine_signal.c ../../extmod/machine_pulse.c ../../extmod/machine_i2c.c ../../extmod/machine_spi.c ../../extmod/modussl_axtls.c ../../extmod/modussl_mbedtls.c ../../extmod/modurandom.c ../../extmod/moduselect.c ../../extmod/modwebsocket.c ../../extmod/modwebrepl.c ../../extmod/modframebuf.c ../../extmod/vfs.c ../../extmod/vfs_reader.c ../../extmod/vfs_posix.c ../../extmod/vfs_posix_file.c ../../extmod/vfs_fat.c ../../extmod/vfs_fat_diskio.c ../../extmod/vfs_fat_file.c ../../extmod/utime_mphal.c ../../extmod/uos_dupterm.c ../../lib/embed/abort_.c ../../lib/utils/printf.c main.c gccollect.c unix_mphal.c mpthreadport.c input.c file.c modmachine.c modos.c moduos_vfs.c modtime.c moduselect.c alloc.c coverage.c fatfs_port.c ../../lib/mp-readline/readline.c ../../lib/timeutils/timeutils.c ../../lib/oofatfs/ff.c ../../lib/oofatfs/option/unicode.c ../../py/mpconfig.h mpconfigport.h >build-micropython-android/genhdr/qstr.i.last;
modjni.c:36:10: fatal error: 'jni.h' file not found
#include <jni.h>
         ^~~~~~~
1 error generated.
make: *** [build-micropython-android/genhdr/qstr.i.last] Error 1
make: *** Deleting file `build-micropython-android/genhdr/qstr.i.last'
pfalcon commented 3 years ago

No, there's no special tutorial AFAIK. The idea was that that script would capture basic steps needed to build it, but it definitely may be not complete. I myself didn't look into Android port for a while, and currently busy with other things in the project, but will try to look when time permits.

pfalcon commented 3 years ago

Oh, btw, one things is that I always used Linux for it. (And I don't have access to MacOS.)