MrBuddyCasino / ESP32_Alexa

An Alexa Smart Speaker project for the ESP32.
Mozilla Public License 2.0
265 stars 72 forks source link

Compiling Failed. #43

Open teezzan opened 4 years ago

teezzan commented 4 years ago

Hello,

I have had no success compiling the source code. I followed the instruction given in the README file. After configuring using the menuconfig interface, I ran make flash after which it will begin to compile but run into a particular error. The complete compilation log is as follows.

 $make flash
Toolchain path: /home/gal3li0/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-80-g6c4433a
Expected to see version: esp-2019r2
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 5.2.0
Expected to see version(s): 8.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
Python requirements from /home/gal3li0/esp/esp-idf/requirements.txt are satisfied.
App "alexa" version: 07ef9e5
WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-80-g6c4433a
Expected to see version: esp-2019r2
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 5.2.0
Expected to see version(s): 8.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
CC build/bootloader/bootloader_support/src/bootloader_efuse_esp32.o
CC build/bootloader/bootloader_support/src/bootloader_flash.o
CC build/bootloader/bootloader_support/src/flash_qio_mode.o
CC build/bootloader/bootloader_support/src/bootloader_init.o
CC build/bootloader/bootloader_support/src/bootloader_utility.o
CC build/bootloader/bootloader_support/src/bootloader_common.o
CC build/bootloader/bootloader_support/src/bootloader_clock.o
CC build/bootloader/bootloader_support/src/bootloader_flash_config_esp32.o
CC build/bootloader/bootloader_support/src/flash_partitions.o
CC build/bootloader/bootloader_support/src/esp_image_format.o
CC build/bootloader/bootloader_support/src/flash_encrypt.o
CC build/bootloader/bootloader_support/src/bootloader_random.o
CC build/bootloader/bootloader_support/src/esp32/secure_boot_signatures.o
CC build/bootloader/bootloader_support/src/esp32/secure_boot.o
CC build/bootloader/bootloader_support/src/esp32/bootloader_sha.o
CC build/bootloader/bootloader_support/src/esp32/bootloader_esp32.o
CC build/bootloader/bootloader_support/src/esp32/flash_encrypt.o
AR build/bootloader/bootloader_support/libbootloader_support.a
CC build/bootloader/log/log.o
CC build/bootloader/log/log_buffers.o
AR build/bootloader/log/liblog.a
CC build/bootloader/spi_flash/esp32/spi_flash_rom_patch.o
AR build/bootloader/spi_flash/libspi_flash.a
CC build/bootloader/soc/src/lldesc.o
CC build/bootloader/soc/src/memory_layout_utils.o
CC build/bootloader/soc/src/compare_set.o
CC build/bootloader/soc/src/soc_include_legacy_warn.o
CC build/bootloader/soc/src/hal/spi_slave_hal_iram.o
CC build/bootloader/soc/src/hal/can_hal.o
CC build/bootloader/soc/src/hal/spi_slave_hal.o
CC build/bootloader/soc/src/hal/i2s_hal.o
CC build/bootloader/soc/src/hal/timer_hal.o
CC build/bootloader/soc/src/hal/dac_hal.o
CC build/bootloader/soc/src/hal/spi_flash_hal_iram.o
CC build/bootloader/soc/src/hal/spi_flash_hal.o
CC build/bootloader/soc/src/hal/touch_sensor_hal.o
CC build/bootloader/soc/src/hal/mcpwm_hal.o
CC build/bootloader/soc/src/hal/spi_hal_iram.o
CC build/bootloader/soc/src/hal/sdio_slave_hal.o
CC build/bootloader/soc/src/hal/ledc_hal_iram.o
CC build/bootloader/soc/src/hal/spi_hal.o
CC build/bootloader/soc/src/hal/ledc_hal.o
CC build/bootloader/soc/src/hal/spi_flash_hal_gpspi.o
CC build/bootloader/soc/src/hal/gpio_hal.o
CC build/bootloader/soc/src/esp32/touch_sensor_hal.o
CC build/bootloader/soc/src/esp32/cpu_util.o
CC build/bootloader/soc/src/esp32/brownout_hal.o
CC build/bootloader/soc/src/esp32/sdio_slave_hal.o
CC build/bootloader/soc/src/esp32/rtc_init.o
CC build/bootloader/soc/src/esp32/rtc_clk_init.o
CC build/bootloader/soc/src/esp32/rtc_sleep.o
CC build/bootloader/soc/src/esp32/rtc_time.o
CC build/bootloader/soc/src/esp32/rtc_clk.o
CC build/bootloader/soc/src/esp32/emac_hal.o
CC build/bootloader/soc/soc/esp32/spi_periph.o
AR build/bootloader/soc/libsoc.a
CC build/bootloader/main/bootloader_start.o
AR build/bootloader/main/libmain.a
CC build/bootloader/efuse/esp32/esp_efuse_table.o
CC build/bootloader/efuse/src/esp_efuse_api.o
CC build/bootloader/efuse/src/esp_efuse_utility.o
CC build/bootloader/efuse/src/esp_efuse_fields.o
CC build/bootloader/efuse/src/esp32/esp_efuse_api.o
CC build/bootloader/efuse/src/esp32/esp_efuse_utility.o
CC build/bootloader/efuse/src/esp32/esp_efuse_fields.o
AR build/bootloader/efuse/libefuse.a
LD build/bootloader/bootloader.elf
esptool.py v3.0-dev
Python requirements from /home/gal3li0/esp/esp-idf/requirements.txt are satisfied.
Building partitions from /home/gal3li0/Documents/electronic/ESP32_Alexa/partitions.csv...

