Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1222
  • 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 »
o Lazarus 2.1 r64368 FPC 3.3.1 r48100 macOS 10.14.6 Xcode 11.3.1
o Lazarus 2.1 r64392 3.3.1 Jan 13 21:24 macOS 11.1 aarch64 Xcode 12.3
o Lazarus 2.1 r61574 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
o Lazarus 2.1 r61574 3.0.4 Ubuntu 20.04 Parallels VM
o Lazarus 2.0.10 3.2.0 Win10 Parallels VM

 

TinyPortal © 2005-2018