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
Can't compile for esp32 when setting config directories outside default Arduino15 on windows #1002
Comments
Some additional info that could be useful:
It seems like there is something wrong with the builtin include paths from the compiler, which is weird. Could you check:
|
Yes, I confirm the file existed. I even tried copying all the files in bits to a bits folder higher in the file hierarchy and the compilation advanced beyond that point only to stop in a similar error, i repeated the procedure over and over again until i had duplicated files everywhere, but new errors kept showing. I can't reproduce the exact same error at the time because i found this workoround. I managed to compile for the platform deleting the cores installed by the board manager and cloning the esp32 arduino github repository and installing it in my custom sketchfolder. now i'm getting the same error when compiling for stm32 platform, but i could'nt solve it the same way because even the development version of the github repo depends on a previous installation through the board manager of the tools. Like with the esp32, installing to the default directory in appdata\Arduino15 compiles correctly command: error message: full log:
I can't reproduce that same command so im using this that i'm gessing is more or less the same:
|
I'm totally unsure what causes this problems. The include paths look good, in particular this one should contain
So I don't know why gcc doesn't find it. Maybe there is some virus scanner or other protection active that somehow triggers on this file but not others? |
Hey @matthijskooijman , i was having a very similar problem yesterday. But i think my console output was a bit more "vague" (for a lack of a better work). Was cracking my head around the problem because i didn't see anything/anyone referencing my problem. I'm not sure if this is the detail you need, but i solved my problem by moving everything (cli + sketch) to the operation system's main drive. I say that because i noticed that @lazaroofarrill 's console outputs show '2 different'/'multiple' drives 'C:' and 'E:' (like in my case 'C:' and 'U:'). |
Forgot about this thread. The problem is with windows max path length. The package was too deep in my file system and the path got too long, that is why it only fails on windows. |
Bug Report
Current behavior
I'm trying to make a portable setup of arduino-cli with the platforms bundled next to the app but i get this error when trying to compile for esp32 platforms.
this is what i get when loading the cli with a custom data folder next to the executable
Expected behavior
This is what i get when compiling using default directories
PS E:\> arduino-cli.exe compile -b esp32:esp32:esp32doit-devkit-v1 .\sketcher\ Sketch uses 206423 bytes (15%) of program storage space. Maximum is 1310720 bytes. Global variables use 14556 bytes (4%) of dynamic memory, leaving 313124 bytes for local variables. Maximum is 327680 bytes. PS E:\>
Environment
So far this problem is exclusive to esp32 boards, arduino avr boards compile with no problem in here.
Can anyone help me
The text was updated successfully, but these errors were encountered: