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

build fails #63

Open
owensc84 opened this issue Mar 2, 2019 · 0 comments
Open

build fails #63

owensc84 opened this issue Mar 2, 2019 · 0 comments

Comments

@owensc84
Copy link

owensc84 commented Mar 2, 2019

make
xtensa-lx106-elf-gcc -std=c99 -DESP8266 -Wall -Os -g -O2 -Wpointer-arith -Wl,-EL -nostdlib -mlongcalls -mno-text-section-literals -D__ets__ -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

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

No branches or pull requests

1 participant