igrr / axtls-8266

axTLS port for ESP8266
Other
79 stars 33 forks source link

build fails #63

Open owensc84 opened 5 years ago

owensc84 commented 5 years ago

make xtensa-lx106-elf-gcc -std=c99 -DESP8266 -Wall -Os -g -O2 -Wpointer-arith -Wl,-EL -nostdlib -mlongcalls -mno-text-section-literals -Dets -DICACHE_FLASH -ffunction-sections -fdata-sections -fdebug-prefix-map=/home/cdo/Documents/git/axtls-8266= -fdebug-prefix-map=/=xtensa-lx106-elf -gno-record-gcc-switches -mforce-l32 -I/include -Icrypto -Issl -I. -c -o crypto/aes.o crypto/aes.c In file included from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/stdio.h:6:0, from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/stdio.h:63, from ssl/os_port.h:46, from crypto/aes.c:38: /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/pgmspace.h: In function 'pgm_read_byte_inlined': /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/pgmspace.h:60:3: error: expected ')' before ':' token pgm_read_with_offset(addr, res); ^ /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/pgmspace.h: In function 'pgm_read_word_inlined': /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/pgmspace.h:67:3: error: expected ')' before ':' token pgm_read_with_offset(addr, res); ^ In file included from crypto/aes.c:38:0: ssl/os_port.h: At top level: ssl/os_port.h:126:0: warning: "PSTR" redefined [enabled by default]

define PSTR(s) (extension({static const char c[] PROGMEM = (s); &c[0];}))

^ In file included from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/stdio.h:6:0, from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/stdio.h:63, from ssl/os_port.h:46, from crypto/aes.c:38: /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/pgmspace.h:37:0: note: this is the location of the previous definition

define PSTR(s) (extension({static const char c[] attribute((aligned(4))) PROGMEM = (s); &c[0];}))

^ In file included from crypto/aes.c:38:0: ssl/os_port.h:128:21: error: static declaration of 'memcpy_P' follows non-static declaration static inline void memcpy_P(void dest, PGM_VOID_P src, size_t count) { ^ In file included from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/string.h:10:0, from crypto/aes.c:37: /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/string.h:27:8: note: previous declaration of 'memcpy_P' was here _PTR _EXFUN(memcpy_P,(_PTR __restrict, const _PTR __restrict, size_t)); ^ In file included from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/string.h:163:0, from crypto/aes.c:37: ssl/os_port.h:140:19: error: expected declaration specifiers or '...' before '(' token static inline int strlen_P(const char str) { ^ ssl/os_port.h:140:19: error: expected declaration specifiers or '...' before numeric constant static inline int strlen_P(const char str) { ^ In file included from crypto/aes.c:38:0: ssl/os_port.h:145:19: error: static declaration of 'memcmp_P' follows non-static declaration static inline int memcmp_P(const void a1, const void b1, size_t len) { ^ In file included from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/string.h:10:0, from crypto/aes.c:37: /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/string.h:25:7: note: previous declaration of 'memcmp_P' was here int _EXFUN(memcmp_P,(const _PTR, const _PTR, size_t)); ^ In file included from crypto/aes.c:38:0: ssl/os_port.h:158:0: warning: "strcpy_P" redefined [enabled by default]

define strcpy_P(dst, src) do { static const char fstr[] PROGMEM = src; memcpy_P(dst, fstr, sizeof(src)); } while (0)

^ In file included from /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/string.h:163:0, from crypto/aes.c:37: /home/cdo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/sys/string.h:32:0: note: this is the location of the previous definition

define strcpy_P(dest, src) strncpy_P((dest), (src), SIZE_IRRELEVANT)

^ make: *** [: crypto/aes.o] Error 1