Skip to content

stm32H573 fails to build tests/subsys/fs/lib_link #89081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FRASTM opened this issue Apr 25, 2025 · 1 comment · Fixed by #89086
Closed

stm32H573 fails to build tests/subsys/fs/lib_link #89081

FRASTM opened this issue Apr 25, 2025 · 1 comment · Fixed by #89086
Assignees
Labels
area: File System bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug

Comments

@FRASTM
Copy link
Collaborator

FRASTM commented Apr 25, 2025

Describe the bug
Build failure west build -p -b stm32h573i_dk tests/subsys/fs/lib_link

target = stm32h573i_dk
zephyr version

./zephyr/modules/fatfs/zephyr_fatfs_config.h:8:2: error: #error "Configuration version mismatch"
    8 | #error "Configuration version mismatch"
      |  ^~~~~

CI failure especially on PR #88646

Logs and console output

./modules/fatfs/zephyr_fatfs_config.h:8:2: error: #error "Configuration version mismatch"
    8 | #error "Configuration version mismatch"
      |  ^~~~~
In file included from ./include/zephyr/sys/util_macro.h:34,
                 from ./include/zephyr/irq_multilevel.h:16,
                 from ./include/zephyr/devicetree.h:20,
                 from ./modules/fatfs/zephyr_fatfs_config.h:11:
./build/zephyr/include/generated/zephyr/devicetree_generated.h:31434:47: error: 'DT_N_S_soc_S_sdmmc_46008000_P_disk_name' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_sdmmc_46008000_P_clk_div'?
31434 | #define DT_FOREACH_OKAY_st_stm32_sdmmc(fn) fn(DT_N_S_soc_S_sdmmc_46008000)
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/zephyr/sys/util_internal.h:72:26: note: in definition of macro '__DEBRACKET'
   72 | #define __DEBRACKET(...) __VA_ARGS__
      |                          ^~~~~~~~~~~
./include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
   64 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |         ^~~~~~~~~~~~~~~~~~~~
./include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_COD'
   59 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~
./include/zephyr/sys/util_macro.h:204:9: note: in expansion of macro 'Z_COND_CODE_'
  204 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~~~
./include/zephyr/devicetree.h:3467:9: note: in expansion of macro 'COND_CODE_1'
 3467 |         COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(compat),                  \
      |         ^~~~~~~~~~~
./include/zephyr/devicetree.h:762:32: note: in expansion of macro 'DT_CAT3'
  762 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
      |                                ^~~~~~~
./modules/fatfs/zephyr_fatfs_config.h:109:29: note: in expansion of macro 'DT_PROP'
  109 | #define _FF_DISK_NAME(node) DT_PROP(node, disk_name),
      |                             ^~~~~~~
./build/zephyr/include/generated/zephyr/devicetree_generated.h:31434:44: note: in expansion of macro '_FF_DISK_NAME'
31434 | #define DT_FOREACH_OKAY_st_stm32_sdmmc(fn) fn(DT_N_S_soc_S_sdmmc_46008000)
      |                                            ^~
./include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_FOREACH_OKAY_st_stm32_sdmmc'
  105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
      |                                    ^
./include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
  104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
./include/zephyr/devicetree.h:3468:22: note: in expansion of macro 'UTIL_CAT'
 3468 |                     (UTIL_CAT(DT_FOREACH_OKAY_, compat)(fn)),           \
      |                      ^~~~~~~~
./modules/fatfs/zephyr_fatfs_config.h:116:9: note: in expansion of macro 'DT_FOREACH_STATUS_OKAY'
  116 |         DT_FOREACH_STATUS_OKAY(st_stm32_sdmmc, _FF_DISK_NAME)
      |         ^~~~~~~~~~~~~~~~~~~~~~
./modules/fatfs/zfs_diskio.c:22:40: note: in expansion of macro 'FF_VOLUME_STRS'
   22 | static const char *const pdrv_str[] = {FF_VOLUME_STRS};
      |                                        ^~~~~~~~~~~~~~
[99/162] Building C object modules/littlefs/CMakeFiles/mod... ~/modules/fs/littlefs/lfs.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build '~\zephyrproject\zephyr\build'
@FRASTM FRASTM added the bug The issue is a bug, or the PR is fixing a bug label Apr 25, 2025
@FRASTM FRASTM changed the title stm32H573 fails to builkd tests/subsys/fs/lib_link stm32H573 fails to build tests/subsys/fs/lib_link Apr 25, 2025
@FRASTM
Copy link
Collaborator Author

FRASTM commented Apr 25, 2025

Could be a regression due to #88691 missing stm32 boards with &sdmmc enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: File System bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants