Skip to content

Issue to build with 'Aggressively cache compiled core' enabled on Windows #108

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

Closed
fpistm opened this issue Sep 20, 2017 · 5 comments
Closed
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@fpistm
Copy link
Member

fpistm commented Sep 20, 2017

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

  1. First build is ok:
    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
  2. Second one failed:
    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.

The path is higher to 260 (MAX_PATH of windows) 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.

One solution is to shorten option in board.txt else disable the Aggressively cache compiled core in the Arduino IDE references.

@fpistm fpistm self-assigned this Sep 20, 2017
@fpistm fpistm added the bug 🐛 Something isn't working label Sep 20, 2017
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Sep 20, 2017
@fpistm fpistm added this to the Next release milestone Sep 20, 2017
@fpistm
Copy link
Member Author

fpistm commented Sep 20, 2017

With #109
C:\Users\guest\AppData\Local\Temp\arduino_build_927530/..\arduino_cache_985791\core\core_stm_stm32_Disco_pnum_DISCO_L475VG_IOT,upload_method_MassStorage,xserial_none,usb_none,opt_oslto_4e2f2f4828dcde7e63516bf59d4ffb2d.a
Now 220 instead of 266

@ghost
Copy link

ghost commented Sep 21, 2017

Did you open an issue to Arduino?

@fpistm
Copy link
Member Author

fpistm commented Sep 21, 2017

Not yet but I will do it.
however, I think it is good to shorten some options. Moreover, it is more explicit name.

@ghost
Copy link

ghost commented Sep 21, 2017

Of course it is better. So now we must be careful when we choose an option name. Sneaky bug.

@fpistm
Copy link
Member Author

fpistm commented Sep 24, 2017

Issue opened: Arduino#6757

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant