Wave1art/ESP32-Web-Bluetooth

compilation fails

chriskuku opened this issue · 0 comments

I'm trying to do build micropython in
~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32 and it fails. esp-idf is v5.2.

``
make
idf.py -D MICROPY_BOARD=ESP32_GENERIC -D MICROPY_BOARD_DIR="/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/boards/ESP32_GENERIC" -B build-ESP32_GENERIC build || (echo -e "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"; false)
Executing action: all (aliases: build)
Running cmake in directory /ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/build-ESP32_GENERIC
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=
/.espressif/python_env/idf5.3_py3.8_env/bin/python -DESP_PLATFORM=1 -DMICROPY_BOARD=ESP32_GENERIC -DMICROPY_BOARD_DIR=
/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/boards/ESP32_GENERIC -DCCACHE_ENABLE=0 ~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.30.1 (Apple Git-130)")
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: ~/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: ~/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - 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: ~/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
Processing 2 dependencies:
[1/2] espressif/mdns (1.1.0)
[2/2] idf (5.3.0)
...
...
extmod/modnetwork.c
In file included from ~/ESP32-Web-Bluetooth/ESP32/micropython/py/objlist.h:29,
from ~/ESP32-Web-Bluetooth/ESP32/micropython/extmod/modnetwork.c:31:
~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/modnetwork_globals.h:38:54: error: 'WIFI_AUTH_WPA3_EXT_PSK' undeclared here (not in a function); did you mean 'WIFI_AUTH_WPA3_ENT_192'?
38 | { MP_ROM_QSTR(MP_QSTR_AUTH_WPA3_EXT_PSK), MP_ROM_INT(WIFI_AUTH_WPA3_EXT_PSK) },
| ^~~~~~~~~~~~~~~~~~~~~~
~/ESP32-Web-Bluetooth/ESP32/micropython/py/obj.h:90:67: note: in definition of macro 'MP_OBJ_NEW_SMALL_INT'
90 | #define MP_OBJ_NEW_SMALL_INT(small_int) ((mp_obj_t)((((mp_uint_t)(small_int)) << 1) | 1))
| ^~~~~~~~~
~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/modnetwork_globals.h:38:43: note: in expansion of macro 'MP_ROM_INT'
38 | { MP_ROM_QSTR(MP_QSTR_AUTH_WPA3_EXT_PSK), MP_ROM_INT(WIFI_AUTH_WPA3_EXT_PSK) },
| ^~~~~~~~~~
~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/modnetwork_globals.h:39:65: error: 'WIFI_AUTH_WPA3_EXT_PSK_MIXED_MODE' undeclared here (not in a function); did you mean 'MP_QSTR_AUTH_WPA3_EXT_PSK_MIXED_MODE'?
39 | { MP_ROM_QSTR(MP_QSTR_AUTH_WPA3_EXT_PSK_MIXED_MODE), MP_ROM_INT(WIFI_AUTH_WPA3_EXT_PSK_MIXED_MODE) },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/ESP32-Web-Bluetooth/ESP32/micropython/py/obj.h:90:67: note: in definition of macro 'MP_OBJ_NEW_SMALL_INT'
90 | #define MP_OBJ_NEW_SMALL_INT(small_int) ((mp_obj_t)((((mp_uint_t)(small_int)) << 1) | 1))
| ^~~~~~~~~
/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/modnetwork_globals.h:39:54: note: in expansion of macro 'MP_ROM_INT'
39 | { MP_ROM_QSTR(MP_QSTR_AUTH_WPA3_EXT_PSK_MIXED_MODE), MP_ROM_INT(WIFI_AUTH_WPA3_EXT_PSK_MIXED_MODE) },
| ^~~~~~~~~~
[1247/1337] Building C object esp-idf/main_esp32/CMakeFiles/__idf_main_esp32.dir
/ESP32-Web-Bluetooth/ESP32/micropython/extmod/modframebuf.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the ~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/build-ESP32_GENERIC/log/idf_py_stderr_output_11107 and ~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32/build-ESP32_GENERIC/log/idf_py_stdout_output_11107
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: *** [all] Error 1
$ pwd
~/ESP32-Web-Bluetooth/ESP32/micropython/ports/esp32
$

``

Sorry for the long post. I shortened it a bit (formatting still looks strange). But the quintessence is that this macro expansion fails.