[Pkg-pascal-devel] Workaround for "/usr/bin/ld: warning: link.res contains output sections; did you forget -T?"

Michalis Kamburelis michalis.kambi at gmail.com
Mon Aug 14 21:08:21 UTC 2017


2017-08-14 21:05 GMT+02:00 Paul Gevers <elbrus at debian.org>:
> On 14-08-17 12:39, Alexander F Rødseth wrote:
>> As I gather, binutils updatream does not view this is a problem,
>> neither does fpc upstream, but it's mildly annoying for especially new
>> users of fpc.
>
> Did you try to have this fixed? Could you share communications about it?
> Maybe (very maybe) we can fix this in binutils in Debian if the solution
> is clean enough.
>

Actually, FPC upstream cared about it and fixed it already in FPC
3.1.1 :) This is mentioned in the FAQ, see
https://www.freepascal.org/faq.var#unix-ld219 .

And I can confirm that it actually works. I'm using Debian testing
right now, with binutils from Debian, and I have my custom
installations of FPC 3.0.2 and 3.1.1. FPC 3.0.2 makes "/usr/bin/ld:
warning: link.res contains output sections; did you forget -T?" every
time, FPC 3.1.1 doesn't.

FPC 3.1.1 is the FPC from SVN repository (bleeding edge, changing with
every commit). See https://freepascal.org/develop.var .

So we just have to wait until FPC 3.2.0 is released and packaged in Debian :)

Regards,
Michalis



More information about the Pkg-pascal-devel mailing list