[Solved] Need help with environment setup

Digital_Pig
Posts: 12
Joined: Thu Dec 06, 2018 4:03 am

[Solved] Need help with environment setup

Postby Digital_Pig » Sat Jan 18, 2020 6:48 pm

Het guys!

I thought I'd finally got my environment setup properly for building projects with my Lyra-TD MSC board, but when I try to build the first demo project, it fails.

I'm running on a CentOS7 box (headless, not VM). I install ESP-ADF, ESP-IDF, Toolchain for Linux, updated my CMake to 3.6, ran the install.sh file to make sure everything was correctly pointing to gcc 8.2 (tried the 5.2 version also but different errors), and source the export.sh file in my bash profile.

Here is the output of idf.py build:
[paul.allsopp@digitalpig play_mp3]$ idf.py build
Checking Python dependencies...
Python requirements from /home/paul.allsopp/esp/esp-adf/esp-idf/requirements.txt are satisfied.
Running cmake in directory /home/paul.allsopp/esp/projects/play_mp3/build
Executing "cmake -G 'Unix Makefiles' -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized /home/paul.allsopp/esp/projects/play_mp3"...
Warn about uninitialized values.
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- Found Git: /usr/bin/git (found version "1.8.3.1")
-- IDF_TARGET not set, using default target: esp32
-- Building for target esp32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/paul.allsopp/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/paul.allsopp/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/paul.allsopp/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/paul.allsopp/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/paul.allsopp/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building empty aws_iot component due to configuration
-- Component names: soc log heap xtensa-debug-module app_trace freertos vfs newlib esp_ringbuf driver esp_event ethernet mbedtls micro-ecc efuse bootloader_support partition_table app_update spi_flash nvs_flash lwip tcpip_adapter pthread smartconfig_ack wpa_supplicant espcoredump esp32 cxx nghttp esp-tls tcp_transport esp_http_client jsmn audio_sal adf_utils esp_adc_cal wear_levelling sdmmc fatfs console audio_pipeline spiffs display_service esp_dispatcher nimble bt esp_peripherals audio_hal audio_board esp-sr esp-adf-libs audio_strea m bluetooth_service clouds dueros_service wifi_service esp_actions input_key_service playlist asio aws_iot bootloader coap esp_http_server esp_https_ota openssl esp_https_server es ptool_py expat freemodbus idf_test json libsodium mdns mqtt protobuf-c protocomm ulp unity wifi_provisioning main
-- Component paths: /home/paul.allsopp/esp/esp-adf/esp-idf/components/soc;/home/paul.allsopp/esp/esp-adf/esp-idf/components/log;/home/paul.allsopp/esp/esp-adf/esp-idf/components/he ap;/home/paul.allsopp/esp/esp-adf/esp-idf/components/xtensa-debug-module;/home/paul.allsopp/esp/esp-adf/esp-idf/components/app_trace;/home/paul.allsopp/esp/esp-adf/esp-idf/componen ts/freertos;/home/paul.allsopp/esp/esp-adf/esp-idf/components/vfs;/home/paul.allsopp/esp/esp-adf/esp-idf/components/newlib;/home/paul.allsopp/esp/esp-adf/esp-idf/components/esp_rin gbuf;/home/paul.allsopp/esp/esp-adf/esp-idf/components/driver;/home/paul.allsopp/esp/esp-adf/esp-idf/components/esp_event;/home/paul.allsopp/esp/esp-adf/esp-idf/components/ethernet ;/home/paul.allsopp/esp/esp-adf/esp-idf/components/mbedtls;/home/paul.allsopp/esp/esp-adf/esp-idf/components/micro-ecc;/home/paul.allsopp/esp/esp-adf/esp-idf/components/efuse;/home /paul.allsopp/esp/esp-adf/esp-idf/components/bootloader_support;/home/paul.allsopp/esp/esp-adf/esp-idf/components/partition_table;/home/paul.allsopp/esp/esp-adf/esp-idf/components/ app_update;/home/paul.allsopp/esp/esp-adf/esp-idf/components/spi_flash;/home/paul.allsopp/esp/esp-adf/esp-idf/components/nvs_flash;/home/paul.allsopp/esp/esp-adf/esp-idf/components /lwip;/home/paul.allsopp/esp/esp-adf/esp-idf/components/tcpip_adapter;/home/paul.allsopp/esp/esp-adf/esp-idf/components/pthread;/home/paul.allsopp/esp/esp-adf/esp-idf/components/sm artconfig_ack;/home/paul.allsopp/esp/esp-adf/esp-idf/components/wpa_supplicant;/home/paul.allsopp/esp/esp-adf/esp-idf/components/espcoredump;/home/paul.allsopp/esp/esp-adf/esp-idf/ components/esp32;/home/paul.allsopp/esp/esp-adf/esp-idf/components/cxx;/home/paul.allsopp/esp/esp-adf/esp-idf/components/nghttp;/home/paul.allsopp/esp/esp-adf/esp-idf/components/es p-tls;/home/paul.allsopp/esp/esp-adf/esp-idf/components/tcp_transport;/home/paul.allsopp/esp/esp-adf/esp-idf/components/esp_http_client;/home/paul.allsopp/esp/esp-adf/esp-idf/compo nents/jsmn;/home/paul.allsopp/esp/esp-adf/components/audio_sal;/home/paul.allsopp/esp/esp-adf/components/adf_utils;/home/paul.allsopp/esp/esp-adf/esp-idf/components/esp_adc_cal;/ho me/paul.allsopp/esp/esp-adf/esp-idf/components/wear_levelling;/home/paul.allsopp/esp/esp-adf/esp-idf/components/sdmmc;/home/paul.allsopp/esp/esp-adf/esp-idf/components/fatfs;/home/ paul.allsopp/esp/esp-adf/esp-idf/components/console;/home/paul.allsopp/esp/esp-adf/components/audio_pipeline;/home/paul.allsopp/esp/esp-adf/esp-idf/components/spiffs;/home/paul.all sopp/esp/esp-adf/components/display_service;/home/paul.allsopp/esp/esp-adf/components/esp_dispatcher;/home/paul.allsopp/esp/esp-adf/esp-idf/components/nimble;/home/paul.allsopp/esp /esp-adf/esp-idf/components/bt;/home/paul.allsopp/esp/esp-adf/components/esp_peripherals;/home/paul.allsopp/esp/esp-adf/components/audio_hal;/home/paul.allsopp/esp/esp-adf/componen ts/audio_board;/home/paul.allsopp/esp/esp-adf/components/esp-sr;/home/paul.allsopp/esp/esp-adf/components/esp-adf-libs;/home/paul.allsopp/esp/esp-adf/components/audio_stream;/home/ paul.allsopp/esp/esp-adf/components/bluetooth_service;/home/paul.allsopp/esp/esp-adf/components/clouds;/home/paul.allsopp/esp/esp-adf/components/dueros_service;/home/paul.allsopp/e sp/esp-adf/components/wifi_service;/home/paul.allsopp/esp/esp-adf/components/esp_actions;/home/paul.allsopp/esp/esp-adf/components/input_key_service;/home/paul.allsopp/esp/esp-adf/ components/playlist;/home/paul.allsopp/esp/esp-adf/esp-idf/components/asio;/home/paul.allsopp/esp/esp-adf/esp-idf/components/aws_iot;/home/paul.allsopp/esp/esp-adf/esp-idf/componen ts/bootloader;/home/paul.allsopp/esp/esp-adf/esp-idf/components/coap;/home/paul.allsopp/esp/esp-adf/esp-idf/components/esp_http_server;/home/paul.allsopp/esp/esp-adf/esp-idf/compon ents/esp_https_ota;/home/paul.allsopp/esp/esp-adf/esp-idf/components/openssl;/home/paul.allsopp/esp/esp-adf/esp-idf/components/esp_https_server;/home/paul.allsopp/esp/esp-adf/esp-i df/components/esptool_py;/home/paul.allsopp/esp/esp-adf/esp-idf/components/expat;/home/paul.allsopp/esp/esp-adf/esp-idf/components/freemodbus;/home/paul.allsopp/esp/esp-adf/esp-idf /components/idf_test;/home/paul.allsopp/esp/esp-adf/esp-idf/components/json;/home/paul.allsopp/esp/esp-adf/esp-idf/components/libsodium;/home/paul.allsopp/esp/esp-adf/esp-idf/compo nents/mdns;/home/paul.allsopp/esp/esp-adf/esp-idf/components/mqtt;/home/paul.allsopp/esp/esp-adf/esp-idf/components/protobuf-c;/home/paul.allsopp/esp/esp-adf/esp-idf/components/pro tocomm;/home/paul.allsopp/esp/esp-adf/esp-idf/components/ulp;/home/paul.allsopp/esp/esp-adf/esp-idf/components/unity;/home/paul.allsopp/esp/esp-adf/esp-idf/components/wifi_provisio ning;/home/paul.allsopp/esp/projects/play_mp3/main
CMake Warning at /home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/crosstool_version_check.cmake:8 (message):
Xtensa toolchain
/home/paul.allsopp/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
version 8.2.0 is not the supported version 5.2.0. Check Getting Started
documentation or proceed at own risk.
Call Stack (most recent call first):
/home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/idf_functions.cmake:213 (gcc_version_check)
/home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/idf_functions.cmake:373 (idf_verify_environment)
/home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
CMakeLists.txt:8 (project)


