wheel/build/log/idf_py_stdout_output_8188
2024-01-24 12:00:45 +08:00

64 lines
9.8 KiB
Plaintext

[1/10] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/8] Building C object esp-idf/adc_measure/CMakeFiles/__idf_adc_measure.dir/adc_measure.c.obj
FAILED: esp-idf/adc_measure/CMakeFiles/__idf_adc_measure.dir/adc_measure.c.obj
ccache E:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include/arch -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_adc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_adc/interface -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_adc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_adc/deprecated/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_timer/include -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.4-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/adc_measure/CMakeFiles/__idf_adc_measure.dir/adc_measure.c.obj -MF esp-idf\adc_measure\CMakeFiles\__idf_adc_measure.dir\adc_measure.c.obj.d -o esp-idf/adc_measure/CMakeFiles/__idf_adc_measure.dir/adc_measure.c.obj -c E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:49:63: error: 'gWordVar' undeclared here (not in a function)
49 | adc_measure_data_t *adc_measure_data = (adc_measure_data_t *)&gWordVar[20];
| ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c: In function 'adc_measure_loop_cb':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:57:5: error: too many arguments to function 'adc_measure_one'
57 | adc_measure_one(0, &v_raw, &v);
| ^~~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:17:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.h:5:5: note: declared here
5 | int adc_measure_one(int id);
| ^~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:58:5: error: too many arguments to function 'adc_measure_one'
58 | adc_measure_one(1, &i_l_raw, &i_l);
| ^~~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:17:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.h:5:5: note: declared here
5 | int adc_measure_one(int id);
| ^~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:59:5: error: too many arguments to function 'adc_measure_one'
59 | adc_measure_one(2, &i_r_raw, &i_r);
| ^~~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:17:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.h:5:5: note: declared here
5 | int adc_measure_one(int id);
| ^~~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_intr_alloc.h:11,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:20,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/spinlock.h:11,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:74,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/portable.h:58,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:70,
from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:9:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c: In function 'adc_measure_init':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:21:25: warning: passing argument 1 of 'adc_oneshot_config_channel' makes pointer from integer without a cast [-Wint-conversion]
21 | #define ADC_V_UNIT ADC_UNIT_2
| ^~~~~~~~~~
| |
| int
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include/esp_err.h:117:30: note: in definition of macro 'ESP_ERROR_CHECK'
117 | esp_err_t err_rc_ = (x); \
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:93:48: note: in expansion of macro 'ADC_V_UNIT'
93 | ESP_ERROR_CHECK(adc_oneshot_config_channel(ADC_V_UNIT, ADC_V_CHAN, &config));
| ^~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:14:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_adc/include/esp_adc/adc_oneshot.h:68:64: note: expected 'adc_oneshot_unit_handle_t' {aka 'struct adc_oneshot_unit_ctx_t *'} but argument is of type 'int'
68 | esp_err_t adc_oneshot_config_channel(adc_oneshot_unit_handle_t handle, adc_channel_t channel, const adc_oneshot_chan_cfg_t *config);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c: At top level:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:135:5: error: conflicting types for 'adc_measure_one'; have 'int(int, int *, int *)'
135 | int adc_measure_one(int id, int *raw, int *v)
| ^~~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.c:17:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure/adc_measure.h:5:5: note: previous declaration of 'adc_measure_one' with type 'int(int)'
5 | int adc_measure_one(int id);
| ^~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.