I moved from linux to windows. The project i am working on builds without any issues on the linux but the same fails to build on windows. On windows, i used the installer mentioned in GET STARTED in documentation. Everything is ok till i run 'idf.py' in the esp powershell. The build fails and points on lots of error in the micropython lib. micropython/lib/berkeley-db-1.xx/ to be precise.
Your help would be much appereciated.
Thanks.
Please find the build log below:
Code: Select all
esp-idf/micropython-component/CMakeFiles/micropy_extmod_btree.dir/micropython/lib/berkeley-db-1.xx/btree/bt_split.c.obj
ccache \esp_tools\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DUNITY_EXCLUDE_SETJMP_H=1 -D__DBINTERFACE_PRIVATE=1 -Dabort=abort_ -Dmpool_error=printf -Dvirt_fd_t=void* -I/main -I/components/micropython-component/micropython/lib/berkeley-db-1.xx/PORT/include -I/build/config -mlongcalls -Wno-frame-address -MD -MT esp-idf/micropython-component/CMakeFiles/micropy_extmod_btree.dir/micropython/lib/berkeley-db-1.xx/btree/bt_split.c.obj -MF esp-idf\micropython-component\CMakeFiles\micropy_extmod_btree.dir\micropython\lib\berkeley-db-1.xx\btree\bt_split.c.obj.d -o esp-idf/micropython-component/CMakeFiles/micropy_extmod_btree.dir/micropython/lib/berkeley-db-1.xx/btree/bt_split.c.obj -c /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:48:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token
../../include/db.h
^
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:89:3: warnin data definition has no type or storage class
} PAGE;
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:89:3: warnin type defaults to 'int' in declaration of 'PAGE' [-Wimplicit-int]
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t'
pgno_t pgno; /* page number stored on */
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:157:2: error: unknown type name 'recno_t'
recno_t nrecs; /* number of records */
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:158:2: error: unknown type name 'pgno_t'
pgno_t pgno; /* page number stored below */
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:247:2: error: unknown type name 'pgno_t'
pgno_t pgno; /* the page number */
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:248:2: error: unknown type name 'indx_t'
indx_t index; /* the index on the page */
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:252:2: error: expected specifier-qualifier-list before 'PAGE'
PAGE *page; /* the (pinned) page */
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:282:2: error: unknown type name 'DBT'
DBT key; /* B: Saved key, or key.data == NULL. */
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:283:2: error: unknown type name 'recno_t'
recno_t rcursor; /* R: recno cursor (1-based) */
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:310:2: error: unknown type name 'MPOOL'
MPOOL *bt_mp; /* memory pool cookie */
^~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:312:2: error: unknown type name 'DB'
DB *bt_dbp; /* pointer to enclosing DB */
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:315:2: error: expected specifier-qualifier-list before 'PAGE'
PAGE *bt_pinned; /* page pinned across calls */
^~~~
In file included from \esp_tools\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\sys-include\sys\types.h:21,
from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:41:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:36:22: error: unknown type name 'DB'
int __bt_close __P((DB *));
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:37:35: error: unknown type name 'DBT'
int __bt_cmp __P((BTREE *, const DBT *, EPG *));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:39:29: error: unknown type name 'DBT'
int __bt_defcmp __P((const DBT *, const DBT *));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:39:42: error: unknown type name 'DBT'
int __bt_defcmp __P((const DBT *, const DBT *));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:40:32: error: unknown type name 'DBT'
size_t __bt_defpfx __P((const DBT *, const DBT *));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:40:45: error: unknown type name 'DBT'
size_t __bt_defpfx __P((const DBT *, const DBT *));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:41:29: error: unknown type name 'DB'
int __bt_delete __P((const DB *, const DBT *, u_int));
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:41:41: error: unknown type name 'DBT'
int __bt_delete __P((const DB *, const DBT *, u_int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:42:37: error: unknown type name 'DBT'
int __bt_dleaf __P((BTREE *, const DBT *, PAGE *, u_int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:42:44: error: expected declaration specifiers or '...' before 'PAGE'
int __bt_dleaf __P((BTREE *, const DBT *, PAGE *, u_int));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:43:25: error: unknown type name 'DB'
int __bt_fd __P((const DB *));
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:44:30: error: expected declaration specifiers or '...' before 'PAGE'
int __bt_free __P((BTREE *, PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:45:26: error: unknown type name 'DB'
int __bt_get __P((const DB *, const DBT *, DBT *, u_int));
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:45:38: error: unknown type name 'DBT'
int __bt_get __P((const DB *, const DBT *, DBT *, u_int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:45:45: error: unknown type name 'DBT'
int __bt_get __P((const DB *, const DBT *, DBT *, u_int));
^~~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:388,
from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:46:1: error: unknown type name 'PAGE'
PAGE *__bt_new __P((BTREE *, pgno_t *));
^~~~
In file included from \esp_tools\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\sys-include\sys\types.h:21,
from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:41:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:46:30: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
PAGE *__bt_new __P((BTREE *, pgno_t *));
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:47:30: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
void __bt_pgin __P((void *, pgno_t, void *));
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:48:31: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
void __bt_pgout __P((void *, pgno_t, void *));
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:49:30: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
int __bt_push __P((BTREE *, pgno_t, int));
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:50:26: error: unknown type name 'DB'
int __bt_put __P((const DB *dbp, DBT *, const DBT *, u_int));
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:50:35: error: unknown type name 'DBT'
int __bt_put __P((const DB *dbp, DBT *, const DBT *, u_int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:50:48: error: unknown type name 'DBT'
int __bt_put __P((const DB *dbp, DBT *, const DBT *, u_int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:51:36: error: unknown type name 'DBT'
int __bt_ret __P((BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:51:43: error: unknown type name 'DBT'
int __bt_ret __P((BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:51:50: error: unknown type name 'DBT'
int __bt_ret __P((BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:51:57: error: unknown type name 'DBT'
int __bt_ret __P((BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:52:38: error: unknown type name 'DBT'
EPG *__bt_search __P((BTREE *, const DBT *, int *));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:53:26: error: unknown type name 'DB'
int __bt_seq __P((const DB *, DBT *, DBT *, u_int));
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:53:32: error: unknown type name 'DBT'
int __bt_seq __P((const DB *, DBT *, DBT *, u_int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:53:39: error: unknown type name 'DBT'
int __bt_seq __P((const DB *, DBT *, DBT *, u_int));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:54:33: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
void __bt_setcur __P((BTREE *, pgno_t, u_int));
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:55:31: error: expected declaration specifiers or '...' before 'PAGE'
int __bt_split __P((BTREE *, PAGE *,
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:56:12: error: unknown type name 'DBT'
const DBT *, const DBT *, int, size_t, u_int32_t));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:56:25: error: unknown type name 'DBT'
const DBT *, const DBT *, int, size_t, u_int32_t));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:57:27: error: unknown type name 'DB'
int __bt_sync __P((const DB *, u_int));
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:61:37: error: unknown type name 'DBT'
int __ovfl_put __P((BTREE *, const DBT *, pgno_t *));
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/extern.h:61:44: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
int __ovfl_put __P((BTREE *, const DBT *, pgno_t *));
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:51:36: error: expected declaration specifiers or '...' before 'PAGE'
static int bt_broot __P((BTREE *, PAGE *, PAGE *, PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:51:44: error: expected declaration specifiers or '...' before 'PAGE'
static int bt_broot __P((BTREE *, PAGE *, PAGE *, PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:51:52: error: expected declaration specifiers or '...' before 'PAGE'
static int bt_broot __P((BTREE *, PAGE *, PAGE *, PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:52:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
static PAGE *bt_page
^
In file included from \esp_tools\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\sys-include\sys\types.h:21,
from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:41:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:54:39: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
static int bt_preserve __P((BTREE *, pgno_t));
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:55:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
static PAGE *bt_psplit
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:57:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
static PAGE *bt_root
^
In file included from \esp_tools\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\sys-include\sys\types.h:21,
from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:41:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:59:36: error: expected declaration specifiers or '...' before 'PAGE'
static int bt_rroot __P((BTREE *, PAGE *, PAGE *, PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:59:44: error: expected declaration specifiers or '...' before 'PAGE'
static int bt_rroot __P((BTREE *, PAGE *, PAGE *, PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:59:52: error: expected declaration specifiers or '...' before 'PAGE'
static int bt_rroot __P((BTREE *, PAGE *, PAGE *, PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:60:8: error: unknown type name 'recno_t'
static recno_t rec_total __P((PAGE *));
^~~~~~~
In file included from \esp_tools\espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\sys-include\sys\types.h:21,
from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:41:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:60:32: error: expected declaration specifiers or '...' before 'PAGE'
static recno_t rec_total __P((PAGE *));
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c: In function '__bt_split':
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:84:2: error: expected declaration specifiers before 'PAGE'
PAGE *sp;
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:85:8: error: unknown type name 'DBT'
const DBT *key, *data;
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:82:1: warnin type of 'sp' defaults to 'int' [-Wimplicit-int]
__bt_split(t, sp, key, data, flags, ilen, argskip)
^~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:92:2: error: unknown type name 'DBT'
DBT a, b;
^~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:94:8: error: 'h' undeclared (first use in this function)
PAGE *h, *l, *r, *lchild, *rchild;
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:94:8: note: each undeclared identifier is reported only once for each function it appears in
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:94:12: error: 'l' undeclared (first use in this function)
PAGE *h, *l, *r, *lchild, *rchild;
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:94:16: error: 'r' undeclared (first use in this function)
PAGE *h, *l, *r, *lchild, *rchild;
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:94:20: error: 'lchild' undeclared (first use in this function)
PAGE *h, *l, *r, *lchild, *rchild;
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:94:29: error: 'rchild' undeclared (first use in this function); did you mean 'rewind'?
PAGE *h, *l, *r, *lchild, *rchild;
^~~~~~
rewind
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:95:2: error: unknown type name 'indx_t'; did you mean 'ino_t'?
indx_t nxtindex;
^~~~~~
ino_t
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:100:2: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
pgno_t pg_tmp;
^~~~~~
ino_t
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:109:8: error: invalid type argument of '->' (have 'int')
h = sp->pgno == P_ROOT ?
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:110:6: warnin implicit declaration of function 'bt_root' [-Wimplicit-function-declaration]
bt_root(t, sp, &l, &r, &skip, ilen) :
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:111:6: warnin implicit declaration of function 'bt_page' [-Wimplicit-function-declaration]
bt_page(t, sp, &l, &r, &skip, ilen);
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:113:11: error: 'RET_ERROR' undeclared (first use in this function)
return (RET_ERROR);
^~~~~~~~~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:42:27: error: 'BTREE' {aka 'struct _btree'} has no member named 'flags'
#define F_ISSET(p, f) ((p)->flags & (f))
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:121:6: note: in expansion of macro 'F_ISSET'
if (F_ISSET(t, R_RECNO))
^~~~~~~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:229:24: error: request for member 'size' in something not a structure or union
*(u_int32_t *)p = data->size; \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:122:3: note: in expansion of macro 'WR_RLEAF'
WR_RLEAF(dest, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:233:17: error: request for member 'data' in something not a structure or union
memmove(p, data->data, data->size); \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:122:3: note: in expansion of macro 'WR_RLEAF'
WR_RLEAF(dest, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:233:29: error: request for member 'size' in something not a structure or union
memmove(p, data->data, data->size); \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:122:3: note: in expansion of macro 'WR_RLEAF'
WR_RLEAF(dest, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:198:23: error: request for member 'size' in something not a structure or union
*(u_int32_t *)p = key->size; \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:124:3: note: in expansion of macro 'WR_BLEAF'
WR_BLEAF(dest, key, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:200:24: error: request for member 'size' in something not a structure or union
*(u_int32_t *)p = data->size; \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:124:3: note: in expansion of macro 'WR_BLEAF'
WR_BLEAF(dest, key, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:204:16: error: request for member 'data' in something not a structure or union
memmove(p, key->data, key->size); \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:124:3: note: in expansion of macro 'WR_BLEAF'
WR_BLEAF(dest, key, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:204:27: error: request for member 'size' in something not a structure or union
memmove(p, key->data, key->size); \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:124:3: note: in expansion of macro 'WR_BLEAF'
WR_BLEAF(dest, key, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:205:10: error: request for member 'size' in something not a structure or union
p += key->size; \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:124:3: note: in expansion of macro 'WR_BLEAF'
WR_BLEAF(dest, key, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:206:17: error: request for member 'data' in something not a structure or union
memmove(p, data->data, data->size); \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:124:3: note: in expansion of macro 'WR_BLEAF'
WR_BLEAF(dest, key, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:206:29: error: request for member 'size' in something not a structure or union
memmove(p, data->data, data->size); \
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:124:3: note: in expansion of macro 'WR_BLEAF'
WR_BLEAF(dest, key, data, flags)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:127:8: error: invalid type argument of '->' (have 'int')
if (sp->pgno == P_ROOT &&
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:42:27: error: 'BTREE' {aka 'struct _btree'} has no member named 'flags'
#define F_ISSET(p, f) ((p)->flags & (f))
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:128:7: note: in expansion of macro 'F_ISSET'
(F_ISSET(t, R_RECNO) ?
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:129:6: warnin implicit declaration of function 'bt_rroot' [-Wimplicit-function-declaration]
bt_rroot(t, sp, l, r) : bt_broot(t, sp, l, r)) == RET_ERROR)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:129:30: warnin implicit declaration of function 'bt_broot' [-Wimplicit-function-declaration]
bt_rroot(t, sp, l, r) : bt_broot(t, sp, l, r)) == RET_ERROR)
^~~~~~~~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:324:23: error: 'BTREE' {aka 'struct _btree'} has no member named 'bt_sp'; did you mean 'bt_mp'?
#define BT_POP(t) (t->bt_sp == t->bt_stack ? NULL : --t->bt_sp)
^~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:155:19: note: in expansion of macro 'BT_POP'
while ((parent = BT_POP(t)) != NULL) {
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:324:33: error: 'BTREE' {aka 'struct _btree'} has no member named 'bt_stack'
#define BT_POP(t) (t->bt_sp == t->bt_stack ? NULL : --t->bt_sp)
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:155:19: note: in expansion of macro 'BT_POP'
while ((parent = BT_POP(t)) != NULL) {
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:324:58: error: 'BTREE' {aka 'struct _btree'} has no member named 'bt_sp'; did you mean 'bt_mp'?
#define BT_POP(t) (t->bt_sp == t->bt_stack ? NULL : --t->bt_sp)
^~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:155:19: note: in expansion of macro 'BT_POP'
while ((parent = BT_POP(t)) != NULL) {
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:160:12: warnin implicit declaration of function 'mpool_get'; did you mean 'mpool_error'? [-Wimplicit-function-declaration]
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
^~~~~~~~~
mpool_error
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:140:36: error: 'pgno_t' undeclared (first use in this function); did you mean 'ino_t'?
LALIGN(sizeof(u_int32_t) + sizeof(pgno_t) + sizeof(u_char) + (len))
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:113:22: note: in definition of macro 'LALIGN'
#define LALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:186:13: note: in expansion of macro 'NBINTERNAL'
nbytes = NBINTERNAL(bi->ksize);
^~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:191:11: error: 'BTREE' {aka 'struct _btree'} has no member named 'bt_pfx'; did you mean 'bt_mp'?
if (t->bt_pfx && !(bl->flags & P_BIGKEY) &&
^~~~~~
bt_mp
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:94:33: error: 'indx_t' undeclared (first use in this function); did you mean 'ino_t'?
sizeof(u_int32_t) + sizeof(indx_t) + sizeof(indx_t))
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:186:39: note: in definition of macro 'GETBLEAF'
((BLEAF *)((char *)(pg) + (pg)->linp[indx]))
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:95:37: note: in expansion of macro 'BTDATAOFF'
#define NEXTINDEX(p) (((p)->lower - BTDATAOFF) / sizeof(indx_t))
^~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:193:28: note: in expansion of macro 'NEXTINDEX'
tbl = GETBLEAF(lchild, NEXTINDEX(lchild) - 1);
^~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:194:6: error: request for member 'size' in something not a structure or union
a.size = tbl->ksize;
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:195:6: error: request for member 'data' in something not a structure or union
a.data = tbl->bytes;
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:196:6: error: request for member 'size' in something not a structure or union
b.size = bl->ksize;
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:197:6: error: request for member 'data' in something not a structure or union
b.data = bl->bytes;
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:198:17: error: 'BTREE' {aka 'struct _btree'} has no member named 'bt_pfx'; did you mean 'bt_mp'?
nksize = t->bt_pfx(&a, &b);
^~~~~~
bt_mp
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:167:16: error: 'recno_t' undeclared (first use in this function); did you mean 'ino_t'?
LALIGN(sizeof(recno_t) + sizeof(pgno_t))
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:113:22: note: in definition of macro 'LALIGN'
#define LALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:212:13: note: in expansion of macro 'NRINTERNAL'
nbytes = NRINTERNAL;
^~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:146:12: error: expected expression before ')' token
*(pgno_t *)p = pgno; \
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:246:4: note: in expansion of macro 'WR_BINTERNAL'
WR_BINTERNAL(dest, nksize ? nksize : bl->ksize,
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:252:8: warnin implicit declaration of function 'bt_preserve' [-Wimplicit-function-declaration]
bt_preserve(t, pg_tmp) == RET_ERROR)
^~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:264:33: warnin implicit declaration of function 'rec_total' [-Wimplicit-function-declaration]
((RINTERNAL *)dest)->nrecs = rec_total(lchild);
^~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:297:4: warnin implicit declaration of function 'mpool_put'; did you mean 'mpool_error'? [-Wimplicit-function-declaration]
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
^~~~~~~~~
mpool_error
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:297:27: error: 'MPOOL_DIRTY' undeclared (first use in this function)
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
^~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:302:9: error: invalid type argument of '->' (have 'int')
if (sp->pgno == P_ROOT &&
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:42:27: error: 'BTREE' {aka 'struct _btree'} has no member named 'flags'
#define F_ISSET(p, f) ((p)->flags & (f))
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:303:8: note: in expansion of macro 'F_ISSET'
(F_ISSET(t, R_RECNO) ?
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:316:10: error: 'RET_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
return (RET_SUCCESS);
^~~~~~~~~~~
EXIT_SUCCESS
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:328:2: warnin implicit declaration of function '__dbpanic' [-Wimplicit-function-declaration]
__dbpanic(t->bt_dbp);
^~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c: At top level:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:346:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
static PAGE *
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:349:2: error: unknown type name 'PAGE'
PAGE *h, **lp, **rp;
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:350:2: error: unknown type name 'indx_t'; did you mean 'ino_t'?
indx_t *skip;
^~~~~~
ino_t
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:352:1: error: expected identifier or '(' before '{' token
{
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:451:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
static PAGE *
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:454:2: error: unknown type name 'PAGE'
PAGE *h, **lp, **rp;
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:455:2: error: unknown type name 'indx_t'; did you mean 'ino_t'?
indx_t *skip;
^~~~~~
ino_t
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:457:1: error: expected identifier or '(' before '{' token
{
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:499:1: error: static declaration of 'bt_rroot' follows non-static declaration
bt_rroot(t, h, l, r)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:129:6: note: previous implicit declaration of 'bt_rroot' was here
bt_rroot(t, sp, l, r) : bt_broot(t, sp, l, r)) == RET_ERROR)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c: In function 'bt_rroot':
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:501:2: error: expected declaration specifiers before 'PAGE'
PAGE *h, *l, *r;
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:499:1: warnin type of 'h' defaults to 'int' [-Wimplicit-int]
bt_rroot(t, h, l, r)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:499:1: warnin type of 'l' defaults to 'int' [-Wimplicit-int]
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:499:1: warnin type of 'r' defaults to 'int' [-Wimplicit-int]
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:506:3: error: invalid type argument of '->' (have 'int')
h->linp[0] = h->upper = t->bt_psize - NRINTERNAL;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:506:16: error: invalid type argument of '->' (have 'int')
h->linp[0] = h->upper = t->bt_psize - NRINTERNAL;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:506:27: error: 'BTREE' {aka 'struct _btree'} has no member named 'bt_psize'
h->linp[0] = h->upper = t->bt_psize - NRINTERNAL;
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:167:16: error: 'recno_t' undeclared (first use in this function); did you mean 'ino_t'?
LALIGN(sizeof(recno_t) + sizeof(pgno_t))
^~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:113:22: note: in definition of macro 'LALIGN'
#define LALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:506:40: note: in expansion of macro 'NRINTERNAL'
h->linp[0] = h->upper = t->bt_psize - NRINTERNAL;
^~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:167:34: error: 'pgno_t' undeclared (first use in this function); did you mean 'ino_t'?
LALIGN(sizeof(recno_t) + sizeof(pgno_t))
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:113:22: note: in definition of macro 'LALIGN'
#define LALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:506:40: note: in expansion of macro 'NRINTERNAL'
h->linp[0] = h->upper = t->bt_psize - NRINTERNAL;
^~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:507:22: error: invalid type argument of '->' (have 'int')
dest = (char *)h + h->upper;
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:171:13: error: expected expression before ')' token
*(recno_t *)p = nrecs; \
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:508:2: note: in expansion of macro 'WR_RINTERNAL'
WR_RINTERNAL(dest,
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:173:12: error: expected expression before ')' token
*(pgno_t *)p = pgno; \
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:508:2: note: in expansion of macro 'WR_RINTERNAL'
WR_RINTERNAL(dest,
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:511:3: error: invalid type argument of '->' (have 'int')
h->linp[1] = h->upper -= NRINTERNAL;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:511:16: error: invalid type argument of '->' (have 'int')
h->linp[1] = h->upper -= NRINTERNAL;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:512:22: error: invalid type argument of '->' (have 'int')
dest = (char *)h + h->upper;
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:171:13: error: expected expression before ')' token
*(recno_t *)p = nrecs; \
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:513:2: note: in expansion of macro 'WR_RINTERNAL'
WR_RINTERNAL(dest,
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:173:12: error: expected expression before ')' token
*(pgno_t *)p = pgno; \
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:513:2: note: in expansion of macro 'WR_RINTERNAL'
WR_RINTERNAL(dest,
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:516:3: error: invalid type argument of '->' (have 'int')
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:94:33: error: 'indx_t' undeclared (first use in this function); did you mean 'ino_t'?
sizeof(u_int32_t) + sizeof(indx_t) + sizeof(indx_t))
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:516:13: note: in expansion of macro 'BTDATAOFF'
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
^~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:519:3: error: invalid type argument of '->' (have 'int')
h->flags &= ~P_TYPE;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:520:3: error: invalid type argument of '->' (have 'int')
h->flags |= P_RINTERNAL;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:521:25: error: 'MPOOL_DIRTY' undeclared (first use in this function)
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
^~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:523:10: error: 'RET_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
return (RET_SUCCESS);
^~~~~~~~~~~
EXIT_SUCCESS
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c: At top level:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:539:1: error: static declaration of 'bt_broot' follows non-static declaration
bt_broot(t, h, l, r)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:129:30: note: previous implicit declaration of 'bt_broot' was here
bt_rroot(t, sp, l, r) : bt_broot(t, sp, l, r)) == RET_ERROR)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c: In function 'bt_broot':
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:541:2: error: expected declaration specifiers before 'PAGE'
PAGE *h, *l, *r;
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:539:1: warnin type of 'h' defaults to 'int' [-Wimplicit-int]
bt_broot(t, h, l, r)
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:539:1: warnin type of 'l' defaults to 'int' [-Wimplicit-int]
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:539:1: warnin type of 'r' defaults to 'int' [-Wimplicit-int]
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:547:2: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
pgno_t pg_tmp;
^~~~~~
ino_t
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:140:36: error: 'pgno_t' undeclared (first use in this function); did you mean 'ino_t'?
LALIGN(sizeof(u_int32_t) + sizeof(pgno_t) + sizeof(u_char) + (len))
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:113:22: note: in definition of macro 'LALIGN'
#define LALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:557:11: note: in expansion of macro 'NBINTERNAL'
nbytes = NBINTERNAL(0);
^~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:558:3: error: invalid type argument of '->' (have 'int')
h->linp[0] = h->upper = t->bt_psize - nbytes;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:558:16: error: invalid type argument of '->' (have 'int')
h->linp[0] = h->upper = t->bt_psize - nbytes;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:558:27: error: 'BTREE' {aka 'struct _btree'} has no member named 'bt_psize'
h->linp[0] = h->upper = t->bt_psize - nbytes;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:559:22: error: invalid type argument of '->' (have 'int')
dest = (char *)h + h->upper;
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:146:12: error: expected expression before ')' token
*(pgno_t *)p = pgno; \
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:560:2: note: in expansion of macro 'WR_BINTERNAL'
WR_BINTERNAL(dest, 0, l->pgno, 0);
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:562:11: error: invalid type argument of '->' (have 'int')
switch (h->flags & P_TYPE) {
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:186:32: error: invalid type argument of '->' (have 'int')
((BLEAF *)((char *)(pg) + (pg)->linp[indx]))
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:564:8: note: in expansion of macro 'GETBLEAF'
bl = GETBLEAF(r, 0);
^~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:566:4: error: invalid type argument of '->' (have 'int')
h->linp[1] = h->upper -= nbytes;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:566:17: error: invalid type argument of '->' (have 'int')
h->linp[1] = h->upper -= nbytes;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:567:23: error: invalid type argument of '->' (have 'int')
dest = (char *)h + h->upper;
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:146:12: error: expected expression before ')' token
*(pgno_t *)p = pgno; \
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:568:3: note: in expansion of macro 'WR_BINTERNAL'
WR_BINTERNAL(dest, bl->ksize, r->pgno, 0);
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:578:33: error: 'RET_ERROR' undeclared (first use in this function)
bt_preserve(t, pg_tmp) == RET_ERROR)
^~~~~~~~~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:136:36: error: invalid type argument of '->' (have 'int')
((BINTERNAL *)((char *)(pg) + (pg)->linp[indx]))
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:582:8: note: in expansion of macro 'GETBINTERNAL'
bi = GETBINTERNAL(r, 0);
^~~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:584:4: error: invalid type argument of '->' (have 'int')
h->linp[1] = h->upper -= nbytes;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:584:17: error: invalid type argument of '->' (have 'int')
h->linp[1] = h->upper -= nbytes;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:585:23: error: invalid type argument of '->' (have 'int')
dest = (char *)h + h->upper;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:587:32: error: invalid type argument of '->' (have 'int')
((BINTERNAL *)dest)->pgno = r->pgno;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:594:3: error: invalid type argument of '->' (have 'int')
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
^~
In file included from /components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:49:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/btree.h:94:33: error: 'indx_t' undeclared (first use in this function); did you mean 'ino_t'?
sizeof(u_int32_t) + sizeof(indx_t) + sizeof(indx_t))
^~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:594:13: note: in expansion of macro 'BTDATAOFF'
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
^~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:597:3: error: invalid type argument of '->' (have 'int')
h->flags &= ~P_TYPE;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:598:3: error: invalid type argument of '->' (have 'int')
h->flags |= P_BINTERNAL;
^~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:599:25: error: 'MPOOL_DIRTY' undeclared (first use in this function)
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
^~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:601:10: error: 'RET_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
return (RET_SUCCESS);
^~~~~~~~~~~
EXIT_SUCCESS
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c: At top level:
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:618:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
static PAGE *
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:621:2: error: unknown type name 'PAGE'
PAGE *h, *l, *r;
^~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:622:2: error: unknown type name 'indx_t'; did you mean 'ino_t'?
indx_t *pskip;
^~~~~~
ino_t
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:624:1: error: expected identifier or '(' before '{' token
{
^
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:797:1: error: static declaration of 'bt_preserve' follows non-static declaration
bt_preserve(t, pg)
^~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:252:8: note: previous implicit declaration of 'bt_preserve' was here
bt_preserve(t, pg_tmp) == RET_ERROR)
^~~~~~~~~~~
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c: In function 'bt_preserve':
/components/micropython-component/micropython/lib/berkeley-db-1.xx/btree/bt_split.c:799:2: error: unknown type name 'pgno_t'; did you mean 'ino_t'?
pgno_t pg;
^~~~~~
ino_t
....
[642/1463] Performing configure step for 'bootloader'
-- Found Git: /esp_tools/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
fatal: detected dubious ownership in repository at '/esp_idf'
'/esp_idf' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-3206630998-4230790321-3591383506-1001'
To add an exception for this directory, call:
git config --global --add safe.directory /esp_idf
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /esp_tools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /esp_tools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /esp_tools/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- DEBU Use esp-modbus component folder: /esp_idf/components/freemodbus.
-- Project sdkconfig file /sdkconfig
-- Adding linker script /esp_idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Adding linker script /esp_idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /esp_idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /esp_idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /esp_idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /esp_idf/components/esp_rom/esp32/ld/esp32.rom.eco3.ld
-- Adding linker script /esp_idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /esp_idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /esp_idf/components/bootloader /esp_idf/components/bootloader_support /esp_idf/components/efuse /esp_idf/components/esp32 /esp_idf/components/esp_common /esp_idf/components/esp_hw_support /esp_idf/components/esp_rom /esp_idf/components/esp_system /esp_idf/components/esptool_py /esp_idf/components/freertos /esp_idf/components/hal /esp_idf/components/log /esp_idf/components/bootloader/subproject/main /esp_idf/components/bootloader/subproject/components/micro-ecc /esp_idf/components/newlib /esp_idf/components/partition_table /esp_idf/components/soc /esp_idf/components/spi_flash /esp_idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /build/bootloader
ninja: build stopped: subcommand failed.
ninja failed with exit code 1