Page 1 of 1

espressif / esp-aliyun 在make -j8时出错

Posted: Wed Dec 22, 2021 3:00 am
by lujiacheng10
按照Github中 esp-aliyun的步骤一步步走
也把版本改成v4.2后
在尝试smart_light时,在make -j8时出现下面的错误:
home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:68:24: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_init)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:69:34: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_init_recursive)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:70:25: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_close)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:71:35: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_close_recursive)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:72:27: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_acquire)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:73:37: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_acquire_recursive)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:74:30: error: unknown type name '_lock_t'; did you mean 'clock_t'?
int (*_lock_try_acquire)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:75:40: error: unknown type name '_lock_t'; did you mean 'clock_t'?
int (*_lock_try_acquire_recursive)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:76:27: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_release)(_lock_t *lock);
^~~~~~~
clock_t
/home/jack/esp/esp-idf/components/esp_rom/include/esp32/rom/libc_stubs.h:77:37: error: unknown type name '_lock_t'; did you mean 'clock_t'?
void (*_lock_release_recursive)(_lock_t *lock);
^~~~~~~
clock_t
make[1]: *** [/home/jack/esp/esp-idf/make/component_wrapper.mk:292: gcov/gcov_rtio.o] Error 1
make: *** [/home/jack/esp/esp-idf/make/project.mk:635: component-app_trace-build] Error 2
CC build/esp_event/event_send.o
/home/jack/esp/esp-idf/components/driver/adc_common.c:78:8: error: unknown type name '_lock_t'
static _lock_t adc2_wifi_lock;
^~~~~~~
/home/jack/esp/esp-idf/components/driver/adc_common.c:100:8: error: unknown type name '_lock_t'
static _lock_t adc1_dma_lock;
^~~~~~~
/home/jack/esp/esp-idf/components/driver/adc_common.c: In function 'adc1_dma_mode_acquire':
/home/jack/esp/esp-idf/components/driver/adc_common.c:101:33: error: implicit declaration of function '_lock_acquire'; did you mean 'spinlock_acquire'? [-Werror=implicit-function-declaration]
#define ADC1_DMA_LOCK_ACQUIRE() _lock_acquire( &adc1_dma_lock )
^~~~~~~~~~~~~
/home/jack/esp/esp-idf/components/driver/adc_common.c:302:5: note: in expansion of macro 'ADC1_DMA_LOCK_ACQUIRE'
ADC1_DMA_LOCK_ACQUIRE();
^~~~~~~~~~~~~~~~~~~~~
/home/jack/esp/esp-idf/components/driver/adc_common.c: In function 'adc1_lock_release':
/home/jack/esp/esp-idf/components/driver/adc_common.c:102:33: error: implicit declaration of function '_lock_release'; did you mean 'adc1_lock_release'? [-Werror=implicit-function-declaration]
#define ADC1_DMA_LOCK_RELEASE() _lock_release( &adc1_dma_lock )
^~~~~~~~~~~~~
/home/jack/esp/esp-idf/components/driver/adc_common.c:332:5: note: in expansion of macro 'ADC1_DMA_LOCK_RELEASE'
ADC1_DMA_LOCK_RELEASE();
^~~~~~~~~~~~~~~~~~~~~
/home/jack/esp/esp-idf/components/driver/adc_common.c: In function 'adc2_config_channel_atten':
/home/jack/esp/esp-idf/components/driver/adc_common.c:82:41: error: implicit declaration of function '_lock_try_acquire'; did you mean 'adc2_wifi_acquire'? [-Werror=implicit-function-declaration]
#define ADC2_WIFI_LOCK_TRY_ACQUIRE() _lock_try_acquire( &adc2_wifi_lock )
^~~~~~~~~~~~~~~~~
/home/jack/esp/esp-idf/components/driver/adc_common.c:422:10: note: in expansion of macro 'ADC2_WIFI_LOCK_TRY_ACQUIRE'
if ( ADC2_WIFI_LOCK_TRY_ACQUIRE() == -1 ) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jack/esp/esp-idf/components/esp32/sleep_modes.c:88:8: error: unknown type name '_lock_t'
static _lock_t lock_rtc_memory_crc;
^~~~~~~
/home/jack/esp/esp-idf/components/esp32/sleep_modes.c: In function 'esp_get_deep_sleep_wake_stub':
AR build/esp_adc_cal/libesp_adc_cal.a
/home/jack/esp/esp-idf/components/esp32/sleep_modes.c:102:5: error: implicit declaration of function '_lock_acquire'; did you mean 'spinlock_acquire'? [-Werror=implicit-function-declaration]
_lock_acquire(&lock_rtc_memory_crc);
^~~~~~~~~~~~~
spinlock_acquire
/home/jack/esp/esp-idf/components/esp32/sleep_modes.c:107:5: error: implicit declaration of function '_lock_release'; did you mean 'spinlock_release'? [-Werror=implicit-function-declaration]
_lock_release(&lock_rtc_memory_crc);
^~~~~~~~~~~~~
spinlock_release

Re: espressif / esp-aliyun 在make -j8时出错

Posted: Mon Dec 27, 2021 12:21 pm
by ESP_YJM
有执行 make chip=esp32 defconfig 吗?
1. git checkout v4.2 版本,git submodule init , git submodule update 更新子模块。
2. export IDF_PATH="$PWD",执行 ./install.sh,. ./export.sh 设置环境路径。
3. cd examples/solutions/smart_light 后执行 make chip=esp32 defconfig,之后执行 make -j8。