AVR embedded - wrong Linker parameters when space in path
Original Reporter info from Mantis: Timm Thaler
-
Reporter name: Timm Thaler
Original Reporter info from Mantis: Timm Thaler
- Reporter name: Timm Thaler
Description:
With Laz trunk (Laz2.1+FPC3.3.1) and Laz stable (Laz2.0+FPC3.2.0) there is an Linker Error when calling avr-embedded-objcopy.exe if file path contains spaces:
Projekt kompilieren, OS: embedded, CPU: avr, Ziel: datalogger: Exit code 1, Fehler: 1, Warnungen: 3, Hinweise: 20
...
[0.335] Executing "C:\Tools\Lazarus\cross\bin\avr-embedded\avr-embedded-ld.exe" with command line "-g --gc-sections -L. -o "D:\Eigene Dateien\Technik\Datalogger\datalogger.elf" -T "D:\Eigene Dateien\Technik\Datalogger\link.res""
Size of Code: 29068 bytes
Size of initialized data: 336 bytes
Size of uninitialized data: 814 bytes
[0.353] Searching file C:\Tools\Lazarus\cross\bin\avr-embedded\avr-embedded-objcopy.exe... found
Using util C:\Tools\Lazarus\cross\bin\avr-embedded\avr-embedded-objcopy.exe
[0.353] Executing "C:\Tools\Lazarus\cross\bin\avr-embedded\avr-embedded-objcopy.exe" with command line "-O ihex D:\Eigene Dateien\Technik\Datalogger\datalogger.elf D:\Eigene Dateien\Technik\Datalogger\datalogger.hex"
Usage: C:\Tools\Lazarus\cross\bin\avr-embedded\avr-embedded-objcopy.exe [option(s)] in-file [out-file]
Copies a binary file, possibly transforming it in the process
The options are:
...
datalogger.lpr(194,0) Error: Error while linking
With Laz1.9+FPC3.1.1 the same projects compile without error. Seems "" are missing now.
I use the latest trunk and fixes, FPC and IDE build with fpcupdeluxe. All .s, .ppu, .o files of the project are created, only the last call to avr-embedded-objcopy.exe went wrong.
Steps to reproduce:
Try to compile an AVR embedded project with latest trunk (3.3.1) or stable (3.2.0).
Mantis conversion info:
- Mantis ID: 35072
- OS: Win
- OS Build: Win7
- Build: FPC r41259 LAZ svn60369
- Platform: x64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 41324 (#e3546cf5)