m5stack / Core2forAWS-MicroPython

M5Stack Core2 for AWS IoT Kit MicroPython repo with examples for connecting to AWS IoT and using device features.
https://m5stack.com/collections/m5-core/products/m5stack-core2-esp32-iot-development-kit-for-aws-iot-edukit
7 stars 4 forks source link

problems compiling the micropython runtime #1

Closed 726D closed 3 years ago

726D commented 3 years ago

setup fedora 34, $HOME is /home/user, esp idf 4.2 release is /home/user/esp/esp-idf Core2forAWS-MicroPython is /home/user/esp/Core2forAWS-MicroPython

a) first make / make after clean

(base) [user esp32]$ make clean 
idf.py -D MICROPY_BOARD=Core2forAWS -B build-Core2forAWS fullclean 
Executing action: fullclean 
Done 
(base) [user esp32]$ make 
idf.py -D MICROPY_BOARD=Core2forAWS -B build-Core2forAWS build 
Executing action: all (aliases: build) 
Running cmake in directory /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS 
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DMICROPY_BOARD=Core2forAWS -DCCACHE_ENABLE=0 /home/user/esp/Cor
e2forAWS-MicroPython/ports/esp32"... 
CMake Error at CMakeLists.txt:30 (file): 
 file failed to open for reading (No such file or directory): 

   /home/user/esp/Core2forAWS-MicroPython/ports/esp32/boards/Core2forAWS/sdkconfig

second make finds a sdkconfig in build-Core2forAWS

b) second make

(base) [user esp32]$ pwd
/home/user/esp/Core2forAWS-MicroPython/ports/esp32

(base) [user esp32]$ . $HOME/esp/esp-idf/export.sh
Setting IDF_PATH to '/home/user/esp/esp-idf'
Detecting the Python interpreter
Checking "python" ...
Python 3.7.10
"python" has been detected
Adding ESP-IDF tools to PATH...
Using Python interpreter in /home/user/.espressif/python_env/idf4.2_py3.7_env/bin/python
Checking if Python packages are up to date...
Python requirements from /home/user/esp/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
  /home/user/esp/esp-idf/components/esptool_py/esptool
  /home/user/esp/esp-idf/components/espcoredump
  /home/user/esp/esp-idf/components/partition_table
  /home/user/esp/esp-idf/components/app_update
  /home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin
  /home/user/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin
  /home/user/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin
  /home/user/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin
  /home/user/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin
  /home/user/.espressif/python_env/idf4.2_py3.7_env/bin
  /home/user/esp/esp-idf/tools
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

(base) [user esp32]$ make
idf.py -D MICROPY_BOARD=Core2forAWS -B build-Core2forAWS build
Executing action: all (aliases: build)
Running ninja in directory /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS
Executing "ninja all"...
[2/243] Performing build step for 'bootloader'
ninja: no work to do.
[3/241] Generating ../../genhdr/qstr.i.last
FAILED: genhdr/qstr.i.last 
cd /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/esp-idf/main && /usr/bin/python3.9 /home/user/esp/Core2forAWS-MicroPython/py/makeqstrdefs.py pp /home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -E output /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/genhdr/qstr.i.last cflags -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32 -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/boards/Core2forAWS -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/app_update/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/bootloader_support/include -I/home/user/esp/esp-idf/components/bootloader_support/include_bootloader -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/driver/include -I/home/user/esp/esp-idf/components/driver/esp32/include -I/home/user/esp/esp-idf/components/driver/include/driver -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp32/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_common/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_eth/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_event/include -I/home/user/esp/esp-idf/components/esp_event/private_include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_ringbuf/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_rom/include -I/home/user/esp/esp-idf/components/esp_rom/esp32 -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_wifi/include -I/home/user/esp/esp-idf/components/esp_wifi/esp32/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/freertos/include -I/home/user/esp/esp-idf/components/freertos/xtensa/include -I/home/user/esp/esp-idf/components/freertos/include/freertos -I/home/user/esp/esp-idf/components/freertos/xtensa/include/freertos -I/home/user/esp/esp-idf/components/freertos/xtensa -I/home/user/esp/esp-idf/components/freertos -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/heap/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/log/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/lwip/include/apps -I/home/user/esp/esp-idf/components/lwip/include/apps/sntp -I/home/user/esp/esp-idf/components/lwip/lwip/src/include -I/home/user/esp/esp-idf/components/lwip/port/esp32/include -I/home/user/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/user/esp/esp-idf/components/lwip/port/esp32/tcp_isn -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/mbedtls/port/include -I/home/user/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/user/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/mbedtls/port/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/mdns/include -I/home/user/esp/esp-idf/components/mdns/private_include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/newlib/platform_include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/nvs_flash/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/sdmmc/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/soc/src/esp32/. -I/home/user/esp/esp-idf/components/soc/src/esp32/include -I/home/user/esp/esp-idf/components/soc/src/esp32/../hal -I/home/user/esp/esp-idf/components/soc/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/spi_flash/include -I/home/user/esp/esp-idf/components/spi_flash/private_include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/tcpip_adapter/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/ulp/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/vfs/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/xtensa/include -I/home/user/esp/esp-idf/components/xtensa/esp32/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_netif/include -I/home/user/esp/esp-idf/components/esp_netif/lwip -I/home/user/esp/esp-idf/components/esp_netif/private_include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_system/include -I/home/user/esp/esp-idf/components/esp_system/private_include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_system/port/include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/esp_timer/include -I/home/user/esp/esp-idf/components/esp_timer/private_include -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/cryptoauthlib/lib -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/cryptoauthlib/lib/hal -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/cryptoauthlib/app/tng -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/port -I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config -I/home/user/esp/esp-idf/components/soc/soc/esp32/include -I/home/user/esp/esp-idf/components/soc/soc/include -DMICROPY_ESP_IDF_4=1 -DMICROPY_VFS_FAT=1 -DMICROPY_VFS_LFS2=1 -DFFCONF_H=\"/home/user/esp/Core2forAWS-MicroPython/lib/oofatfs/ffconf.h\" -DLFS1_NO_MALLOC -DLFS1_NO_DEBUG -DLFS1_NO_WARN -DLFS1_NO_ERROR -DLFS1_NO_ASSERT -DLFS2_NO_MALLOC -DLFS2_NO_DEBUG -DLFS2_NO_WARN -DLFS2_NO_ERROR -DLFS2_NO_ASSERT -DESP32 -DATCA_HAL_I2C -DATCA_USE_RTOS_TIMER -DNO_QSTR sources /home/user/esp/Core2forAWS-MicroPython/py/argcheck.c /home/user/esp/Core2forAWS-MicroPython/py/asmarm.c /home/user/esp/Core2forAWS-MicroPython/py/asmbase.c /home/user/esp/Core2forAWS-MicroPython/py/asmthumb.c /home/user/esp/Core2forAWS-MicroPython/py/asmx64.c /home/user/esp/Core2forAWS-MicroPython/py/asmx86.c /home/user/esp/Core2forAWS-MicroPython/py/asmxtensa.c /home/user/esp/Core2forAWS-MicroPython/py/bc.c /home/user/esp/Core2forAWS-MicroPython/py/binary.c /home/user/esp/Core2forAWS-MicroPython/py/builtinevex.c /home/user/esp/Core2forAWS-MicroPython/py/builtinhelp.c /home/user/esp/Core2forAWS-MicroPython/py/builtinimport.c /home/user/esp/Core2forAWS-MicroPython/py/compile.c /home/user/esp/Core2forAWS-MicroPython/py/emitbc.c /home/user/esp/Core2forAWS-MicroPython/py/emitcommon.c /home/user/esp/Core2forAWS-MicroPython/py/emitglue.c /home/user/esp/Core2forAWS-MicroPython/py/emitinlinethumb.c /home/user/esp/Core2forAWS-MicroPython/py/emitinlinextensa.c /home/user/esp/Core2forAWS-MicroPython/py/emitnarm.c /home/user/esp/Core2forAWS-MicroPython/py/emitnthumb.c /home/user/esp/Core2forAWS-MicroPython/py/emitnx64.c /home/user/esp/Core2forAWS-MicroPython/py/emitnx86.c /home/user/esp/Core2forAWS-MicroPython/py/emitnxtensa.c /home/user/esp/Core2forAWS-MicroPython/py/emitnxtensawin.c /home/user/esp/Core2forAWS-MicroPython/py/formatfloat.c /home/user/esp/Core2forAWS-MicroPython/py/frozenmod.c /home/user/esp/Core2forAWS-MicroPython/py/gc.c /home/user/esp/Core2forAWS-MicroPython/py/lexer.c /home/user/esp/Core2forAWS-MicroPython/py/malloc.c /home/user/esp/Core2forAWS-MicroPython/py/map.c /home/user/esp/Core2forAWS-MicroPython/py/modarray.c /home/user/esp/Core2forAWS-MicroPython/py/modbuiltins.c /home/user/esp/Core2forAWS-MicroPython/py/modcmath.c /home/user/esp/Core2forAWS-MicroPython/py/modcollections.c /home/user/esp/Core2forAWS-MicroPython/py/modgc.c /home/user/esp/Core2forAWS-MicroPython/py/modio.c /home/user/esp/Core2forAWS-MicroPython/py/modmath.c /home/user/esp/Core2forAWS-MicroPython/py/modmicropython.c /home/user/esp/Core2forAWS-MicroPython/py/modstruct.c /home/user/esp/Core2forAWS-MicroPython/py/modsys.c /home/user/esp/Core2forAWS-MicroPython/py/modthread.c /home/user/esp/Core2forAWS-MicroPython/py/moduerrno.c /home/user/esp/Core2forAWS-MicroPython/py/mpprint.c /home/user/esp/Core2forAWS-MicroPython/py/mpstate.c /home/user/esp/Core2forAWS-MicroPython/py/mpz.c /home/user/esp/Core2forAWS-MicroPython/py/nativeglue.c /home/user/esp/Core2forAWS-MicroPython/py/nlr.c /home/user/esp/Core2forAWS-MicroPython/py/nlrpowerpc.c /home/user/esp/Core2forAWS-MicroPython/py/nlrsetjmp.c /home/user/esp/Core2forAWS-MicroPython/py/nlrthumb.c /home/user/esp/Core2forAWS-MicroPython/py/nlrx64.c /home/user/esp/Core2forAWS-MicroPython/py/nlrx86.c /home/user/esp/Core2forAWS-MicroPython/py/nlrxtensa.c /home/user/esp/Core2forAWS-MicroPython/py/obj.c /home/user/esp/Core2forAWS-MicroPython/py/objarray.c /home/user/esp/Core2forAWS-MicroPython/py/objattrtuple.c /home/user/esp/Core2forAWS-MicroPython/py/objbool.c /home/user/esp/Core2forAWS-MicroPython/py/objboundmeth.c /home/user/esp/Core2forAWS-MicroPython/py/objcell.c /home/user/esp/Core2forAWS-MicroPython/py/objclosure.c /home/user/esp/Core2forAWS-MicroPython/py/objcomplex.c /home/user/esp/Core2forAWS-MicroPython/py/objdeque.c /home/user/esp/Core2forAWS-MicroPython/py/objdict.c /home/user/esp/Core2forAWS-MicroPython/py/objenumerate.c /home/user/esp/Core2forAWS-MicroPython/py/objexcept.c /home/user/esp/Core2forAWS-MicroPython/py/objfilter.c /home/user/esp/Core2forAWS-MicroPython/py/objfloat.c /home/user/esp/Core2forAWS-MicroPython/py/objfun.c /home/user/esp/Core2forAWS-MicroPython/py/objgenerator.c /home/user/esp/Core2forAWS-MicroPython/py/objgetitemiter.c /home/user/esp/Core2forAWS-MicroPython/py/objint.c /home/user/esp/Core2forAWS-MicroPython/py/objint_longlong.c /home/user/esp/Core2forAWS-MicroPython/py/objint_mpz.c /home/user/esp/Core2forAWS-MicroPython/py/objlist.c /home/user/esp/Core2forAWS-MicroPython/py/objmap.c /home/user/esp/Core2forAWS-MicroPython/py/objmodule.c /home/user/esp/Core2forAWS-MicroPython/py/objnamedtuple.c /home/user/esp/Core2forAWS-MicroPython/py/objnone.c /home/user/esp/Core2forAWS-MicroPython/py/objobject.c /home/user/esp/Core2forAWS-MicroPython/py/objpolyiter.c /home/user/esp/Core2forAWS-MicroPython/py/objproperty.c /home/user/esp/Core2forAWS-MicroPython/py/objrange.c /home/user/esp/Core2forAWS-MicroPython/py/objreversed.c /home/user/esp/Core2forAWS-MicroPython/py/objset.c /home/user/esp/Core2forAWS-MicroPython/py/objsingleton.c /home/user/esp/Core2forAWS-MicroPython/py/objslice.c /home/user/esp/Core2forAWS-MicroPython/py/objstr.c /home/user/esp/Core2forAWS-MicroPython/py/objstringio.c /home/user/esp/Core2forAWS-MicroPython/py/objstrunicode.c /home/user/esp/Core2forAWS-MicroPython/py/objtuple.c /home/user/esp/Core2forAWS-MicroPython/py/objtype.c /home/user/esp/Core2forAWS-MicroPython/py/objzip.c /home/user/esp/Core2forAWS-MicroPython/py/opmethods.c /home/user/esp/Core2forAWS-MicroPython/py/pairheap.c /home/user/esp/Core2forAWS-MicroPython/py/parse.c /home/user/esp/Core2forAWS-MicroPython/py/parsenum.c /home/user/esp/Core2forAWS-MicroPython/py/parsenumbase.c /home/user/esp/Core2forAWS-MicroPython/py/persistentcode.c /home/user/esp/Core2forAWS-MicroPython/py/profile.c /home/user/esp/Core2forAWS-MicroPython/py/pystack.c /home/user/esp/Core2forAWS-MicroPython/py/qstr.c /home/user/esp/Core2forAWS-MicroPython/py/reader.c /home/user/esp/Core2forAWS-MicroPython/py/repl.c /home/user/esp/Core2forAWS-MicroPython/py/ringbuf.c /home/user/esp/Core2forAWS-MicroPython/py/runtime.c /home/user/esp/Core2forAWS-MicroPython/py/runtime_utils.c /home/user/esp/Core2forAWS-MicroPython/py/scheduler.c /home/user/esp/Core2forAWS-MicroPython/py/scope.c /home/user/esp/Core2forAWS-MicroPython/py/sequence.c /home/user/esp/Core2forAWS-MicroPython/py/showbc.c /home/user/esp/Core2forAWS-MicroPython/py/smallint.c /home/user/esp/Core2forAWS-MicroPython/py/stackctrl.c /home/user/esp/Core2forAWS-MicroPython/py/stream.c /home/user/esp/Core2forAWS-MicroPython/py/unicode.c /home/user/esp/Core2forAWS-MicroPython/py/vm.c /home/user/esp/Core2forAWS-MicroPython/py/vstr.c /home/user/esp/Core2forAWS-MicroPython/py/warning.c /home/user/esp/Core2forAWS-MicroPython/extmod/machine_i2c.c /home/user/esp/Core2forAWS-MicroPython/extmod/machine_mem.c /home/user/esp/Core2forAWS-MicroPython/extmod/machine_pulse.c /home/user/esp/Core2forAWS-MicroPython/extmod/machine_signal.c /home/user/esp/Core2forAWS-MicroPython/extmod/machine_spi.c /home/user/esp/Core2forAWS-MicroPython/extmod/modbluetooth.c /home/user/esp/Core2forAWS-MicroPython/extmod/modbtree.c /home/user/esp/Core2forAWS-MicroPython/extmod/modframebuf.c /home/user/esp/Core2forAWS-MicroPython/extmod/moduasyncio.c /home/user/esp/Core2forAWS-MicroPython/extmod/modubinascii.c /home/user/esp/Core2forAWS-MicroPython/extmod/moducryptolib.c /home/user/esp/Core2forAWS-MicroPython/extmod/moductypes.c /home/user/esp/Core2forAWS-MicroPython/extmod/moduhashlib.c /home/user/esp/Core2forAWS-MicroPython/extmod/moduheapq.c /home/user/esp/Core2forAWS-MicroPython/extmod/modujson.c /home/user/esp/Core2forAWS-MicroPython/extmod/modurandom.c /home/user/esp/Core2forAWS-MicroPython/extmod/modure.c /home/user/esp/Core2forAWS-MicroPython/extmod/moduselect.c /home/user/esp/Core2forAWS-MicroPython/extmod/modussl_axtls.c /home/user/esp/Core2forAWS-MicroPython/extmod/modussl_mbedtls.c /home/user/esp/Core2forAWS-MicroPython/extmod/modutimeq.c /home/user/esp/Core2forAWS-MicroPython/extmod/moduwebsocket.c /home/user/esp/Core2forAWS-MicroPython/extmod/moduzlib.c /home/user/esp/Core2forAWS-MicroPython/extmod/modwebrepl.c /home/user/esp/Core2forAWS-MicroPython/extmod/uos_dupterm.c /home/user/esp/Core2forAWS-MicroPython/extmod/utime_mphal.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_blockdev.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_fat.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_fat_diskio.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_fat_file.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_lfs.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_posix.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_posix_file.c /home/user/esp/Core2forAWS-MicroPython/extmod/vfs_reader.c /home/user/esp/Core2forAWS-MicroPython/extmod/virtpin.c /home/user/esp/Core2forAWS-MicroPython/extmod/nimble/modbluetooth_nimble.c /home/user/esp/Core2forAWS-MicroPython/extmod/modonewire.c /home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs1.c /home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs1_util.c /home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs2.c /home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs2_util.c /home/user/esp/Core2forAWS-MicroPython/lib/mbedtls_errors/mp_mbedtls_errors.c /home/user/esp/Core2forAWS-MicroPython/lib/mp-readline/readline.c /home/user/esp/Core2forAWS-MicroPython/lib/netutils/netutils.c /home/user/esp/Core2forAWS-MicroPython/lib/oofatfs/ff.c /home/user/esp/Core2forAWS-MicroPython/lib/oofatfs/ffunicode.c /home/user/esp/Core2forAWS-MicroPython/lib/timeutils/timeutils.c /home/user/esp/Core2forAWS-MicroPython/lib/utils/interrupt_char.c /home/user/esp/Core2forAWS-MicroPython/lib/utils/stdout_helpers.c /home/user/esp/Core2forAWS-MicroPython/lib/utils/sys_stdio_mphal.c /home/user/esp/Core2forAWS-MicroPython/lib/utils/pyexec.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/main.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/uart.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/gccollect.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/mphalport.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/fatfs_port.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/help.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/modutime.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/moduos.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_timer.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_pin.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_touchpad.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_adc.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_dac.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_i2c.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_pwm.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_uart.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/modmachine.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/modnetwork.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/network_lan.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/network_ppp.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/mpnimbleport.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/modsocket.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/modesp.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/esp32_nvs.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/esp32_partition.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/esp32_rmt.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/esp32_ulp.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/modesp32.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/espneopixel.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_hw_spi.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_wdt.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/mpthreadport.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_rtc.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/machine_sdcard.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/i2c_bus/i2c_device.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/modM5Library.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/modtouch.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/modussl_mbedtls.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/machine_i2c.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/machine_i2s.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/neopixel/esp_rmt.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/neopixel/modneopixel.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/neopixel/neopixel.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/esp32_hal_spi.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/gfxfont/font/DejaVuSans14pt7b.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/gfxfont/font/DejaVuSans16pt7b.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/gfxfont/font/DejaVuSans18pt7b.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/gfxfont/font/DejaVuSans24pt7b.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/gfxfont/font/DejaVuSans26pt7b.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/gfxfont/font/DejaVuSans40pt7b.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/gfxfont/gfx.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/jpeg/jpeg_decode.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/moddisplay.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/qrcode.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/screen/core2_ili9342.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/screen/core_ili9342.c /home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/tft/tfthost.c
/home/user/esp/Core2forAWS-MicroPython/extmod/nimble/modbluetooth_nimble.c:38:10: fatal error: host/ble_hs.h: No such file or directory
 #include "host/ble_hs.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
