Linker generates too many empty lines breaks
Original Reporter info from Mantis: lifepower
-
Reporter name: lifepower
Original Reporter info from Mantis: lifepower
- Reporter name: lifepower
Description:
I haven't tested other platforms, but when compiling projects on 64-bit linux, linker seems to generate too many empty line breaks. This happens even when compiling trunk FPC itself. In some occasions, this makes difficult to see what linker error was as you have to scroll a lot of empty console space. This also prevents Lazarus from figuring out linker error if there is any, especially during cross-platform compilations.
Steps to reproduce:
-
On 64-bit linux, install FPC 2.6.4, then get FPC from trunk latest rev. Build it with "make all" - loads of empty line breaks can already be visible during build process.
-
Try to compile the following example:
program Test;
uses
SysUtils, Classes;
begin
end.
The output will be:
"Free Pascal Compiler version 3.1.1 [2015/07/21] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
8 lines compiled, 0.1 sec"
As the projects grows, the number of blank line breaks increases. At one point, I saw a couple hundred empty line breaks.
Mantis conversion info:
- Mantis ID: 28414
- OS: Ubuntu 64-bit
- OS Build: 15.04
- Build: trunk rev 31215
- Platform: Linux 64-bit
- Version: 3.1.1