Skip to content

Example projects that can be successfully compiled in VSCODE cannot be compiled in CURSOR. (IDFGH-16438) (VSC-1808) #1720

@bxpx

Description

@bxpx

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.

esp-idf-v5.5

Operating System used.

Windows

How did you build your project?

Other (please specify in More Information)

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

CMD

What is the expected behavior?

Compilation successful, generated bin file

What is the actual behavior?

Compilation failed

Steps to reproduce.

  1. ESP-IDF plugin version V1.10.2, ESP-IDF is V5.5.0, successfully compiled in VSCODE
  2. Clean build file
  3. The same file and version retry in CURSOR.

Build or installation Logs.

-- Found Git: D:/Git/cmd/git.exe (found version "2.33.0.windows.2")
-- Minimal build - ON
-- The C compiler identification is unknown
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe - broken
CMake Error at C:/Espressif/tools/cmake/3.30.2/share/cmake-3.30/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "C:/Espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'D:/private_storage/hh/hello_world/build/CMakeFiles/CMakeScratch/TryCompile-fgt0jl'

    Run Build Command(s): C:/Espressif/tools/ninja/1.12.1/ninja.exe -v cmTC_8c8a7
    [1/2] C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\bin\xtensa-esp32s3-elf-gcc.exe   -mlongcalls  -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -o CMakeFiles\cmTC_8c8a7.dir\testCCompiler.c.obj -c D:\private_storage\hh\hello_world\build\CMakeFiles\CMakeScratch\TryCompile-fgt0jl\testCCompiler.c
    FAILED: CMakeFiles/cmTC_8c8a7.dir/testCCompiler.c.obj
    C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\bin\xtensa-esp32s3-elf-gcc.exe   -mlongcalls  -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -o CMakeFiles\cmTC_8c8a7.dir\testCCompiler.c.obj -c D:\private_storage\hh\hello_world\build\CMakeFiles\CMakeScratch\TryCompile-fgt0jl\testCCompiler.c
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s: Assembler messages:
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s: Warning: end of file in string; '"' inserted
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:1: Error: syntax error
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:1: Error: junk at end of line, first unrecognized character is `%'
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:2: Warning: missing closing `"'
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:2: Error: unknown opcode or format name ''
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:2: Error: unknown opcode or format name ''
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:3: Error: unknown opcode or format name ''
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:3: Warning: missing closing `"'
    C:\Users\rui.yu\AppData\Local\Temp\ccvl1Hbf.s:3: Error: unknown opcode or format name ''
    ninja: build stopped: subcommand failed.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  C:/Espressif/frameworks/esp-idf-v5.5/tools/cmake/project.cmake:589 (__project)
  CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!

Diagnostic report archive.

PS D:\private_storage\hh\hello_world> idf.py diag
Executing action: diag
Running idf_diag in directory D:\private_storage\hh\hello_world
Executing "C:\Espressif\python_env\idf5.5_py3.11_env\Scripts\python.exe -m esp_idf_diag create --no-hints --force-terminal --project-dir D:\private_storage\hh\hello_world --build-dir D:\private_storage\hh\hello_world\build --output idf-diag-5069b844-5b8b-4d2d-b5e6-b2726de5217a"...
Creating report in "idf-diag-5069b844-5b8b-4d2d-b5e6-b2726de5217a" directory.
Searching for device serial port ...
Serial port: COM11
warning: Directory "D:\private_storage\hh\hello_world\build" does not seem to be an ESP-IDF project build directory.
Shell environment information

  • Enviromental Variables
  • Python Environmental Variables
    Basic ESP-IDF information
  • ESP-IDF Version
  • ESP-IDF Git Version
    IDF Component Manager information
  • IDF Component Manager
    warning: File "D:\private_storage\hh\hello_world/dependencies.lock" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world/dependencies.lock'
    warning: No files matching glob "idf_component.yml" found in "D:\private_storage\hh\hello_world"
    ESP-IDF project information and artifacts
  • Project Description
    warning: File "D:\private_storage\hh\hello_world\build/project_description.json" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/project_description.json'
  • Compile Commands
    warning: File "D:\private_storage\hh\hello_world\build/compile_commands.json" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/compile_commands.json'
  • Linker Scripts
    warning: File "D:\private_storage\hh\hello_world\build/esp-idf/esp_system/ld/memory.ld" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/esp-idf/esp_system/ld/memory.ld'
    warning: File "D:\private_storage\hh\hello_world\build/esp-idf/esp_system/ld/sections.ld" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/esp-idf/esp_system/ld/sections.ld'
  • Flash Arguments
    warning: File "D:\private_storage\hh\hello_world\build/flash_app_args" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/flash_app_args'
    warning: File "D:\private_storage\hh\hello_world\build/flash_args" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/flash_args'
    warning: File "D:\private_storage\hh\hello_world\build/bootloader-flash_args" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/bootloader-flash_args'
    warning: File "D:\private_storage\hh\hello_world\build/flash_bootloader_args" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/flash_bootloader_args'
    warning: File "D:\private_storage\hh\hello_world\build/flasher_args.json" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/flasher_args.json'
    warning: File "D:\private_storage\hh\hello_world\build/flash_project_args" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/flash_project_args'
    warning: File "D:\private_storage\hh\hello_world\build/partition-table-flash_args" does not exist: [Errno 2] No such file or directory: 'D:\private_storage\hh\hello_world\build/partition-table-flash_args'
  • Sdkconfig
  • Logs
    warning: No files matching glob "idf_py_stdout_output*" found in "D:\private_storage\hh\hello_world\build\log"
    warning: No files matching glob "idf_py_stderr_output*" found in "D:\private_storage\hh\hello_world\build\log"
    warning: No files matching glob "idf_py_stdout_output*" found in "D:\private_storage\hh\hello_world\build\log"
    warning: No files matching glob "idf_py_stderr_output*" found in "D:\private_storage\hh\hello_world\build\log"
    warning: No files matching glob "idf_py_stdout_output*" found in "D:\private_storage\hh\hello_world\build\log"
    warning: No files matching glob "idf_py_stderr_output*" found in "D:\private_storage\hh\hello_world\build\log"
  • Link Map File
    warning: No files matching glob "*.map" found in "D:\private_storage\hh\hello_world\build"
    ESP-IDF python and virtual environment information
  • Python Version
  • Python Virtual Environment Packages
    System information
  • Platform Information
  • Windows Information
    Target information
  • Esptool - flash_id
    warning: Exec command "esptool.py --port COM11 flash_id" failed with exit code 1
  • Esptool - get_security_info
    warning: Exec command "esptool.py --port COM11 get_security_info" failed with exit code 1
  • Espefuse - summary
    warning: Exec command "espefuse.py --port COM11 summary" failed with exit code 1
    ESP-IDF tools information
  • ESP-IDF Tools Info
    The report has been created in the "idf-diag-5069b844-5b8b-4d2d-b5e6-b2726de5217a" directory.
    Please make sure to thoroughly check it for any sensitive information before sharing and remove files you do not want to share. Kindly include any additional files you find relevant that were not automatically added. Please archive the contents of the final report directory using the command:
    "idf.py diag --zip idf-diag-5069b844-5b8b-4d2d-b5e6-b2726de5217a".
    Done
    PS D:\private_storage\hh\hello_world>

More Information.

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions