Skip to content
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

CMake warning error when building for linux (IDFGH-14749) #15488

Open
3 tasks done
i400s opened this issue Feb 27, 2025 · 1 comment
Open
3 tasks done

CMake warning error when building for linux (IDFGH-14749) #15488

i400s opened this issue Feb 27, 2025 · 1 comment
Assignees
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@i400s
Copy link

i400s commented Feb 27, 2025

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.5-dev-2119-g0461e2ff88

Operating System used.

Linux

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

What is the expected behavior?

Build to work successfully with no errors or warnings.

What is the actual behavior?

After selecting device type "linux" the warning below is issued in the OUTPUT window.

CMake Warning (dev) at /home/wilsonj/Documents/foldered/espressif/esp-idf/tools/cmake/build.cmake:167 (enable_language): project() should be called prior to this enable_language() call. Call Stack (most recent call first): /home/wilsonj/Documents/foldered/espressif/esp-idf/tools/cmake/build.cmake:244 (__build_set_lang_version) /home/wilsonj/Documents/foldered/espressif/esp-idf/tools/cmake/idf.cmake:55 (__build_init) /home/wilsonj/Documents/foldered/espressif/esp-idf/tools/cmake/project.cmake:29 (include) CMakeLists.txt:11 (include) This warning is for project developers. Use -Wno-dev to suppress it.
The same warning is also issued in the TERMINAL window for the following:

Clearing the build folder and then building issues the warning.

Running ESP-IDF: idf.py reconfigure task issues the warning (but isn't highlighted)

Changing a CMakeLists.txt file causes the error to be reported for the first run, but not subsequent ones.

idf.py clean and idf.py build and idf.py reconfigure from the command line also cause the warning to be issued.

Steps to reproduce.

  1. Behaviour as above.
    ...

Build or installation Logs.


More Information.

No response

@i400s i400s added the Type: Bug bugs in IDF label Feb 27, 2025
@github-actions github-actions bot changed the title CMake warning error when building for linux CMake warning error when building for linux (IDFGH-14749) Feb 27, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Feb 27, 2025
@fhrbata
Copy link
Collaborator

fhrbata commented Feb 28, 2025

Hello @i400s ,

thank you for pointing this out. It seems that this warning was introduced in recent cmake versions(>3.29) with https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9396. We will look into this. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants