Hi,
I'm trying to compile hello-world for an esp32-wroom-32 board.
I installed the Mac homebrew version of the esp32 toolchain from https://github.com/tasanakorn/homebrew-esp32.
I also installed ESP-IDF as described at https://riot-os.org/api/group__cpu__esp32.html#esp32_manual_toolchain_installation.
In the hello-world Makefile, I changed the board from "native" (which doesn't build on Darwin, see https://github.com/RIOT-OS/RIOT/issues/10121) to "esp32-wroom-32".
I also added ESP32_SDK_DIR ?= $(CURDIR)/../../../esp-idf which is where installed ESP-IDF.
Now, when I try and build, I get this:
examples/hello-world # make Warning: no PORT set! Building application "esp32-wroom-32" for "esp32-wroom-32" with MCU "esp32".
'/Users/lars/Documents/Code/riot/dist/tools/genconfigheader/genconfigheader.sh' -DDEVELHELP -Werror -DSCHED_PRIO_LEVELS=32 -DSDK_NOT_USED -DCONFIG_FREERTOS_UNICORE=1 -DESP_PLATFORM -DLOG_TAG_IN_BRACKETS -Wno-unused-parameter -Wformat=0 -mlongcalls -mtext-section-literals -fstrict-volatile-bitfields -fdata-sections -ffunction-sections -fzero-initialized-in-bss -Os -DFLASH_MODE_DOUT=1 -DFLASH_MODE_DOUT=1 -DFLASH_MODE_DOUT=1 -DFLASH_MODE_DOUT=1 -DRIOT_APPLICATION=\"esp32-wroom-32\" -DBOARD_ESP32_WROOM_32=\"esp32-wroom-32\" -DRIOT_BOARD=BOARD_ESP32_WROOM_32 -DCPU_ESP32=\"esp32\" -DRIOT_CPU=CPU_ESP32 -DMCU_ESP32=\"esp32\" -DRIOT_MCU=MCU_ESP32 -std=c99 -fno-common -Wall -Wextra -Wmissing-include-dirs -fno-delete-null-pointer-checks -fdiagnostics-color -Wstrict-prototypes -Wold-style-definition -Wformat=2 -DMODULE_AUTO_INIT -DMODULE_BOARD -DMODULE_BOARDS_COMMON_ESP32 -DMODULE_CORE -DMODULE_CORE_MSG -DMODULE_CPU -DMODULE_DIV -DMODULE_ESP_IDF -DMODULE_ESP_IDF_DRIVER -DMODULE_ESP_IDF_ESP32 -DMODULE_ESP_IDF_SOC -DMODULE_LOG -DMODULE_LUID -DMODULE_NEWLIB -DMODULE_NEWLIB_SYSCALLS_DEFAULT -DMODULE_PERIPH -DMODULE_PERIPH_ADC_CTRL -DMODULE_PERIPH_COMMON -DMODULE_PERIPH_CPUID -DMODULE_PERIPH_FLASH -DMODULE_PERIPH_GPIO -DMODULE_PERIPH_HWRNG -DMODULE_PERIPH_PM -DMODULE_PERIPH_RTC -DMODULE_PERIPH_TIMER -DMODULE_PERIPH_UART -DMODULE_PRNG -DMODULE_PRNG_TINYMT32 -DMODULE_RANDOM -DMODULE_RIOT_FREERTOS -DMODULE_STDIO_UART -DMODULE_SYS -DMODULE_TINYMT32 -DMODULE_XTENSA -DMODULE_XTIMER -DRIOT_VERSION=\"2019.10-devel-662-gc78ae\" \ > '/Users/lars/Documents/Code/riot/dist/tools/lazysponge/lazysponge.py' --verbose '/Users/lars/Documents/Code/riot/examples/hello-world/bin/esp32-wroom-32/riotbuild/riotbuild.h' Keeping old /Users/lars/Documents/Code/riot/examples/hello-world/bin/esp32-wroom-32/riotbuild/riotbuild.h (a28a689f75344d87871e868b103e4c64) DIRS=" " "make" -C /Users/lars/Documents/Code/riot/examples/hello-world -f /Users/lars/Documents/Code/riot/makefiles/application.inc.mk make[1]: Entering directory '/Users/lars/Documents/Code/riot/examples/hello-world' xtensa-esp32-elf-gcc \ -DRIOT_FILE_RELATIVE=\"examples/hello-world/main.c\" \ -DRIOT_FILE_NOPATH=\"main.c\" \ -Werror -Wno-unused-parameter -Wformat=0 -mlongcalls -mtext-section-literals -fstrict-volatile-bitfields -fdata-sections -ffunction-sections -fzero-initialized-in-bss -Os -std=c99 -fno-common -Wall -Wextra -Wmissing-include-dirs -fno-delete-null-pointer-checks -fdiagnostics-color -Wstrict-prototypes -Wold-style-definition -Wformat=2 -include '/Users/lars/Documents/Code/riot/examples/hello-world/bin/esp32-wroom-32/riotbuild/riotbuild.h' -I/Users/lars/Documents/Code/riot/core/include -I/Users/lars/Documents/Code/riot/drivers/include -I/Users/lars/Documents/Code/riot/sys/include -I/Users/lars/Documents/Code/riot/boards/esp32-wroom-32/include -I/Users/lars/Documents/Code/riot/cpu/esp32/include -I/Users/lars/Documents/Code/riot/cpu/esp_common/vendor/ -I/Users/lars/Documents/Code/riot/cpu/esp32/vendor/ -I/Users/lars/Documents/Code/riot/cpu/esp32/vendor/esp-idf/include -I/Users/lars/Documents/Code/riot/cpu/esp32/vendor/esp-idf/include/esp32 -I/Users/lars/Documents/Code/riot/cpu/esp32/vendor/esp-idf/include/heap -I/Users/lars/Documents/Code/riot/cpu/esp32/vendor/esp-idf/include/spi_flash -I/Users/lars/Documents/Code/riot/cpu/esp32/vendor/esp-idf/include/tcpip_adapter -I/Users/lars/Documents/Code/riot/examples/hello-world/../../../esp-idf/components/ -I/Users/lars/Documents/Code/riot/examples/hello-world/../../../esp-idf/components/driver/include -I/Users/lars/Documents/Code/riot/examples/hello-world/../../../esp-idf/components/esp32/include -I/Users/lars/Documents/Code/riot/examples/hello-world/../../../esp-idf/components/heap/include -I/Users/lars/Documents/Code/riot/examples/hello-world/../../../esp-idf/components/soc/esp32/include -I/Users/lars/Documents/Code/riot/examples/hello-world/../../../esp-idf/components/soc/include -I/Users/lars/Documents/Code/riot/boards/common/esp32/include -I/Users/lars/Documents/Code/riot/cpu/esp32 -I/Users/lars/Documents/Code/riot/sys/libc/include -MD -MP -c -o /Users/lars/Documents/Code/riot/examples/hello-world/bin/esp32-wroom-32/application_esp32-wroom-32/main.o /Users/lars/Documents/Code/riot/examples/hello-world/main.c In file included from /Users/lars/Documents/Code/riot/examples/hello-world/main.c:22: /Users/lars/Documents/Code/riot/cpu/esp32/include/stdio.h:177:23: error: expected ')' before '(' token FILE * _EXFUN(tmpfile, (void)); ^~ )
And a gazillion more errors due to the _EXFUN macro being undefined.
Any ideas?
Thanks, Lars