[已解决] esp-va-sdk编译报错问题
Posted: Sat Jul 23, 2022 9:24 am
编译amazon_alexa,主板选择audio_board_lyratd_dspg,最后Link时候报错。错误信息如下:
[1407/1409] Linking CXX executable avs.elf
FAILED: avs.elf
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\avs.elf.rsp -o avs.elf && cd ."
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: avs.elf section `.iram0.text' will not fit in region `iram0_0_seg'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: IRAM0 segment data does not fit.
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `iram0_0_seg' overflowed by 2732 bytes
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.literal.trim_spaces+0x0): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x20): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x38): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x51): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x6a): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/voice_assistant/lib/libavs.a(dialog.c.obj):(.literal.dialog_sm_thread+0x30): undefined reference to `xTaskNotify'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/voice_assistant/lib/libavs.a(dialog.c.obj):(.text.dialog_sm_thread+0xae): undefined reference to `xTaskNotify'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
[1407/1409] Linking CXX executable avs.elf
FAILED: avs.elf
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\avs.elf.rsp -o avs.elf && cd ."
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: avs.elf section `.iram0.text' will not fit in region `iram0_0_seg'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: IRAM0 segment data does not fit.
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `iram0_0_seg' overflowed by 2732 bytes
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.literal.trim_spaces+0x0): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x20): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x38): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x51): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/esp-ssdp/lib/libesp-ssdp.a(lssdp.c.obj):(.text.trim_spaces+0x6a): undefined reference to `__locale_ctype_ptr'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/voice_assistant/lib/libavs.a(dialog.c.obj):(.literal.dialog_sm_thread+0x30): undefined reference to `xTaskNotify'
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:/esp-va-sdk/components/voice_assistant/lib/libavs.a(dialog.c.obj):(.text.dialog_sm_thread+0xae): undefined reference to `xTaskNotify'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1