platform-ststm32 icon indicating copy to clipboard operation
platform-ststm32 copied to clipboard

Linker having issues with non English characters in path to link script

Open ellensp opened this issue 4 years ago • 2 comments

  • [X] Development Platform or Board.

Configuration

Operating system: Windows 10

PlatformIO Version PlatformIO Core, version 5.1.1

Description of problem

Fails to link. Error "Cannot open linker script file" Path contains non English characters. Simply renaming directory gets around issue, but should not be required. Path contains ALT+162 ó, seems to break things. Second report, this time user used a é

Steps to Reproduce

  1. Standard Marlin build https://github.com/MarlinFirmware/Marlin/archive/refs/heads/bugfix-2.0.x.zip
  2. extract to directory with non English characters
  3. use config files from https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.0.x/config/examples/Creality/Ender-3%20V2
  4. Set default_envs = STM32F103RET6_creality in platfomio.ini
  5. build

Actual Results

Example uses Marlin auto build, but does same with standard build button. error

Expected Results

Linking to be successful

If problems with PlatformIO Build System:

The content of platformio.ini: same as https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/platformio.ini with step 4 above applied.

ellensp avatar Mar 30 '21 09:03 ellensp

The error message comes from the arm-none-eabi's ld linker component -- I'm not sure if there is anything one can do for fixing that here. (If it's not an issue with PlatformIO encoding it wrongly).

What's the output of pio system info?

maxgerhardt avatar Apr 02 '21 09:04 maxgerhardt

same happen with french Downloads folder named "Téléchargements"

image

to note: seems specific to lib maple environments (STM32F1)

well if you have this problem, just move the project in a folder with a simple charset

tpruvot avatar Nov 04 '21 15:11 tpruvot