/home/user/esp/Core2forAWS-MicroPython/ports/esp32/mpnimbleport.c:35:10: fatal error: esp_nimble_hci.h: No such file or directory
 #include "esp_nimble_hci.h"
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
  File "/home/user/esp/Core2forAWS-MicroPython/py/makeqstrdefs.py", line 188, in <module>
    preprocess()
  File "/home/user/esp/Core2forAWS-MicroPython/py/makeqstrdefs.py", line 62, in preprocess
    for output in p.imap(pp(flags), chunks):
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 870, in next
    raise value
  File "/usr/lib64/python3.9/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/user/esp/Core2forAWS-MicroPython/py/makeqstrdefs.py", line 46, in run
    return subprocess.check_output(args.pp + flags + files)
  File "/usr/lib64/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib64/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc', '-E', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/boards/Core2forAWS', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/app_update/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/bootloader_support/include', '-I/home/user/esp/esp-idf/components/bootloader_support/include_bootloader', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/driver/include', '-I/home/user/esp/esp-idf/components/driver/esp32/include', '-I/home/user/esp/esp-idf/components/driver/include/driver', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp32/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_common/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_eth/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_event/include', '-I/home/user/esp/esp-idf/components/esp_event/private_include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_ringbuf/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_rom/include', '-I/home/user/esp/esp-idf/components/esp_rom/esp32', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_wifi/include', '-I/home/user/esp/esp-idf/components/esp_wifi/esp32/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/freertos/include', '-I/home/user/esp/esp-idf/components/freertos/xtensa/include', '-I/home/user/esp/esp-idf/components/freertos/include/freertos', '-I/home/user/esp/esp-idf/components/freertos/xtensa/include/freertos', '-I/home/user/esp/esp-idf/components/freertos/xtensa', '-I/home/user/esp/esp-idf/components/freertos', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/heap/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/log/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/lwip/include/apps', '-I/home/user/esp/esp-idf/components/lwip/include/apps/sntp', '-I/home/user/esp/esp-idf/components/lwip/lwip/src/include', '-I/home/user/esp/esp-idf/components/lwip/port/esp32/include', '-I/home/user/esp/esp-idf/components/lwip/port/esp32/include/arch', '-I/home/user/esp/esp-idf/components/lwip/port/esp32/tcp_isn', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/mbedtls/port/include', '-I/home/user/esp/esp-idf/components/mbedtls/mbedtls/include', '-I/home/user/esp/esp-idf/components/mbedtls/esp_crt_bundle/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/mbedtls/port/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/mdns/include', '-I/home/user/esp/esp-idf/components/mdns/private_include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/newlib/platform_include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/nvs_flash/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/sdmmc/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/soc/src/esp32/.', '-I/home/user/esp/esp-idf/components/soc/src/esp32/include', '-I/home/user/esp/esp-idf/components/soc/src/esp32/../hal', '-I/home/user/esp/esp-idf/components/soc/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/spi_flash/include', '-I/home/user/esp/esp-idf/components/spi_flash/private_include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/tcpip_adapter/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/ulp/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/vfs/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/xtensa/include', '-I/home/user/esp/esp-idf/components/xtensa/esp32/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_netif/include', '-I/home/user/esp/esp-idf/components/esp_netif/lwip', '-I/home/user/esp/esp-idf/components/esp_netif/private_include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_system/include', '-I/home/user/esp/esp-idf/components/esp_system/private_include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_system/port/include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/esp_timer/include', '-I/home/user/esp/esp-idf/components/esp_timer/private_include', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/cryptoauthlib/lib', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/cryptoauthlib/lib/hal', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/cryptoauthlib/app/tng', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/extmod/components/esp-cryptoauthlib/port', '-I/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/config', '-I/home/user/esp/esp-idf/components/soc/soc/esp32/include', '-I/home/user/esp/esp-idf/components/soc/soc/include', '-DMICROPY_ESP_IDF_4=1', '-DMICROPY_VFS_FAT=1', '-DMICROPY_VFS_LFS2=1', '-DFFCONF_H="/home/user/esp/Core2forAWS-MicroPython/lib/oofatfs/ffconf.h"', '-DLFS1_NO_MALLOC', '-DLFS1_NO_DEBUG', '-DLFS1_NO_WARN', '-DLFS1_NO_ERROR', '-DLFS1_NO_ASSERT', '-DLFS2_NO_MALLOC', '-DLFS2_NO_DEBUG', '-DLFS2_NO_WARN', '-DLFS2_NO_ERROR', '-DLFS2_NO_ASSERT', '-DESP32', '-DATCA_HAL_I2C', '-DATCA_USE_RTOS_TIMER', '-DNO_QSTR', '/home/user/esp/Core2forAWS-MicroPython/extmod/vfs_fat.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/vfs_fat_diskio.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/vfs_fat_file.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/vfs_lfs.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/vfs_posix.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/vfs_posix_file.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/vfs_reader.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/virtpin.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/nimble/modbluetooth_nimble.c', '/home/user/esp/Core2forAWS-MicroPython/extmod/modonewire.c', '/home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs1.c', '/home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs1_util.c', '/home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs2.c', '/home/user/esp/Core2forAWS-MicroPython/lib/littlefs/lfs2_util.c', '/home/user/esp/Core2forAWS-MicroPython/lib/mbedtls_errors/mp_mbedtls_errors.c', '/home/user/esp/Core2forAWS-MicroPython/lib/mp-readline/readline.c', '/home/user/esp/Core2forAWS-MicroPython/lib/netutils/netutils.c', '/home/user/esp/Core2forAWS-MicroPython/lib/oofatfs/ff.c', '/home/user/esp/Core2forAWS-MicroPython/lib/oofatfs/ffunicode.c', '/home/user/esp/Core2forAWS-MicroPython/lib/timeutils/timeutils.c', '/home/user/esp/Core2forAWS-MicroPython/lib/utils/interrupt_char.c', '/home/user/esp/Core2forAWS-MicroPython/lib/utils/stdout_helpers.c', '/home/user/esp/Core2forAWS-MicroPython/lib/utils/sys_stdio_mphal.c', '/home/user/esp/Core2forAWS-MicroPython/lib/utils/pyexec.c', '/home/user/esp/Core2forAWS-MicroPython/ports/esp32/main.c', '/home/user/esp/Core2forAWS-MicroPython/ports/esp32/uart.c', '/home/user/esp/Core2forAWS-MicroPython/ports/esp32/gccollect.c', '/home/user/esp/Core2forAWS-MicroPython/ports/esp32/mphalport.c', '/home/user/esp/Core2forAWS-MicroPython/ports/esp32/fatfs_port.c']' returned non-zero exit status 1.
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make: *** [Makefile:24: all] Fehler 2

(base) [user esp32]$ find ../../..  -iname esp_nimble*
../../../esp-idf/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c
../../../esp-idf/components/bt/host/nimble/esp-hci/include/esp_nimble_hci.h
../../../esp-idf/components/bt/host/nimble/port/src/esp_nimble_mem.c
../../../esp-idf/components/bt/host/nimble/port/include/esp_nimble_cfg.h
../../../esp-idf/components/bt/host/nimble/port/include/esp_nimble_mem.h

-> should idf 4.2 be used or 4.2.1 or 4.3 ?

-> the readme says

cd port/esp32
make 

change port to ports

rashedtalukder commented 3 years ago

Thank you for filing this issue. You can use ESP-IDF version 4.2.x. This has not been tested with 4.3.

The commit addresses the typo and missing sdkconfig file that your encountered at first.

726D commented 3 years ago

pulled repo, then

(base) [user esp32]$ make
....
[1097/1329] Generating ../../frozen_content.c
FAILED: frozen_content.c 
cd /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/esp-idf/main && /usr/bin/python3.9 /home/user/esp/Core2forAWS-MicroPython/tools/makemanifest.py -o /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/frozen_content.c -v MPY_DIR=/home/user/esp/Core2forAWS-MicroPython -v PORT_DIR=/home/user/esp/Core2forAWS-MicroPython/ports/esp32 -b /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS -f-march=xtensawin /home/user/esp/Core2forAWS-MicroPython/ports/esp32/boards/Core2forAWS/manifest.py
mpy-cross not found at /home/user/esp/Core2forAWS-MicroPython/mpy-cross/mpy-cross, please build it first
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make: *** [Makefile:24: all] Fehler 2