CMake Warning at /home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/crosstool_version_check.cmake:25 (message):
Xtensa toolchain
/home/paul.allsopp/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
does not appear to be built with crosstool-ng. Check Getting Started
documentation or proceed at own risk.
Call Stack (most recent call first):
/home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/idf_functions.cmake:214 (crosstool_version_check)
/home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/idf_functions.cmake:373 (idf_verify_environment)
/home/paul.allsopp/esp/esp-adf/esp-idf/tools/cmake/project.cmake:173 (idf_import_components)
CMakeLists.txt:8 (project)


-- IDF_VER: -129-NOTFOUND
-- Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Found PythonInterp: /home/paul.allsopp/.espressif/python_env/idf3.3_py2.7_env/bin/python (found version "2.7.5")
-- Found Perl: /usr/bin/perl (found version "5.16.3")
-- Adding linker script /home/paul.allsopp/esp/projects/play_mp3/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script /home/paul.allsopp/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script /home/paul.allsopp/esp/esp-adf/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script /home/paul.allsopp/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/paul.allsopp/esp/esp-adf/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- Current board name is CONFIG_ESP_LYRATD_MSC_V2_2_BOARD
-- Building empty aws_iot component due to configuration
-- Component libraries:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/paul.allsopp/esp/projects/play_mp3/build
Running make in directory /home/paul.allsopp/esp/projects/play_mp3/build
Executing "make -j 10 all"...
Scanning dependencies of target partition_table
[ 0%] Generating ../../adf_music.mp3.S
Scanning dependencies of target idf_component_heap
Scanning dependencies of target idf_component_log
Scanning dependencies of target idf_component_soc
Scanning dependencies of target idf_component_app_trace
Scanning dependencies of target idf_component_xtensa-debug-module
Scanning dependencies of target idf_component_vfs
[ 0%] Generating ../../partition_table/partition-table.bin
Scanning dependencies of target idf_component_freertos
Scanning dependencies of target idf_component_newlib
[ 0%] Built target partition_table
Scanning dependencies of target idf_component_esp_ringbuf
[ 1%] Building C object esp-idf/xtensa-debug-module/CMakeFiles/idf_component_xtensa-debug-module.dir/eri.c.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/xtensa-debug-module/CMakeFiles/idf_component_xtensa-debug-module.dir/eri.c.obj] Error 1
make[1]: *** [esp-idf/xtensa-debug-module/CMakeFiles/idf_component_xtensa-debug-module.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Scanning dependencies of target idf_component_main
[ 1%] Building C object esp-idf/esp_ringbuf/CMakeFiles/idf_component_esp_ringbuf.dir/ringbuf.c.obj
[ 1%] Building C object esp-idf/log/CMakeFiles/idf_component_log.dir/log.c.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/esp_ringbuf/CMakeFiles/idf_component_esp_ringbuf.dir/ringbuf.c.obj] Error 1
make[1]: *** [esp-idf/esp_ringbuf/CMakeFiles/idf_component_esp_ringbuf.dir/all] Error 2
make[2]: *** [esp-idf/log/CMakeFiles/idf_component_log.dir/log.c.obj] Error 1
make[1]: *** [esp-idf/log/CMakeFiles/idf_component_log.dir/all] Error 2
[ 1%] Building C object esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/gcov/gcov_rtio.c.obj
[ 1%] Building C object esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/app_trace_util.c.obj
[ 1%] Building C object esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/app_trace.c.obj
[ 2%] Building C object esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/host_file_io.c.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/app_trace_util.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** Waiting for unfinished jobs....
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/gcov/gcov_rtio.c.obj] Error 1
make[2]: *** [esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/app_trace.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/host_file_io.c.obj] Error 1
make[1]: *** [esp-idf/app_trace/CMakeFiles/idf_component_app_trace.dir/all] Error 2
[ 2%] Building C object esp-idf/vfs/CMakeFiles/idf_component_vfs.dir/vfs.c.obj
[ 2%] Building C object esp-idf/vfs/CMakeFiles/idf_component_vfs.dir/vfs_uart.c.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/vfs/CMakeFiles/idf_component_vfs.dir/vfs.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/vfs/CMakeFiles/idf_component_vfs.dir/vfs_uart.c.obj] Error 1
make[1]: *** [esp-idf/vfs/CMakeFiles/idf_component_vfs.dir/all] Error 2
[ 2%] Building C object esp-idf/heap/CMakeFiles/idf_component_heap.dir/heap_trace.c.obj
[ 2%] Building C object esp-idf/heap/CMakeFiles/idf_component_heap.dir/heap_caps_init.c.obj
[ 2%] Building C object esp-idf/heap/CMakeFiles/idf_component_heap.dir/heap_caps.c.obj
[ 2%] Building C object esp-idf/heap/CMakeFiles/idf_component_heap.dir/multi_heap.c.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/heap/CMakeFiles/idf_component_heap.dir/heap_trace.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/heap/CMakeFiles/idf_component_heap.dir/multi_heap.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/heap/CMakeFiles/idf_component_heap.dir/heap_caps_init.c.obj] Error 1
make[2]: *** [esp-idf/heap/CMakeFiles/idf_component_heap.dir/heap_caps.c.obj] Error 1
make[1]: *** [esp-idf/heap/CMakeFiles/idf_component_heap.dir/all] Error 2
[ 2%] Building C object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/FreeRTOS-openocd.c.obj
[ 2%] Building C object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/croutine.c.obj
[ 2%] Building C object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/list.c.obj
[ 2%] Building C object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/event_groups.c.obj
[ 2%] Building C object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/port.c.obj
[ 2%] Building ASM object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/portasm.S.obj
[ 2%] Building C object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/queue.c.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/event_groups.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/portasm.S.obj] Error 1
make[2]: *** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/port.c.obj] Error 1
make[2]: *** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/croutine.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
*** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/FreeRTOS-openocd.c.obj] Error 1
make[2]: *** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/list.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/queue.c.obj] Error 1
make[1]: *** [esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/all] Error 2
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/cpu_util.c.obj
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_periph.c.obj
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/gpio_periph.c.obj
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_clk_init.c.obj
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_init.c.obj
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_pm.c.obj
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_clk.c.obj
[ 2%] Building C object esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_sleep.c.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_periph.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_clk_init.c.obj] Error 1
make[2]: xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
*** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/cpu_util.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/gpio_periph.c.obj] Error 1
make[2]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_pm.c.obj] Error 1
make[2]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_init.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_clk.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/esp32/rtc_sleep.c.obj] Error 1
make[1]: *** [esp-idf/soc/CMakeFiles/idf_component_soc.dir/all] Error 2
[ 2%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/locks.c.obj
[ 2%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/random.c.obj
[ 2%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/pthread.c.obj
[ 2%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/reent_init.c.obj
[ 2%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/select.c.obj
[ 2%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/poll.c.obj
[ 3%] Building C object esp-idf/main/CMakeFiles/idf_component_main.dir/play_mp3_example.c.obj
[ 3%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/syscall_table.c.obj
[ 3%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/syscalls.c.obj
[ 3%] Building ASM object esp-idf/main/CMakeFiles/idf_component_main.dir/__/__/adf_music.mp3.S.obj
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
*** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/pthread.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/select.c.obj] Error 1
make[2]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/reent_init.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/random.c.obj] Error 1
make[2]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/locks.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/poll.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/syscall_table.c.obj] Error 1
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/main/CMakeFiles/idf_component_main.dir/__/__/adf_music.mp3.S.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/main/CMakeFiles/idf_component_main.dir/play_mp3_example.c.obj] Error 1
make[1]: *** [esp-idf/main/CMakeFiles/idf_component_main.dir/all] Error 2
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mlongcalls -Wno-frame-address'; did you mean '--warn-no-frame-address'?
make[2]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/syscalls.c.obj] Error 1
make[1]: *** [esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/all] Error 2
make: *** [all] Error 2
make failed with exit code 2
I've had this board now for months and haven't been able to do anything with it, which is very frustrating.
I originally tried building on my Windows 10 machine as that's where I do most of my development, but that was all kinds of pain and nonsense, hence the CentOS7 machine.

ANY help here would be very greatly appreciated. I'd like to integrate this into my home automation project, but at this point it's just another ESP32.

Thanks in advance (hopefully)!
Paul
Last edited by Digital_Pig on Sun Jan 19, 2020 7:35 pm, edited 1 time in total.

Digital_Pig
Posts: 12
Joined: Thu Dec 06, 2018 4:03 am

Re: Need help with environment setup

Postby Digital_Pig » Sat Jan 18, 2020 6:59 pm

Wow! It's like magic...

So I switched back to gcc 5.2.0 and was then told python requirements were not met and to run the install.sh script (which I have done many time already). So did that, re-sourced the export script, and now I get no errors until I get to 88% when the error points to libsodium...This is progress!

Have the guys at espressif never heard of Docker? Imagine a Docker build with all the tools included, then it wouldn't matter whether you run it on Windows/Linux/Mac...I know cause I use Docker everyday at work. OK, enough soapbox!

Onwards...hopefully.

Please feel free to let me know any gotchas, or known issues as I'm new to esp32 dev other than basic stuff on an esp8266 via Arduino.

Digital_Pig
Posts: 12
Joined: Thu Dec 06, 2018 4:03 am

Re: Need help with environment setup

Postby Digital_Pig » Sat Jan 18, 2020 7:15 pm

I noticed after ensuring I had the static libsodium library, and running idf.py build, I got a little further. Then I ran idf.py build again, without making any changes, a number of times and managed to get some additional modules built, up to 94% complete but then I hit some hard errors and couldn't get any further.

So my current issue is this:
[ 94%] Building C object esp-idf/esp_peripherals/CMakeFiles/__idf_esp_peripherals.dir/lib/touch/touch.c.obj
In file included from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c:30:
/home/paul.allsopp/esp/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_console.c:35:
/home/paul.allsopp/esp/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c: In function 'esp_periph_set_init':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c:145:5: error: implicit declaration of function 'gpio_install_isr_service' [-Werror=implicit-function-declaration]
gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/include/periph_console.h:28,
from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_console.c:37:
/home/paul.allsopp/esp/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:34:
/home/paul.allsopp/esp/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c:145:30: error: 'ESP_INTR_FLAG_LEVEL1' undeclared (first use in this function); did you mean 'ESP_LOG_LEVEL'?
gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1);
^~~~~~~~~~~~~~~~~~~~
ESP_LOG_LEVEL
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c:145:30: note: each undeclared identifier is reported only once for each function it appears in
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_console.c: In function 'console_get_line':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_console.c:98:33: error: 'CONFIG_CONSOLE_UART_NUM' undeclared (first use in this function); did you mean 'CONFIG_ESP_CONSOLE_UART_NUM'?
int nread = uart_read_bytes(CONFIG_CONSOLE_UART_NUM, (uint8_t *)&c, 1, time_to_wait);
^~~~~~~~~~~~~~~~~~~~~~~
CONFIG_ESP_CONSOLE_UART_NUM
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_console.c:98:33: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:35:
/home/paul.allsopp/esp/esp-idf/components/esp_event/include/esp_event_loop.h:2:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp]
#warning "esp_event_loop.h is deprecated, please include esp_event.h instead"
^~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c: In function 'esp_periph_set_destroy':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c:196:5: error: implicit declaration of function 'gpio_uninstall_isr_service' [-Werror=implicit-function-declaration]
gpio_uninstall_isr_service();
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_console.c: In function '_console_init':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_console.c:232:25: error: 'CONFIG_CONSOLE_UART_NUM' undeclared (first use in this function); did you mean 'CONFIG_ESP_CONSOLE_UART_NUM'?
uart_driver_install(CONFIG_CONSOLE_UART_NUM, console->buffer_size * 2, 0, 0, NULL, 0);
^~~~~~~~~~~~~~~~~~~~~~~
CONFIG_ESP_CONSOLE_UART_NUM
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c: In function 'touch_pad_isr_handler':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:83:5: error: implicit declaration of function 'touch_pad_clear_status'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_clear_status();
^~~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
make[2]: *** [esp-idf/esp_peripherals/CMakeFiles/__idf_esp_peripherals.dir/periph_console.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [esp-idf/esp_peripherals/CMakeFiles/__idf_esp_peripherals.dir/esp_peripherals.c.obj] Error 1
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c: In function 'esp_touch_init':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:110:22: error: implicit declaration of function 'touch_pad_init' [-Werror=implicit-function-declaration]
bool _success = (touch_pad_init() == ESP_OK);
^~~~~~~~~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:132:13: error: implicit declaration of function 'touch_pad_config'; did you mean 'gpio_config'? [-Werror=implicit-function-declaration]
touch_pad_config(touch_num, 0);
^~~~~~~~~~~~~~~~
gpio_config
In file included from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/include/periph_wifi.h:28,
from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:40:
/home/paul.allsopp/esp/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:134:17: error: implicit declaration of function 'touch_pad_set_thresh'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_set_thresh(touch_num, TOUCHPAD_TRIGGER_THRESHOLD);
^~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:102:46: error: unknown type name 'smartconfig_status_t'; did you mean 'smartconfig_type_t'?
static void _wifi_smartconfig_event_callback(smartconfig_status_t status, void *pdata)
^~~~~~~~~~~~~~~~~~~~
smartconfig_type_t
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:146:9: error: implicit declaration of function 'touch_pad_isr_register'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_isr_register(touch_pad_isr_handler, touch);
^~~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:147:9: error: implicit declaration of function 'touch_pad_intr_enable'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_intr_enable();
^~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:149:5: error: implicit declaration of function 'touch_pad_filter_start'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_filter_start(TOUCHPAD_FILTER_PERIOD);
^~~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c: In function 'periph_wifi_config_start':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:190:38: error: '_wifi_smartconfig_event_callback' undeclared (first use in this function); did you mean 'smartconfig_event_t'?
err |= esp_smartconfig_start(_wifi_smartconfig_event_callback, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
smartconfig_event_t
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:190:38: note: each undeclared identifier is reported only once for each function it appears in
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:190:16: error: too many arguments to function 'esp_smartconfig_start'
err |= esp_smartconfig_start(_wifi_smartconfig_event_callback, 0);
^~~~~~~~~~~~~~~~~~~~~
In file included from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:37:
/home/paul.allsopp/esp/esp-idf/components/esp_wifi/include/esp_smartconfig.h:86:11: note: declared here
esp_err_t esp_smartconfig_start(const smartconfig_start_config_t *config);
^~~~~~~~~~~~~~~~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c: In function 'touch_get_state':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:160:21: error: implicit declaration of function 'touch_pad_read_filtered'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
esp_err_t err = touch_pad_read_filtered(touch_item->touch_num, &touch_item->last_read_value);
^~~~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c: In function '_wifi_init':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:293:9: error: implicit declaration of function 'esp_event_loop_get_queue'; did you mean 'esp_event_loop_delete'? [-Werror=implicit-function-declaration]
if (esp_event_loop_get_queue() == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~
esp_event_loop_delete
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:293:36: warning: comparison between pointer and integer
if (esp_event_loop_get_queue() == NULL) {
^~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:294:9: warning: 'esp_event_loop_init' is deprecated [-Wdeprecated-declarations]
ESP_ERROR_CHECK(esp_event_loop_init(_wifi_event_callback, self));
^~~~~~~~~~~~~~~
In file included from /home/paul.allsopp/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/paul.allsopp/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:34:
/home/paul.allsopp/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:227:11: note: declared here
esp_err_t esp_event_loop_init(system_event_cb_t cb, void *ctx) __attribute__ ((deprecated));
^~~~~~~~~~~~~~~~~~~
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:296:9: warning: 'esp_event_loop_set_cb' is deprecated [-Wdeprecated-declarations]
esp_event_loop_set_cb(_wifi_event_callback, self);
^~~~~~~~~~~~~~~~~~~~~
In file included from /home/paul.allsopp/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/paul.allsopp/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/paul.allsopp/esp/esp-adf/components/esp_peripherals/periph_wifi.c:34:
/home/paul.allsopp/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:243:19: note: declared here
system_event_cb_t esp_event_loop_set_cb(system_event_cb_t cb, void *ctx) __attribute__ ((deprecated));
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [esp-idf/esp_peripherals/CMakeFiles/__idf_esp_peripherals.dir/periph_wifi.c.obj] Error 1
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c: In function 'esp_touch_destroy':
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:267:5: error: implicit declaration of function 'touch_pad_filter_delete'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_filter_delete();
^~~~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:268:5: error: implicit declaration of function 'touch_pad_intr_disable'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_intr_disable();
^~~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:269:5: error: implicit declaration of function 'touch_pad_isr_deregister'; did you mean 'touch_pad_isr_handler'? [-Werror=implicit-function-declaration]
touch_pad_isr_deregister(touch_pad_isr_handler, touch);
^~~~~~~~~~~~~~~~~~~~~~~~
touch_pad_isr_handler
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:274:5: error: implicit declaration of function 'touch_pad_deinit' [-Werror=implicit-function-declaratio ]
touch_pad_deinit();
^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [esp-idf/esp_peripherals/CMakeFiles/__idf_esp_peripherals.dir/lib/touch/touch.c.obj] Error 1
make[1]: *** [esp-idf/esp_peripherals/CMakeFiles/__idf_esp_peripherals.dir/all] Error 2
make: *** [all] Error 2
make failed with exit code 2
Any thoughts here?

TY

Digital_Pig
Posts: 12
Joined: Thu Dec 06, 2018 4:03 am

Re: Need help with environment setup

Postby Digital_Pig » Sun Jan 19, 2020 12:55 am

Well this is turning into a soundboard, but it's ok...progress is apparent.

I wiped all traces of espressif software from my Windows machine and started over. This time a step at a time: I installed ESP-IDF and made sure I could build the hello_world application and deploy it to my board, which went without issue. So, progress!

This is cathartic, so even if no one is listening it makes me feel better :0)

jason.mao
Posts: 96
Joined: Mon Nov 19, 2018 2:05 am

Re: Need help with environment setup

Postby jason.mao » Sun Jan 19, 2020 1:44 am

Hi Paul,

Sorry for missed your message.
/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/esp_peripherals.c:145:30: error: 'ESP_INTR_FLAG_LEVEL1' undeclared (first use in this function); did you mean 'ESP_LOG_LEVEL'?
gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1);

/home/paul.allsopp/esp/esp-adf/components/esp_peripherals/lib/touch/touch.c:110:22: error: implicit declaration of function 'touch_pad_init' [-Werror=implicit-function-declaration]
bool _success = (touch_pad_init() == ESP_OK);

I think you used IDF master or v4.0 version. Please note that ADF only support IDF ver3.3 release branch.
截屏2020-01-19上午9.39.00.png
截屏2020-01-19上午9.39.00.png (211.16 KiB) Viewed 11954 times
Thanks.

Digital_Pig
Posts: 12
Joined: Thu Dec 06, 2018 4:03 am

Re: Need help with environment setup

Postby Digital_Pig » Sun Jan 19, 2020 2:06 am

Thanks Jason.

I started over completely and then went step-by-step and followed the instructions exactly. This time all went well, and I was able to test out the audio framework as intended.

Somewhere along the way previously, I had install esp-idf, esp-adf, and esp-va-sdk in one hit instead of installing and testing each one, and I must have messed something up.

All is well now, so onto the va-sdk!

Thanks for the help, anyway :0)

Who is online

Users browsing this forum: No registered users and 26 guests