simbit18 commented on PR #17829:
URL: https://github.com/apache/nuttx/pull/17829#issuecomment-3737749445
Hi @zhaoxingyu12, please note this error.
```
====================================================================================
Configuration/Tool: esp32c3-legacy-devkit/nvcfgdata
2026-01-12 03:35:35
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Building NuttX...
mtd/mtd_config_fs.c: In function 'mtdconfig_ioctl':
Error: mtd/mtd_config_fs.c:2203:9: error: 'ret' undeclared (first use in
this function)
2203 | ret = nvs_write(fs, pdata);
| ^~~
mtd/mtd_config_fs.c:2203:9: note: each undeclared identifier is reported
only once for each function it appears in
make[1]: *** [Makefile:109: mtd_config_fs.o] Error 1
make[1]: Target 'libdrivers.a' not remade because of errors.
make: *** [tools/LibTargets.mk:107: drivers/libdrivers.a] Error 2
Error: mtd_config_fs_test_main.c:75:5: error: "CONFIG_MTD_WRITE_ALIGN_SIZE"
is not defined, evaluates to 0 [-Werror=undef]
75 | #if CONFIG_MTD_WRITE_ALIGN_SIZE <= 4
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: mtd_config_fs_test_main.c:53:41: error: 'CONFIG_MTD_WRITE_ALIGN_SIZE'
undeclared here (not in a function)
53 | #define NVS_ALIGN_SIZE CONFIG_MTD_WRITE_ALIGN_SIZE
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mtd_config_fs_test_main.c:78:20: note: in expansion of macro 'NVS_ALIGN_SIZE'
78 | uint8_t expired[NVS_ALIGN_SIZE];
| ^~~~~~~~~~~~~~
mtd_config_fs_test_main.c: In function 'test_nvs_corrupted_sector_close':
Error: mtd_config_fs_test_main.c:1342:11: error: unused variable 'wr_buf'
[-Werror=unused-variable]
1342 | uint8_t wr_buf[NVS_ALIGN_UP(512) - sizeof(key1)];
| ^~~~~~
Error: mtd_config_fs_test_main.c:1341:11: error: unused variable 'rd_buf'
[-Werror=unused-variable]
1341 | uint8_t rd_buf[NVS_ALIGN_UP(512) - sizeof(key1)];
| ^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [/github/workspace/sources/apps/Application.mk:330:
mtd_config_fs_test_main.c.github.workspace.sources.apps.testing.fs.mtd_config_fs.o]
Error 1
make[2]: Target 'all' not remade because of errors.
make[1]: *** [Makefile:54:
/github/workspace/sources/apps/testing/fs/mtd_config_fs_all] Error 2
make[1]: Target 'all' not remade because of errors.
make: *** [tools/LibTargets.mk:248:
/github/workspace/sources/apps/libapps.a] Error 2
make: Target 'all' not remade because of errors.
/github/workspace/sources/nuttx/tools/testbuild.sh: line 385:
/github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or
directory
[1/1] Normalize esp32c3-legacy-devkit/nvcfgdata
====================================================================================
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]