...

(base) [user mpy-cross]$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
...
CC ../lib/utils/gchelper_generic.c
LINK mpy-cross
   text    data     bss     dec     hex filename
 269756     768     904  271428   42444 mpy-cross

...

(base) [user esp32]$ make
idf.py -D MICROPY_BOARD=Core2forAWS -B build-Core2forAWS build
Executing action: all (aliases: build)
Running ninja in directory /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS
Executing "ninja all"...
[2/237] Performing build step for 'bootloader'
ninja: no work to do.
[3/235] Generating ../../frozen_content.c
MPY neopixel.py
MPY flashbdev.py
MPY inisetup.py
MPY apa106.py
MPY upip.py
MPY upip_utarfile.py
MPY ntptime.py
MPY dht.py
MPY ds18x20.py
MPY onewire.py
MPY uasyncio/__init__.py
MPY uasyncio/core.py
MPY uasyncio/event.py
MPY uasyncio/funcs.py
MPY uasyncio/lock.py
MPY uasyncio/stream.py
MPY webrepl.py
MPY webrepl_setup.py
MPY websocket_helper.py
MPY mpu6886.py
MPY _boot.py
MPY bm8563.py
MPY Edukit.py
MPY sk6812.py
MPY axp192.py
MPY umqtt/simple.py
MPY umqtt/robust.py
GEN /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/frozen_content.c
[234/235] Linking CXX executable micropython.elf
FAILED: micropython.elf 
: && /home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -mlongcalls -Wno-frame-address  CMakeFiles/micropython.elf.dir/project_elf_src.c.obj -o micropython.elf  esp-idf/xtensa/libxtensa.a  esp-idf/mbedtls/libmbedtls.a  esp-idf/efuse/libefuse.a  esp-idf/bootloader_support/libbootloader_support.a  esp-idf/app_update/libapp_update.a  esp-idf/esp_ipc/libesp_ipc.a  esp-idf/spi_flash/libspi_flash.a  esp-idf/esp_system/libesp_system.a  esp-idf/esp_rom/libesp_rom.a  esp-idf/soc/libsoc.a  esp-idf/vfs/libvfs.a  esp-idf/esp_eth/libesp_eth.a  esp-idf/tcpip_adapter/libtcpip_adapter.a  esp-idf/esp_netif/libesp_netif.a  esp-idf/esp_event/libesp_event.a  esp-idf/wpa_supplicant/libwpa_supplicant.a  esp-idf/nvs_flash/libnvs_flash.a  esp-idf/esp_wifi/libesp_wifi.a  esp-idf/lwip/liblwip.a  esp-idf/log/liblog.a  esp-idf/heap/libheap.a  esp-idf/esp_ringbuf/libesp_ringbuf.a  esp-idf/driver/libdriver.a  esp-idf/pthread/libpthread.a  esp-idf/espcoredump/libespcoredump.a  esp-idf/perfmon/libperfmon.a  esp-idf/esp32/libesp32.a  esp-idf/esp_common/libesp_common.a  esp-idf/esp_timer/libesp_timer.a  esp-idf/freertos/libfreertos.a  esp-idf/newlib/libnewlib.a  esp-idf/cxx/libcxx.a  esp-idf/app_trace/libapp_trace.a  esp-idf/asio/libasio.a  esp-idf/bt/libbt.a  esp-idf/cbor/libcbor.a  esp-idf/coap/libcoap.a  esp-idf/console/libconsole.a  esp-idf/nghttp/libnghttp.a  esp-idf/esp-tls/libesp-tls.a  esp-idf/esp_adc_cal/libesp_adc_cal.a  esp-idf/esp_gdbstub/libesp_gdbstub.a  esp-idf/esp_hid/libesp_hid.a  esp-idf/tcp_transport/libtcp_transport.a  esp-idf/esp_http_client/libesp_http_client.a  esp-idf/esp_http_server/libesp_http_server.a  esp-idf/esp_https_ota/libesp_https_ota.a  esp-idf/protobuf-c/libprotobuf-c.a  esp-idf/protocomm/libprotocomm.a  esp-idf/mdns/libmdns.a  esp-idf/esp_local_ctrl/libesp_local_ctrl.a  esp-idf/sdmmc/libsdmmc.a  esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a  esp-idf/esp_websocket_client/libesp_websocket_client.a  esp-idf/expat/libexpat.a  esp-idf/wear_levelling/libwear_levelling.a  esp-idf/fatfs/libfatfs.a  esp-idf/freemodbus/libfreemodbus.a  esp-idf/jsmn/libjsmn.a  esp-idf/json/libjson.a  esp-idf/libsodium/liblibsodium.a  esp-idf/mqtt/libmqtt.a  esp-idf/openssl/libopenssl.a  esp-idf/spiffs/libspiffs.a  esp-idf/ulp/libulp.a  esp-idf/unity/libunity.a  esp-idf/wifi_provisioning/libwifi_provisioning.a  esp-idf/esp-cryptoauthlib/libesp-cryptoauthlib.a  esp-idf/main/libmain.a  -Wl,--cref -Wl,--Map=/home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/micropython.map  -fno-rtti  -fno-lto  esp-idf/wear_levelling/libwear_levelling.a  esp-idf/protocomm/libprotocomm.a  esp-idf/protobuf-c/libprotobuf-c.a  esp-idf/json/libjson.a  esp-idf/bt/libbt.a  -L/home/user/esp/esp-idf/components/bt/controller/lib/esp32  -lbtdm_app  esp-idf/mdns/libmdns.a  esp-idf/console/libconsole.a  esp-idf/sdmmc/libsdmmc.a  esp-idf/xtensa/libxtensa.a  esp-idf/mbedtls/libmbedtls.a  esp-idf/efuse/libefuse.a  esp-idf/bootloader_support/libbootloader_support.a  esp-idf/app_update/libapp_update.a  esp-idf/esp_ipc/libesp_ipc.a  esp-idf/spi_flash/libspi_flash.a  esp-idf/esp_system/libesp_system.a  esp-idf/esp_rom/libesp_rom.a  esp-idf/soc/libsoc.a  esp-idf/vfs/libvfs.a  esp-idf/esp_eth/libesp_eth.a  esp-idf/tcpip_adapter/libtcpip_adapter.a  esp-idf/esp_netif/libesp_netif.a  esp-idf/esp_event/libesp_event.a  esp-idf/wpa_supplicant/libwpa_supplicant.a  esp-idf/nvs_flash/libnvs_flash.a  esp-idf/esp_wifi/libesp_wifi.a  esp-idf/lwip/liblwip.a  esp-idf/log/liblog.a  esp-idf/heap/libheap.a  esp-idf/esp_ringbuf/libesp_ringbuf.a  esp-idf/driver/libdriver.a  esp-idf/pthread/libpthread.a  esp-idf/espcoredump/libespcoredump.a  esp-idf/perfmon/libperfmon.a  esp-idf/esp32/libesp32.a  esp-idf/esp_common/libesp_common.a  esp-idf/esp_timer/libesp_timer.a  esp-idf/freertos/libfreertos.a  esp-idf/newlib/libnewlib.a  esp-idf/cxx/libcxx.a  esp-idf/app_trace/libapp_trace.a  esp-idf/nghttp/libnghttp.a  esp-idf/esp-tls/libesp-tls.a  esp-idf/tcp_transport/libtcp_transport.a  esp-idf/esp_http_client/libesp_http_client.a  esp-idf/esp_http_server/libesp_http_server.a  esp-idf/ulp/libulp.a  esp-idf/esp-cryptoauthlib/libesp-cryptoauthlib.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/soc/soc/esp32/libsoc_esp32.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/librtc.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libphy.a  esp-idf/xtensa/libxtensa.a  esp-idf/mbedtls/libmbedtls.a  esp-idf/efuse/libefuse.a  esp-idf/bootloader_support/libbootloader_support.a  esp-idf/app_update/libapp_update.a  esp-idf/esp_ipc/libesp_ipc.a  esp-idf/spi_flash/libspi_flash.a  esp-idf/esp_system/libesp_system.a  esp-idf/esp_rom/libesp_rom.a  esp-idf/soc/libsoc.a  esp-idf/vfs/libvfs.a  esp-idf/esp_eth/libesp_eth.a  esp-idf/tcpip_adapter/libtcpip_adapter.a  esp-idf/esp_netif/libesp_netif.a  esp-idf/esp_event/libesp_event.a  esp-idf/wpa_supplicant/libwpa_supplicant.a  esp-idf/nvs_flash/libnvs_flash.a  esp-idf/esp_wifi/libesp_wifi.a  esp-idf/lwip/liblwip.a  esp-idf/log/liblog.a  esp-idf/heap/libheap.a  esp-idf/esp_ringbuf/libesp_ringbuf.a  esp-idf/driver/libdriver.a  esp-idf/pthread/libpthread.a  esp-idf/espcoredump/libespcoredump.a  esp-idf/perfmon/libperfmon.a  esp-idf/esp32/libesp32.a  esp-idf/esp_common/libesp_common.a  esp-idf/esp_timer/libesp_timer.a  esp-idf/freertos/libfreertos.a  esp-idf/newlib/libnewlib.a  esp-idf/cxx/libcxx.a  esp-idf/app_trace/libapp_trace.a  esp-idf/nghttp/libnghttp.a  esp-idf/esp-tls/libesp-tls.a  esp-idf/tcp_transport/libtcp_transport.a  esp-idf/esp_http_client/libesp_http_client.a  esp-idf/esp_http_server/libesp_http_server.a  esp-idf/ulp/libulp.a  esp-idf/esp-cryptoauthlib/libesp-cryptoauthlib.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/soc/soc/esp32/libsoc_esp32.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/librtc.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libphy.a  esp-idf/xtensa/libxtensa.a  esp-idf/mbedtls/libmbedtls.a  esp-idf/efuse/libefuse.a  esp-idf/bootloader_support/libbootloader_support.a  esp-idf/app_update/libapp_update.a  esp-idf/esp_ipc/libesp_ipc.a  esp-idf/spi_flash/libspi_flash.a  esp-idf/esp_system/libesp_system.a  esp-idf/esp_rom/libesp_rom.a  esp-idf/soc/libsoc.a  esp-idf/vfs/libvfs.a  esp-idf/esp_eth/libesp_eth.a  esp-idf/tcpip_adapter/libtcpip_adapter.a  esp-idf/esp_netif/libesp_netif.a  esp-idf/esp_event/libesp_event.a  esp-idf/wpa_supplicant/libwpa_supplicant.a  esp-idf/nvs_flash/libnvs_flash.a  esp-idf/esp_wifi/libesp_wifi.a  esp-idf/lwip/liblwip.a  esp-idf/log/liblog.a  esp-idf/heap/libheap.a  esp-idf/esp_ringbuf/libesp_ringbuf.a  esp-idf/driver/libdriver.a  esp-idf/pthread/libpthread.a  esp-idf/espcoredump/libespcoredump.a  esp-idf/perfmon/libperfmon.a  esp-idf/esp32/libesp32.a  esp-idf/esp_common/libesp_common.a  esp-idf/esp_timer/libesp_timer.a  esp-idf/freertos/libfreertos.a  esp-idf/newlib/libnewlib.a  esp-idf/cxx/libcxx.a  esp-idf/app_trace/libapp_trace.a  esp-idf/nghttp/libnghttp.a  esp-idf/esp-tls/libesp-tls.a  esp-idf/tcp_transport/libtcp_transport.a  esp-idf/esp_http_client/libesp_http_client.a  esp-idf/esp_http_server/libesp_http_server.a  esp-idf/ulp/libulp.a  esp-idf/esp-cryptoauthlib/libesp-cryptoauthlib.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/soc/soc/esp32/libsoc_esp32.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/librtc.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libphy.a  esp-idf/xtensa/libxtensa.a  esp-idf/mbedtls/libmbedtls.a  esp-idf/efuse/libefuse.a  esp-idf/bootloader_support/libbootloader_support.a  esp-idf/app_update/libapp_update.a  esp-idf/esp_ipc/libesp_ipc.a  esp-idf/spi_flash/libspi_flash.a  esp-idf/esp_system/libesp_system.a  esp-idf/esp_rom/libesp_rom.a  esp-idf/soc/libsoc.a  esp-idf/vfs/libvfs.a  esp-idf/esp_eth/libesp_eth.a  esp-idf/tcpip_adapter/libtcpip_adapter.a  esp-idf/esp_netif/libesp_netif.a  esp-idf/esp_event/libesp_event.a  esp-idf/wpa_supplicant/libwpa_supplicant.a  esp-idf/nvs_flash/libnvs_flash.a  esp-idf/esp_wifi/libesp_wifi.a  esp-idf/lwip/liblwip.a  esp-idf/log/liblog.a  esp-idf/heap/libheap.a  esp-idf/esp_ringbuf/libesp_ringbuf.a  esp-idf/driver/libdriver.a  esp-idf/pthread/libpthread.a  esp-idf/espcoredump/libespcoredump.a  esp-idf/perfmon/libperfmon.a  esp-idf/esp32/libesp32.a  esp-idf/esp_common/libesp_common.a  esp-idf/esp_timer/libesp_timer.a  esp-idf/freertos/libfreertos.a  esp-idf/newlib/libnewlib.a  esp-idf/cxx/libcxx.a  esp-idf/app_trace/libapp_trace.a  esp-idf/nghttp/libnghttp.a  esp-idf/esp-tls/libesp-tls.a  esp-idf/tcp_transport/libtcp_transport.a  esp-idf/esp_http_client/libesp_http_client.a  esp-idf/esp_http_server/libesp_http_server.a  esp-idf/ulp/libulp.a  esp-idf/esp-cryptoauthlib/libesp-cryptoauthlib.a  esp-idf/mbedtls/mbedtls/library/libmbedtls.a  esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a  esp-idf/mbedtls/mbedtls/library/libmbedx509.a  esp-idf/soc/soc/esp32/libsoc_esp32.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libcore.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libespnow.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libmesh.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libpp.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/librtc.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a  /home/user/esp/esp-idf/components/esp_wifi/lib/esp32/libphy.a  /home/user/esp/esp-idf/components/xtensa/esp32/libhal.a  -u esp_app_desc  -L /home/user/esp/esp-idf/components/esp_rom/esp32/ld  -T esp32.rom.ld  -T esp32.rom.libgcc.ld  -T esp32.rom.newlib-data.ld  -T esp32.rom.syscalls.ld  -Wl,--wrap=longjmp  -u vfs_include_syscalls_impl  -L /home/user/esp/esp-idf/components/esp_wifi/lib/esp32  -Wl,--wrap=vPortCleanUpTCB  -u pthread_include_pthread_impl  -u pthread_include_pthread_cond_impl  -u pthread_include_pthread_local_storage_impl  -L /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/esp-idf/esp32  -T esp32_out.ld  -u app_main  -L /home/user/esp/Core2forAWS-MicroPython/ports/esp32/build-Core2forAWS/esp-idf/esp32/ld  -T esp32.project.ld  -L /home/user/esp/esp-idf/components/esp32/ld  -T esp32.peripherals.ld  -u call_user_start_cpu0  -u ld_include_panic_highint_hdl  -mfix-esp32-psram-cache-issue  -mfix-esp32-psram-cache-strategy=memw  -Wl,--gc-sections  -Wl,--undefined=uxTopUsedPriority  -lc  -lm  esp-idf/newlib/libnewlib.a  -u newlib_include_locks_impl  -u newlib_include_heap_impl  -u newlib_include_syscalls_impl  -u newlib_include_pthread_impl  -Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting  -Wl,--wrap=__register_frame_info_bases  -Wl,--wrap=__register_frame_info  -Wl,--wrap=__register_frame  -Wl,--wrap=__register_frame_info_table_bases  -Wl,--wrap=__register_frame_info_table  -Wl,--wrap=__register_frame_table  -Wl,--wrap=__deregister_frame_info_bases  -Wl,--wrap=__deregister_frame_info  -Wl,--wrap=_Unwind_Find_FDE  -Wl,--wrap=_Unwind_GetGR  -Wl,--wrap=_Unwind_GetCFA  -Wl,--wrap=_Unwind_GetIP  -Wl,--wrap=_Unwind_GetIPInfo  -Wl,--wrap=_Unwind_GetRegionStart  -Wl,--wrap=_Unwind_GetDataRelBase  -Wl,--wrap=_Unwind_GetTextRelBase  -Wl,--wrap=_Unwind_SetIP  -Wl,--wrap=_Unwind_SetGR  -Wl,--wrap=_Unwind_GetLanguageSpecificData  -Wl,--wrap=_Unwind_FindEnclosingFunction  -Wl,--wrap=_Unwind_Resume  -Wl,--wrap=_Unwind_RaiseException  -Wl,--wrap=_Unwind_DeleteException  -Wl,--wrap=_Unwind_ForcedUnwind  -Wl,--wrap=_Unwind_Resume_or_Rethrow  -Wl,--wrap=_Unwind_Backtrace  -Wl,--wrap=__cxa_call_unexpected  -Wl,--wrap=__gxx_personality_v0  -u __cxa_guard_dummy  -lstdc++  esp-idf/pthread/libpthread.a  -lgcc  esp-idf/cxx/libcxx.a  -u __cxx_fatal_exception && :
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(modbluetooth_nimble.c.obj):(.literal.mp_bluetooth_deinit+0x8): undefined reference to `mp_bluetooth_nimble_port_shutdown'
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(modbluetooth_nimble.c.obj):(.literal.mp_bluetooth_deinit+0xc): undefined reference to `mp_bluetooth_nimble_port_hci_deinit'
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(modbluetooth_nimble.c.obj):(.literal.mp_bluetooth_init+0x14): undefined reference to `mp_bluetooth_nimble_port_hci_init'
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(modbluetooth_nimble.c.obj):(.literal.mp_bluetooth_init+0x18): undefined reference to `mp_bluetooth_nimble_port_start'
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(modbluetooth_nimble.c.obj): in function `mp_bluetooth_deinit':
/home/user/esp/Core2forAWS-MicroPython/extmod/nimble/modbluetooth_nimble.c:664: undefined reference to `mp_bluetooth_nimble_port_shutdown'
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/user/esp/Core2forAWS-MicroPython/extmod/nimble/modbluetooth_nimble.c:674: undefined reference to `mp_bluetooth_nimble_port_hci_deinit'
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(modbluetooth_nimble.c.obj): in function `mp_bluetooth_gatts_db_create':
/home/user/esp/Core2forAWS-MicroPython/extmod/modbluetooth.h:498: undefined reference to `mp_bluetooth_nimble_port_hci_init'
/home/user/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(modbluetooth_nimble.c.obj): in function `mp_bluetooth_init':
/home/user/esp/Core2forAWS-MicroPython/extmod/nimble/modbluetooth_nimble.c:612: undefined reference to `mp_bluetooth_nimble_port_start'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make: *** [Makefile:24: all] Fehler 2

problem with modbluetooth_nimble.c still there