View Issue Details

IDProjectCategoryView StatusLast Update
0037411LazarusCompilerpublic2020-08-06 14:36
Reporterarent Assigned ToMattias Gaertner  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSUbuntu 
Product Version2.0.10 
Summary0037411: compilation WARNING is misleadingly flagged as ERROR
Descriptioncompilation WARNING is misleadingly flagged as ERROR

Compile Project, Target: /home/arent/tmp/project1: Success, Errors: 1
Error: /usr/bin/ld.bfd: warning: /home/arent/tmp/link.res contains output sections; did you forget -T?
Steps To ReproduceCompile/Link new project with a blank form
TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Files

Activities

Mattias Gaertner

2020-07-23 18:06

manager   ~0124278

I tested compiling an empty project and it works without errors.

Probably there are some more messages. Please right click on the Messages window to open the popup menu, Save / Save all/original messages to file. Then attach the file to this bug report.

arent

2020-07-23 19:04

reporter   ~0124282

Last edited: 2020-07-23 20:18

View 2 revisions

created new project: [File|New|Appiication], then [Run|Build]
m.txt (605 bytes)   
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4+dfsg-23 [2019/11/25] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling /home/arent/tmp/project1.lpr
(3104) Compiling unit1.pas
(9022) Compiling resource /home/arent/tmp/lib/x86_64-linux/project1.or
/usr/bin/ld.bfd: warning: /home/arent/tmp/link.res contains output sections; did you forget -T?
(9015) Linking /home/arent/tmp/project1
(1008) 51 lines compiled, 1.3 sec
(1022) 2 hint(s) issued
m.txt (605 bytes)   

arent

2020-07-23 20:20

reporter   ~0124287

arent

2020-08-06 14:36

reporter   ~0124615

Just noticed that linking lazarus itself also emits the same warning - without flagging as error

(9015) Linking ../lazarus
/usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T?

(9015) Linking ../startlazarus
/usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T?

Issue History

Date Modified Username Field Change
2020-07-23 17:18 arent New Issue
2020-07-23 18:06 Mattias Gaertner Assigned To => Mattias Gaertner
2020-07-23 18:06 Mattias Gaertner Status new => feedback
2020-07-23 18:06 Mattias Gaertner LazTarget => -
2020-07-23 18:06 Mattias Gaertner Note Added: 0124278
2020-07-23 19:04 arent Note Added: 0124282
2020-07-23 19:04 arent File Added: m.txt
2020-07-23 19:04 arent File Added: Screenshot from 2019-11-25 02-08-02.png
2020-07-23 19:04 arent Status feedback => assigned
2020-07-23 20:18 arent Note Edited: 0124282 View Revisions
2020-07-23 20:20 arent Note Added: 0124287
2020-07-23 20:20 arent File Added: Screenshot from 2020-07-23 19-02-18.png
2020-08-06 14:36 arent Note Added: 0124615