-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Issue to build with 'Aggressively cache compiled core' enabled on Windows #6757
Comments
Hi @fpistm , |
Hi @facchinm, |
After a bit of research, it looks like the problem is not easily solvable, since you use If the path gets too long, using |
See arduino/Arduino#6757 (comment) From @facchinm: Replacing {build.path}/{archive_file} with archive_file_path should remove the arduino_build_xxxxxx/.. part and make the path a bit shorter. Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Thanks for the tips @facchinm. |
Closing the issue as "solved" (almost 😄 ), keeping track of the Windows-related length issues on #6751. |
See arduino/Arduino#6757 (comment) From @facchinm: Replacing {build.path}/{archive_file} with archive_file_path should remove the arduino_build_xxxxxx/.. part and make the path a bit shorter. Issue also raised here using BP: http://stm32duino.com/viewtopic.php?f=3&t=3070 Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
See arduino/Arduino#6757 (comment) From @facchinm: Replacing {build.path}/{archive_file} with archive_file_path should remove the arduino_build_xxxxxx/.. part and make the path a bit shorter. Issue also raised here using BP: http://stm32duino.com/viewtopic.php?f=3&t=3070 Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Using the Arduino_Core_STM32, depending of the board and menu option after one build it is not possible to build again when Aggressively cache compiled core is enabled in the Arduino IDE references.
Example
Archiving built core (caching) in: C:\Users\guest\AppData\Local\Temp\arduino_cache_703236\core\core_stm_stm32_Disco_board_part_num_DISCO_L475VG_IOT,upload_method_MassStorageMethod,Other_serial_enable_Serial,USB_interface_enable_USB,opt_oslto_4e2f2f4828dcde7e63516bf59d4ffb2d.a
arm-none-eabi-gcc: error: C:\Users\guest\AppData\Local\Temp\arduino_build_927530/..\arduino_cache_703236\core\core_stm_stm32_Disco_board_part_num_DISCO_L475VG_IOT,upload_method_MassStorageMethod,Other_serial_enable_Serial,USB_interface_enable_USB,opt_oslto_4e2f2f4828dcde7e63516bf59d4ffb2d.a: No such file or directory
But the file exists.
In the second build, the path is higher to 260 (MAX_PATH of windows) due to the
arduino_build_927530/..
that's why there is an error. Even if this limitation is disabled it seems Arduino is not able to deal with.Issue met with Win7 and Win10.
I've shorten option in board.txt and it is now ok. one other solution is to disable the Aggressively cache compiled core in the Arduino IDE references.
I raised this issue here to reference it in the Arduino github. I though some other user could met this. So, I think it should be fine to review arduino cache naming to avoid further issue.
The text was updated successfully, but these errors were encountered: