Sorry, I missed that documentation. Now I've followed the instruction. I've done:
plus enabled SSL (MICROPY_PY_USSL=1)
When running $ make deplibs I get:
Code: Select all
cd ../lib/axtls; make all CC="clang" LD="ld"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C crypto
In file included from aes.c:38:
In file included from ../ssl/os_port.h:40:
./os_int.h:59:10: fatal error: 'endian.h' file not found
#include <endian.h>
According to
here, I've added this in the makefile :
Code: Select all
INC += -I/usr/include/machine in the Makefile.
Using this configuration, make goes further but I get another error :
Code: Select all
$ make deplibs
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
cd ../lib/libffi; git clean -d -x -f
Removing Makefile.in
Removing aclocal.m4
Removing autom4te.cache/
Removing build_dir/
Removing compile
Removing config.guess
Removing config.sub
Removing configure
Removing depcomp
Removing fficonfig.h.in
Removing include/Makefile.in
Removing install-sh
Removing ltmain.sh
Removing m4/libtool.m4
Removing m4/ltoptions.m4
Removing m4/ltsugar.m4
Removing m4/ltversion.m4
Removing m4/lt~obsolete.m4
Removing man/Makefile.in
Removing mdate-sh
Removing missing
Removing testsuite/Makefile.in
cd ../lib/libffi; ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /opt/local/bin/aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: /opt/local/bin/glibtoolize --copy --force
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /opt/local/bin/autoconf --force
autoreconf: running: /opt/local/bin/autoheader --force
autoreconf: running: /opt/local/bin/automake --add-missing --copy --force-missing
configure.ac:31: installing './compile'
configure.ac:8: installing './config.guess'
configure.ac:8: installing './config.sub'
configure.ac:19: installing './install-sh'
configure.ac:19: installing './missing'
Makefile.am: installing './depcomp'
Makefile.am:18: installing './mdate-sh'
autoreconf: Leaving directory `.'
mkdir -p ../lib/libffi/build_dir; cd ../lib/libffi/build_dir; \
../configure --prefix=$PWD/out CC="clang" CXX="g++" LD="ld"; \
make install-exec-recursive; make -C include install-data-am
checking build system type... x86_64-apple-darwin15.0.0
checking host system type... x86_64-apple-darwin15.0.0
checking target system type... x86_64-apple-darwin15.0.0
checking for gsed... sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../install-sh -c -d
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 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... configure: error: in `/Users/nico/Dev/micropython/micropython/lib/libffi/build_dir':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make[1]: *** No rule to make target `install-exec-recursive'. Stop.
make: *** include: No such file or directory. Stop.
make: *** [libffi] Error 2