Recent

Author Topic: coal sections deprecated - Lazarus turns Warnings into Errors?  (Read 851 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
coal sections deprecated - Lazarus turns Warnings into Errors?
« on: December 02, 2020, 11:15:12 pm »
Quote
Free Pascal Compiler version 3.3.1 [2020/10/25] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
(1002) Target OS: Darwin for x86_64
(3104) Compiling project1.lpr
/Users/trev/Documents/Programming/LAZPROJECTS/laz_nsurlsession2/lib/x86_64-darwin/unit1.s:1041:10: warning: section "__datacoal_nt" is deprecated
.section __DATA, __datacoal_nt, coalesced
         ^      ~~~~~~~~~~~~~~
/Users/trev/Documents/Programming/LAZPROJECTS/laz_nsurlsession2/lib/x86_64-darwin/unit1.s:1041:10: note: change section name to "__data"
.section __DATA, __datacoal_nt, coalesced
         ^      ~~~~~~~~~~~~~~
/Users/trev/Documents/Programming/LAZPROJECTS/laz_nsurlsession2/lib/x86_64-darwin/unit1.s:1087:10: warning: section "__datacoal_nt" is deprecated
.section __DATA, __datacoal_nt, coalesced
         ^      ~~~~~~~~~~~~~~
/Users/trev/Documents/Programming/LAZPROJECTS/laz_nsurlsession2/lib/x86_64-darwin/unit1.s:1087:10: note: change section name to "__data"
.section __DATA, __datacoal_nt, coalesced
         ^      ~~~~~~~~~~~~~~
(3104) Compiling unit1.pas
[...]
(9015) Linking /Users/trev/Documents/Programming/LAZPROJECTS/laz_nsurlsession2/project1
(1008) 191 lines compiled, 0.7 sec
(1021) 1 warning(s) issued
(1022) 7 hint(s) issued

Two issues:

1) Is there anything I can do to fix the deprecated use of coal sections?

2) It seems that Lazarus 2.1.0 (r63871) turns some FPC warnings into errors. Compare the messages copy and paste above with the Lazarus output in messages which states:

"Compile project, Target: project1: Success, Errors:8, Warnings:1, Hints:4"

Note also that the error and hint totals are different between FPC and Lazarus.

[I would have attached an image, but Safari 14.0.1 (Intel) crashes when using the Forum "Choose File" link.]
« Last Edit: December 02, 2020, 11:16:44 pm by trev »

 

TinyPortal © 2005-2018