[Solved] Cannot Build Latest using esp-idf 6b3da6b

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

[Solved] Cannot Build Latest using esp-idf 6b3da6b

Post by devnull » Mon Jul 01, 2019 1:19 pm

Just updated uPython and the esp-idf to 6b3da6b188 (3.3 Beta) and cannot get it to build anymore.
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:26:21: error: 'CONFIG_EFUSE_MAX_BLK_LEN' undeclared here (not in a function)
#define MAX_BLK_LEN CONFIG_EFUSE_MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:29:28: note: in expansion of macro 'MAX_BLK_LEN'
#define LAST_FREE_BIT_BLK1 MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:33:16: note: in expansion of macro 'LAST_FREE_BIT_BLK1'
_Static_assert(LAST_FREE_BIT_BLK1 <= MAX_BLK_LEN, "The eFuse table does not match the coding scheme. Edit the table and restart the efuse_common_table or efuse_custom_table command to regenerate the new files.");
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:26:21: error: expression in static assertion is not an integer
#define MAX_BLK_LEN CONFIG_EFUSE_MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:29:28: note: in expansion of macro 'MAX_BLK_LEN'
#define LAST_FREE_BIT_BLK1 MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:33:16: note: in expansion of macro 'LAST_FREE_BIT_BLK1'
_Static_assert(LAST_FREE_BIT_BLK1 <= MAX_BLK_LEN, "The eFuse table does not match the coding scheme. Edit the table and restart the efuse_common_table or efuse_custom_table command to regenerate the new files.");
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:26:21: error: expression in static assertion is not an integer
#define MAX_BLK_LEN CONFIG_EFUSE_MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:30:28: note: in expansion of macro 'MAX_BLK_LEN'
#define LAST_FREE_BIT_BLK2 MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:34:16: note: in expansion of macro 'LAST_FREE_BIT_BLK2'
_Static_assert(LAST_FREE_BIT_BLK2 <= MAX_BLK_LEN, "The eFuse table does not match the coding scheme. Edit the table and restart the efuse_common_table or efuse_custom_table command to regenerate the new files.");
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:31:28: error: expression in static assertion is not an integer
#define LAST_FREE_BIT_BLK3 192
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:35:16: note: in expansion of macro 'LAST_FREE_BIT_BLK3'
_Static_assert(LAST_FREE_BIT_BLK3 <= MAX_BLK_LEN, "The eFuse table does not match the coding scheme. Edit the table and restart the efuse_common_table or efuse_custom_table command to regenerate the new files.");
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:26:21: error: initializer element is not constant
#define MAX_BLK_LEN CONFIG_EFUSE_MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:71:21: note: in expansion of macro 'MAX_BLK_LEN'
{EFUSE_BLK1, 0, MAX_BLK_LEN}, // Flash encrypt. Key. (length = "None" - 256. "3/4" - 192. "REPEAT" - 128),
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:26:21: note: (near initialization for 'ENCRYPT_FLASH_KEY[0].bit_count')
#define MAX_BLK_LEN CONFIG_EFUSE_MAX_BLK_LEN
^
/nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.c:71:21: note: in expansion of macro 'MAX_BLK_LEN'
{EFUSE_BLK1, 0, MAX_BLK_LEN}, // Flash encrypt. Key. (length = "None" - 256. "3/4" - 192. "REPEAT" - 128),
^
../../py/mkrules.mk:47: recipe for target 'build//nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.o' failed
make: *** [build//nfs/qnap/dev/uPython/build/micropython/ports/esp32/esp-idf/components/efuse/esp32/esp_efuse_table.o] Error 1
make: *** Waiting for unfinished jobs....
Any suggestions ??
Last edited by devnull on Tue Jul 02, 2019 11:32 am, edited 1 time in total.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Cannot Build Latest using esp-idf 6b3da6b

Post by Roberthh » Mon Jul 01, 2019 3:04 pm

No issues here. Did you
- also update the tool package to xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0?
- run git submodule update --init after checkou out esp-idf 6b3da6b (my favorite omission)?

User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

Re: Cannot Build Latest using esp-idf 6b3da6b

Post by devnull » Tue Jul 02, 2019 11:31 am

Thanks Robert;

Yes, fully updated including the toolchain.

Silly mistake, needed to make clean

:oops:

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: [Solved] Cannot Build Latest using esp-idf 6b3da6b

Post by Roberthh » Tue Jul 02, 2019 12:16 pm

Sounds familiar. Another one of my top ten.

Post Reply