Comments (9)
Today I'd been testing it with a linux environment (Ubuntu 16.04.3). And I got an error too but actually a different one. down here the build code. it seems there is a miss parenthesis or something.
albert@albert-VB:~/esp/workspace/xively-client-c$ make PRESET=ESP32
# Using build PRESET: "ESP32" to set CONFIG and TARGET variables:
. XI_BSP_PLATFORM: [esp32]
. XI_BSP_TLS: [wolfssl]
# Xively C Client
. run 'make help' for more information, including a list of valid Build PRESETS.
. CONFIG: [memory_fs-tls_bsp-control_topic-secure_file_transfer]
. TARGET: [esp32-static-release]
. COMPILER: [xtensa-esp32-elf-gcc]
############################
# Xively TLS Build Notice: #
############################
The Xively Client Build Configuration you're using includes
a third party TLS implementation XI_BSP_TLS: wolfssl
The Xively make system will download and build this TLS library for you.
Please review the license information for your TLS library selection below
and check make help_tls for more information.
(cd /home/albert/esp/workspace/xively-client-c/src//import/tls/ && ./download_and_compile_wolfssl.sh)
!! IMPORTANT !!
WolfSSL's build system requires autotools to be installed on your host system.
Please install the followng packages before proceeding:
MacOSX:
brew update
brew install autoconf automake libtool
Ubuntu:
sudo apt-get update
sudo apt-get install autoconf
sudo apt-get install autotools-dev
sudo apt-get install libtool
For other TLS library options please run make help_tls.
! If you proceed from this step and the build fails then you will need to: !
1: make clean_all
2: rm -rf src/import/tls/wolfssl
Please acknowledge these tool dependencies. Do you wish to proceed? [Y/N] y
-----------------
WolfSSL LICENSING
-----------------
wolfSSL (formerly known as CyaSSL) and wolfCrypt are either licensed for use
under the GPLv2 or a standard commercial license. For our users who cannot use
wolfSSL under GPLv2, a commercial license to wolfSSL and wolfCrypt is available.
Please contact wolfSSL Inc. directly at:
Email: [email protected]
Phone: +1 425 245-8247
More information can be found on the wolfSSL website at www.wolfssl.com.
Do you agree to the license of this third party library? [Y/N] y
Cloning into 'wolfssl'...
remote: Counting objects: 48170, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 48170 (delta 14), reused 26 (delta 7), pack-reused 48121
Receiving objects: 100% (48170/48170), 37.67 MiB | 14.59 MiB/s, done.
Resolving deltas: 100% (35239/35239), done.
Checking connectivity... done.
Note: checking out 'tags/v3.10.2-stable'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 7da446c... Merge pull request #748 from JacobBarthelmeh/Release
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:58: installing 'build-aux/compile'
configure.ac:17: installing 'build-aux/config.guess'
configure.ac:17: installing 'build-aux/config.sub'
configure.ac:20: installing 'build-aux/install-sh'
configure.ac:20: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
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... no
checking whether to build static libraries... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking whether make supports nested variables... (cached) yes
checking size of long long... 8
checking size of long... 4
checking for __uint128_t... no
checking for gethostbyname... yes
checking for getaddrinfo... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for socket... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for socket in -lnetwork... no
checking whether byte ordering is bigendian... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for size_t... yes
checking for uint8_t... yes
checking dependency style of gcc... gcc3
checking for cos in -lm... yes
checking for thread local storage (TLS) class... __thread
checking for debug... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for fast RSA... no
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for vcs system... git
checking for vcs checkout... yes
checking whether the linker accepts -Werror... yes
checking whether the linker accepts -z relro -z now... yes
checking whether the linker accepts -pie... yes
checking whether C compiler accepts ... yes
checking whether C compiler accepts -Werror... yes
checking whether C compiler accepts -g... yes
checking whether C compiler accepts -ggdb... yes
checking whether C compiler accepts -O0... yes
checking whether C compiler accepts -Wno-pragmas... yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wno-strict-aliasing... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wunknown-pragmas... yes
checking whether C compiler accepts -Wthis-test-should-fail... no
checking whether C compiler accepts --param=ssp-buffer-size=1... yes
checking whether C compiler accepts -Waddress... yes
checking whether C compiler accepts -Warray-bounds... yes
checking whether C compiler accepts -Wbad-function-cast... yes
checking whether C compiler accepts -Wchar-subscripts... yes
checking whether C compiler accepts -Wcomment... yes
checking whether C compiler accepts -Wfloat-equal... yes
checking whether C compiler accepts -Wformat-security... yes
checking whether C compiler accepts -Wformat=2... yes
checking whether C compiler accepts -Wmaybe-uninitialized... yes
checking whether C compiler accepts -Wmissing-field-initializers... yes
checking whether C compiler accepts -Wmissing-noreturn... yes
checking whether C compiler accepts -Wmissing-prototypes... yes
checking whether C compiler accepts -Wnested-externs... yes
checking whether C compiler accepts -Wnormalized=id... yes
checking whether C compiler accepts -Woverride-init... yes
checking whether C compiler accepts -Wpointer-arith... yes
checking whether C compiler accepts -Wpointer-sign... yes
checking whether C compiler accepts -Wredundant-decls... yes
checking whether C compiler accepts -Wshadow... yes
checking whether C compiler accepts -Wshorten-64-to-32... no
checking whether C compiler accepts -Wsign-compare... yes
checking whether C compiler accepts -Wstrict-overflow=1... yes
checking whether C compiler accepts -Wstrict-prototypes... no
checking whether C compiler accepts -Wswitch-enum... yes
checking whether C compiler accepts -Wundef... yes
checking whether C compiler accepts -Wunused... yes
checking whether C compiler accepts -Wunused-result... yes
checking whether C compiler accepts -Wunused-variable... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -fwrapv... yes
creating wolfssl-config - generic 3.10.2 for -lwolfssl
checking the number of available CPUs... 3
configure: adding automake macro support
configure: creating aminclude.am
configure: added jobserver support to make for 4 jobs
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating stamp-h
config.status: creating Makefile
config.status: creating wolfssl/version.h
config.status: creating wolfssl/options.h
config.status: creating support/wolfssl.pc
config.status: creating rpm/spec
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
---
Running make clean...
---
Generating user options header...
option w/o begin -D is -g, not saving to wolfssl/options.h
not outputting (N)DEBUG to wolfssl/options.h
option w/o begin -D is -pthread, not saving to wolfssl/options.h
option w/o begin -D is -Wall, not saving to wolfssl/options.h
option w/o begin -D is -Wno-unused, not saving to wolfssl/options.h
---
Configuration summary for wolfssl version 3.10.2
* Installation prefix: /usr/local
* System type: pc-linux-gnu
* Host CPU: i686
* C Compiler: gcc
* C Flags: -Werror -g -ggdb -O0 -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv
* C++ Compiler: g++
* C++ Flags: -g -O2
* CPP Flags: -fvisibility=hidden
* CCAS Flags:
* LIB Flags: -pie -z relro -z now -Werror
* Debug enabled: yes
* Warnings as failure: yes
* make -j: 4
* VCS checkout: yes
Features
* Single threaded: no
* Filesystem: no
* OpenSSH Build: no
* OpenSSL Extra API: no
* Max Strength Build: no
* Distro Build: no
* fastmath: no
* sniffer: no
* snifftest: no
* ARC4: no
* AES: yes
* AES-NI: no
* AES-GCM: yes
* AES-CCM: no
* DES3: no
* IDEA: no
* Camellia: no
* NULL Cipher: no
* MD5: yes
* RIPEMD: no
* SHA: yes
* SHA-224: no
* SHA-512: no
* BLAKE2: no
* CMAC: no
* keygen: no
* certgen: no
* certreq: no
* certext: no
* HC-128: no
* RABBIT: no
* CHACHA: yes
* Hash DRBG: yes
* PWDBASED: no
* scrypt: no
* wolfCrypt Only: no
* HKDF: no
* X9.63 KDF: no
* MD4: no
* PSK: no
* Poly1305: yes
* LEANPSK: no
* LEANTLS: no
* RSA: yes
* DSA: no
* DH: yes
* ECC: no
* CURVE25519: no
* ED25519: no
* FPECC: no
* ECC_ENCRYPT: no
* ASN: yes
* Anonymous cipher: no
* CODING: yes
* MEMORY: yes
* I/O POOL: no
* LIGHTY: no
* STUNNEL: no
* ERROR_STRINGS: yes
* DTLS: no
* SCTP: no
* Old TLS Versions: no
* SSL version 3.0: no
* OCSP: yes
* OCSP Stapling: yes
* OCSP Stapling v2: no
* CRL: no
* CRL-MONITOR: no
* Persistent session cache: no
* Persistent cert cache: no
* Atomic User Record Layer: no
* Public Key Callbacks: no
* NTRU: no
* Whitewood netRandom: no
* Server Name Indication: yes
* ALPN: no
* Maximum Fragment Length: no
* Truncated HMAC: no
* Supported Elliptic Curves: no
* Session Ticket: no
* Extended Master Secret: yes
* Renegotiation Indication: no
* Secure Renegotiation: no
* All TLS Extensions: no
* PKCS#7 no
* wolfSCEP no
* Secure Remote Password no
* Small Stack: no
* valgrind unit tests: no
* LIBZ: no
* Examples: no
* User Crypto: no
* Fast RSA: no
* Async Crypto: no
* Cavium: no
* ARM ASM: no
* AES Key Wrap: no
---
make[1]: Entering directory '/home/albert/esp/workspace/xively-client-c/src/import/tls/wolfssl'
make -j4 all-am
make[2]: Entering directory '/home/albert/esp/workspace/xively-client-c/src/import/tls/wolfssl'
CC wolfcrypt/src/src_libwolfssl_la-hmac.lo
CC wolfcrypt/src/src_libwolfssl_la-hash.lo
CC wolfcrypt/src/src_libwolfssl_la-random.lo
CC wolfcrypt/src/src_libwolfssl_la-sha256.lo
CC wolfcrypt/src/src_libwolfssl_la-rsa.lo
CC wolfcrypt/src/src_libwolfssl_la-aes.lo
CC wolfcrypt/src/src_libwolfssl_la-sha.lo
CC wolfcrypt/src/src_libwolfssl_la-logging.lo
CC wolfcrypt/src/src_libwolfssl_la-wc_encrypt.lo
CC wolfcrypt/src/src_libwolfssl_la-wc_port.lo
CC wolfcrypt/src/src_libwolfssl_la-error.lo
CC wolfcrypt/src/src_libwolfssl_la-signature.lo
CC wolfcrypt/src/src_libwolfssl_la-wolfmath.lo
CC wolfcrypt/src/src_libwolfssl_la-memory.lo
CC wolfcrypt/src/src_libwolfssl_la-dh.lo
CC wolfcrypt/src/src_libwolfssl_la-asn.lo
CC wolfcrypt/src/src_libwolfssl_la-coding.lo
CC wolfcrypt/src/src_libwolfssl_la-poly1305.lo
CC wolfcrypt/src/src_libwolfssl_la-md5.lo
CC wolfcrypt/src/src_libwolfssl_la-chacha.lo
CC wolfcrypt/src/src_libwolfssl_la-chacha20_poly1305.lo
CC wolfcrypt/src/src_libwolfssl_la-integer.lo
CC src/src_libwolfssl_la-internal.lo
CC src/src_libwolfssl_la-keys.lo
CC src/src_libwolfssl_la-io.lo
CC src/src_libwolfssl_la-ssl.lo
CC src/src_libwolfssl_la-tls.lo
CC src/src_libwolfssl_la-ocsp.lo
CC wolfcrypt/benchmark/benchmark.o
CC wolfcrypt/test/test.o
CCLD src/libwolfssl.la
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD wolfcrypt/test/testwolfcrypt
CCLD wolfcrypt/benchmark/benchmark
make[2]: Leaving directory '/home/albert/esp/workspace/xively-client-c/src/import/tls/wolfssl'
make[1]: Leaving directory '/home/albert/esp/workspace/xively-client-c/src/import/tls/wolfssl'
WolfSSL Build Complete.
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/src/internal.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/src/io.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/src/keys.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/src/ocsp.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/src/ssl.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/src/tls.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/aes.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/arc4.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/asn.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/coding.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/dh.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/error.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/hash.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/hmac.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/integer.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/logging.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/md5.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/memory.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/random.o
/home/albert/esp/workspace/xively-client-c/src/import/tls/wolfssl/wolfcrypt/src/random.c:1440:2: warning: #warning "write a real random seed!!!!, just for testing now" [-Wcpp]
#warning "write a real random seed!!!!, just for testing now"
^
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/rsa.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/sha.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/sha256.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/wc_port.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/wolfssl/wolfcrypt/src/wc_encrypt.o
[xtensa-esp32-elf-ar] /home/albert/esp/workspace/xively-client-c/bin/esp32/libwolfssl.a
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/libxively/protobuf-generated/control_topic.pb-c.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/libxively/io/fs/memory/xi_fs_memory.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_fwu_notifications_esp32.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_fwu_esp32.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_time_esp32.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_mem_esp32.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_io_net_esp32.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_rng_esp32.o
[xtensa-esp32-elf-gcc] /home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_io_fs_esp32.o
In file included from /home/albert/esp/esp-idf/components/fatfs/src/ffconf.h:1:0,
from /home/albert/esp/esp-idf/components/fatfs/src/ff.h:30,
from /home/albert/esp/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
from /home/albert/esp/workspace/xively-client-c/src/bsp/platform/esp32/xi_bsp_io_fs_esp32.c:20:
/home/albert/esp/esp-idf/components/fatfs/src/ffconf.h:201:27: error: 'CONFIG_WL_SECTOR_SIZE' undeclared here (not in a function)
#define FF_SS_WL CONFIG_WL_SECTOR_SIZE
^
/home/albert/esp/esp-idf/components/fatfs/src/ffconf.h:204:41: note: in expansion of macro 'FF_SS_WL'
#define FF_MAX_SS MAX(FF_SS_SDCARD, FF_SS_WL)
^
/home/albert/esp/esp-idf/components/fatfs/src/ff.h:130:11: note: in expansion of macro 'FF_MAX_SS'
BYTE win[FF_MAX_SS]; /* Disk access window for Directory, FAT (and file data a
^
Makefile:135: recipe for target '/home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_io_fs_esp32.o' failed
make: *** [/home/albert/esp/workspace/xively-client-c/obj/esp32/bsp/platform/esp32/xi_bsp_io_fs_esp32.o] Error 1
from xively-client-c.
Hi @albertmbt !
Thanks a lot for the logs. I'm gonna try to figure out what's going on.
I believe the error on Ubuntu is due to an incompatibility between the latest esp-idf version and the one we used for development. Please, try using the same version we did, see if that helps:
cd esp-idf
git checkout -b xively_tutorial_version e6afe28
Alternatively, you can fix the issue yourself by adding these 2 lines to xively-client-c/src/bsp/platform/esp32/sdkconfig.h
:
#define CONFIG_WL_SECTOR_SIZE 4096
#define CONFIG_WL_SECTOR_SIZE_4096 1
While I look into the Windows issues, you should also try using commit e6afe28
there. It may have some effect.
from xively-client-c.
Linux:
Using the old sdk that you used to program your code works fine for building the libraries, but on the make command for building the example after having many advertisements to update my toolchain, It crashes again.
Windows:
I added what you said to the sdkconfig.h and doesn't work for me.
from xively-client-c.
I was able to compile using this setup:
- 64-Bit Ubuntu
14.04.4
- ESP-IDF master branch, tag
v3.0-dev
, commit0554bc
- Pre-compiled toolchain
xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
- xively-client-c branch
fix/esp32_builds
, commit4ac5b9
(it includes the fix you already implemented)
When I build the application, it also complains about expecting to see the toolchain version "1.22.0-75-gbaf03c2". But Espressif's docs still link to the one I'm using, and it works fine for me.
If the SDK starts prompting questions about what features you'd like to enable/disable when you run make
on the application, just accept all the defaults.
If you're running the same version of everything and it still fails, please give us those logs. If you're running an older version of any component, try updating it and see if that helps.
from xively-client-c.
@albertmbt I've been trying multiple versions of the SDK and libxively on Windows, and I can't replicate the behaviour you're seeing. I was able to successfully compile libwolfssl.a, libxively.a and xively_demo.bin using this setup:
- Windows 10
- ESP-IDF master branch, tag
v3.0-dev
, commit582b73
- Pre-compiled windows toolchain and shell environment:
esp32_win32_msys2_environment_and_toolchain-20170111.zip
- xively-client-c branch
fix/esp32_builds
, commit4ac5b9
(it includes the fix you already implemented)
Can you please verify you're running the same setup, or describe the differences between mine and yours?
from xively-client-c.
Hi, sorry for taking that long to answer.
Today I started to reconfigure my setup to look like yours, using esp-idf v3.0-dev, toolchain xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz, the only diference is that I use ubuntu 16.04.3. And also due the fact i started from zero i realized that you deleted xively-client-c branch fix/esp32_builds.
So at the end i tried everything again but using xively-client-c master branch making the adds you suggested. I got an error compiling your libraries again, this time maybe due xively-client-c, because last time I tryed with fix/esp32_builds the libraries, at least, where sucessfully builded.
For tomorrow I'll check the same process with another computer with different configurations.
from xively-client-c.
Great. Send us some logs when you've tried that.
If you want to run it, the fix/esp32_builds branch has been merged into development, but not yet into master. I'm still doing some testing in that branch, though.
from xively-client-c.
At the end I have been able to put it to work. I used: Ubuntu 16.04 x64 bits; esp-idf v3.0-dev; xively_client_c development; toolchain xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz.
thanks for the help.
from xively-client-c.
Glad to hear! If you have any feedback about what made it a difficult process, we're always looking to improve user experience :)
I'm closing this issue now.
Cheers
from xively-client-c.
Related Issues (11)
- Images for readme doc
- Images for tutorial HOT 3
- Code or old instructions issue? HOT 5
- CC3200 : error 32 (server not available) HOT 2
- Fails fo Building the MQTT and TLS libraries under Windows HOT 7
- Building examples fails in OS X High Sierra HOT 10
- Update WolfSSL from 3.10.2 ā 3.13.0 for Mac OSX HOT 3
- xi_publish returns with error value 72 HOT 1
- xi_bsp_time_getcurrenttime_seconds may overrun after 49.7 days of uptime HOT 1
- xi_bsp_time_cc3220sf_sntp fails to connect to SNTP server HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xively-client-c.