CC build/MerusAudio/MerusAudio.o
AR build/MerusAudio/libMerusAudio.a
CC build/alexa/stream_handler_directives.o
CC build/alexa/js_event_sync_state.o
CC build/alexa/js_event_settings.o
CC build/alexa/js_event_recognize.o
CC build/alexa/multipart_producer.o
CC build/alexa/alexa.o
In file included from /home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c:24:0:
/home/gal3li0/esp/esp-idf/components/lwip/include/apps/sntp/sntp.h:63:45: warning: 'struct timeval' declared inside parameter list
 typedef void (*sntp_sync_time_cb_t) (struct timeval *tv);
                                             ^
/home/gal3li0/esp/esp-idf/components/lwip/include/apps/sntp/sntp.h:63:45: warning: its scope is only this definition or declaration, which is probably not what you want
/home/gal3li0/esp/esp-idf/components/lwip/include/apps/sntp/sntp.h:77:28: warning: 'struct timeval' declared inside parameter list
 void sntp_sync_time(struct timeval *tv);
                            ^
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c: In function 'stream_close_callback':
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c:310:21: warning: unused variable 'stream' [-Wunused-variable]
     alexa_stream_t *stream = nghttp2_session_get_stream_user_data(session,
                     ^
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c:309:27: warning: unused variable 'session_data' [-Wunused-variable]
     http2_session_data_t *session_data = user_data;
                           ^
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c: In function 'on_wifi_connected_cb':
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c:593:9: error: implicit declaration of function 'obtain_time' [-Werror=implicit-function-declaration]
         obtain_time();
         ^
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c: In function 'alexa_init':
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c:640:76: warning: passing argument 4 of 'asio_new_generic_task' makes pointer from integer without a cast [-Wint-conversion]
     asio_new_generic_task("led_ui", alexa_session->registry, on_led_ui_cb, GPIO_NUM_4, NULL);
                                                                            ^
In file included from /home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c:48:0:
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/asio/include/asio_generic.h:13:14: note: expected 'void *' but argument is of type 'int'
 asio_task_t *asio_new_generic_task(char *name, asio_registry_t *registry, asio_generic_callback_t 
              ^
/home/gal3li0/Documents/electronic/ESP32_Alexa/components/alexa/alexa.c: At top level:
cc1: warning: unrecognized command line option '-Wno-frame-address'
cc1: some warnings being treated as errors
/home/gal3li0/esp/esp-idf/make/component_wrapper.mk:291: recipe for target 'alexa.o' failed
make[1]: *** [alexa.o] Error 1
/home/gal3li0/esp/esp-idf/make/project.mk:604: recipe for target 'component-alexa-build' failed
make: *** [component-alexa-build] Error 2

What do I do? Thanks.

MrBuddyCasino commented 4 years ago

Been a while since I touched the code, seems it doesn’t work anymore with the latest esp-idf. Either use an older version or fix the errors, pull requests accepted.