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

Error when ESP builds hello project #2

Open
allrobot opened this issue Mar 8, 2022 · 0 comments
Open

Error when ESP builds hello project #2

allrobot opened this issue Mar 8, 2022 · 0 comments

Comments

@allrobot
Copy link

allrobot commented Mar 8, 2022

It about nodemcu-prebuilt-toolchains

[variant] Loaded new set of variants
[kit] Successfully loaded 10 kits from C:\Users\li1gu\AppData\Local\CMakeTools\cmake-tools-kits.json
[proc] Executing command: C:\Users\li1gu\.espressif\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin\riscv32-esp-elf-gcc.exe -v
[main] Configuring folder: sample_project 
[proc] Executing command: C:\Users\li1gu\.espressif\tools\cmake\3.20.3\bin\cmake.EXE --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\Users\li1gu\.espressif\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin\riscv32-esp-elf-gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\Users\li1gu\.espressif\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin\riscv32-esp-elf-g++.exe -Hc:/Users/li1gu/esp/sample_project -Bc:/Users/li1gu/esp/sample_project/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Found Git: C:/Users/li1gu/.espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1") 
[cmake] -- IDF_TARGET not set, using default target: esp32
[cmake] -- The C compiler identification is unknown
[cmake] -- The CXX compiler identification is unknown
[cmake] -- The ASM compiler identification is unknown
[cmake] -- Found assembler: C:/ProgramData/nodemcu-prebuilt-toolchains-master/esp32/bin/xtensa-esp32-elf-gcc
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - failed
[cmake] -- Check for working C compiler: C:/ProgramData/nodemcu-prebuilt-toolchains-master/esp32/bin/xtensa-esp32-elf-gcc
[cmake] -- Check for working C compiler: C:/ProgramData/nodemcu-prebuilt-toolchains-master/esp32/bin/xtensa-esp32-elf-gcc - broken
[cmake] CMake Error at C:/Users/li1gu/.espressif/tools/cmake/3.20.3/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
[cmake]   The C compiler
[cmake] 
[cmake]     "C:/ProgramData/nodemcu-prebuilt-toolchains-master/esp32/bin/xtensa-esp32-elf-gcc"
[cmake] 
[cmake]   is not able to compile a simple test program.
[cmake] 
[cmake]   It fails with the following output:
[cmake] 
[cmake]     Change Dir: C:/Users/li1gu/esp/sample_project/build/CMakeFiles/CMakeTmp
[cmake]     
[cmake]     Run Build Command(s):C:/Users/li1gu/.espressif/tools/ninja/1.10.2/ninja.exe cmTC_bef14 && 
[cmake]     CreateProcess failed. Command attempted:
[cmake]     "C:\ProgramData\nodemcu-prebuilt-toolchains-master\esp32\bin\xtensa-esp32-elf-gcc   -mlongcalls -Wno-frame-address -o CMakeFiles\cmTC_bef14.dir\testCCompiler.c.obj -c testCCompiler.c"
[cmake]     ninja: fatal: CreateProcess: %1 不是有效的 Win32 应用程序。
[cmake]     
[cmake]     
[cmake]     
[cmake] 
[cmake]   
[cmake] 
[cmake]   CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake]   C:/Users/li1gu/Desktop/esp-idf/tools/cmake/project.cmake:311 (__project)
[cmake]   CMakeLists.txt:8 (project)
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "C:/Users/li1gu/esp/sample_project/build/CMakeFiles/CMakeOutput.log".
[cmake] See also "C:/Users/li1gu/esp/sample_project/build/CMakeFiles/CMakeError.log".

The following is the error file

CMakeError.log
CMakeOutput.log

Does anyone know how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant