Skip to content

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

Closed
@fpistm

Description

@fpistm

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

  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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions