-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Compile error with current arduino-upstream branch #6406
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
Comments
Hi @HDPlayser, it's probably problem in PlatformIO. It doesn't support Arduino core for ESP32 from version v2.0 and newest. Take a look on #6044 to find a workaround. |
@HDPlayser It is Platformio. The Platformio |
Thank you, but unfortunately it also didn`t compile. Same error. 🙄 |
Thanks for your reply.
|
@HDPlayser you specify the toolchain in your ini file here
|
This is my current build configuration:
|
I searched for "Client.map" in the .platformio folder, which includes all platforms, frameworks, libraries. There are no references. Is that somewhere in your code or libraries? I also tried compiling my project with your settings.
Note I had to skip the partition, and include a webserver library.
Minor note: I believe CORE_DEBUG_LEVEL maxes out at 5. |
There is no such file called Client.map on my whole C-Drive 😂 A: Minor Note: Yes the Field CORE_DEBUG_LEVEL goes normally up to 5 but within my own AsyncHTTPClient it goes up to 10 so it can display super verbose stuff. 😅 |
Try skipping the build partition? |
No, sorry. Still the absolute same error 😶 |
I believe the .map file is generated during build. Should be in your [build]/[env:name] folder. This is the first few lines of my [project_name].map file:Archive member included to satisfy reference by file (symbol) C:/.pio/build/esp32c3/libc0e/libWiFi.a(WiFi.cpp.o) .....goes on for about 70,000 + lines I believe it's for the symbol and reference function in platformio. I did have a .map error before with one project and I ended fixing it by removing spaces in my project path and name. Hope this helps [EDIT: Taking a closer look at the .map file, I think it's generated and then needed by the compiler to finish the job. I had this error also, drove me nuts for a couple days because I was working with a RFID reader that happen to have a map file, (unrelated), in it's library so I was looking in the wrong spot forever. I can't remember for sure but I'm almost certain I removed any strange characters and spaces in the project path with underscores and it compiled. Also another reason why a permanently moved my build path closer to the root.] |
Good point. It appears to be named after the project name. For my D4500 project it's located at: |
Yes it's supposed to be your project name file. When I had the error before, it wasn't my project's name, it was something else, not Client but another reference to a library or function. Seems it might be a clue as to what folder to look into for path problems. After that error, I moved my working directory closer to root because Windows can do strange things with long paths, especially to your [User account\Documents and Settings] environment path.
Solved it for me plus getting rid of unusual characters in the project source path and name. |
This is actually a very good point. My Project is indeed named MeshSolutions Client, with an space in between. I think we found the issue. I will try to rename the project tomorrow back at work. |
In general do not place project dirs in deeply directories when using Windows. |
We found the Issue. It was the space in the Project folder`s name. Just by removing it, it compiled without any problems. |
Board
esp-wrover-kit / esp32dev
Device Description
Custom Board for IoT-Purposes
Hardware Configuration
All GPIOs are used up.
SPI-Devices are also connected
Version
latest master
IDE Name
PlatformIO
Operating System
Windows 10 21H2
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
115200
Description
When I compile my software with the default esp32 version, which includes the ESP-IDF Version 3.3.5 everything works like expected. Now I wanted to update to the lastest branch, which includes the new ESP-IDF version 4.x. At the end of compilation when the compiler is linking. I get the following error:
The Compiler gives me absolutely no hint where to trace the error.
When I start a fresh project, it compiles flawlessly.
I want to know why the compiler does not generate the file client.map if I understand this correctly.
Also I could not find any information about the file "Client.map" online.
If you want, I could share the verbose build file if it helps.
Somewhere is code then, which the compile does not like, because my simpler project compiles without errors.
I did an verbose build and could not trace the error either.
I changed the Board to another, it did also not compile.
Here is my current Environment configuration:
_
_
Sketch
Very large Project. Error not traceable.
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: