Open Tinyu-Zhao opened 1 week ago
It seems that the error log is using the toolchain /Users/tinyu/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
while normal log is using /Users/tinyu/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
Also Python used is different for both cases: /Users/tinyu/.espressif/python_env/idf5.4_py3.9_env/bin/python
for error.log and /Users/tinyu/.espressif/python_env/idf5.4_py3.12_env/bin/python
for normal log.
I would suggest review that both ESP-IDF setup to match version (with doctor command for example) with the intended ESP-IDF version from your application code.
It seems that the error log is using the toolchain
/Users/tinyu/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
while normal log is using/Users/tinyu/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
Also Python used is different for both cases:
/Users/tinyu/.espressif/python_env/idf5.4_py3.9_env/bin/python
for error.log and/Users/tinyu/.espressif/python_env/idf5.4_py3.12_env/bin/python
for normal log.I would suggest review that both ESP-IDF setup to match version (with doctor command for example) with the intended ESP-IDF version from your application code.
Thank you for your reply, I will try again.
Answers checklist.
IDF version.
ESP-IDF v5.4-dev-3201-g46acfdce96
Operating System used.
macOS
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?
Compiles normally without errors.
What is the actual behavior?
I encountered an error when trying to build an old IDF project on my new computer(M2 Chip), but it compiled fine on my previous Intel chip macOS.
When I tried to use the VSCode plugin for ESP-IDF, I got an error
I suspected it was a vscode setup issue, so I tried using idf.py build from the command line, and got the same error as when using the VSCode plugin.
The actual code is
When I hover the mouse over uint8_t, it will prompt me.
But when I Go to uint8_t Definition, it will prompt me.
I suspect the compiler is pointing to the wrong file:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/_types/_uint8_t.h
Steps to reproduce.
Build or installation Logs.
error_log.txt normal_log.txt
More Information.
No response