During the configuration of Zephyr, one often encounters inexplicable errors.
the toolchain is unable to build a dummy C file.
Feeling helpless, right? No one to help you?
Solution:
1 Check the CMake version, use the recommended version, and avoid using a version that is too high; if it is too high, uninstall and reinstall.
2 Delete the zephyrproject/zephyr/.cache directory.
If there are still issues, check build/CMakeFiles/CMakeConfigureLog.yaml; any problems will be displayed here.
Remember to install the requirements from zephyr/scripts/requirements.txt, otherwise, you will encounter a lot of ‘no module’ issues, which can be quite overwhelming.
You’re welcome.