Welcome, Guest
Username: Password: Remember me
CodeTyphon MacOS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Error: ld: warning 8 months 1 week ago #17062

  • Premysl Beran
  • Premysl Beran's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 46
  • Thank you received: 0
Good morning,
I just recently moved to Monterey (12.3.1) and upgraded my CT to 7.7. All works fine, thanks for the great job.

I'm able to compile my project. Only I mentioned some strange error from the compiler (see below).

Error: ld: warning: option -no_dead_strip_inits_and_terms is obsolete and being ignored

I didn't find such compiler option. But the executable is properly made and linked and possible to execute. What this error can be linked to?

With best regards

Premek

Please Log in or Create an account to join the conversation.

Last edit: by Premysl Beran.

Error: ld: warning 8 months 1 week ago #17063

  • fredvs
  • fredvs's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 205
  • Thank you received: 1
Hello.

It comes from /fpc/compiler/systems/t_darwin.pas, line 492. 
if (cs_link_smart in current_settings.globalswitches) then GCSectionsStr:='-dead_strip -no_dead_strip_inits_and_terms';
And, indeed, no_dead_strip_inits_and_terms is a obsolete option, see section "Obsolete Options":
www.manpagez.com/man/1/ld64/

Maybe CT could remove it.

Please Log in or Create an account to join the conversation.

Error: ld: warning 8 months 1 week ago #17064

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 795
  • Thank you received: 81
We will apply, test and report here
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Error: ld: warning 8 months 1 week ago #17065

  • Premysl Beran
  • Premysl Beran's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 46
  • Thank you received: 0
Thanks, fredvs, I can confirm that after removing -XX from the compiler parameters, this message disappeared. :-)

So, I removed 
-no_dead_strip_inits_and_terms
and kept only
-dead_strip
 and recompiled FPC. The project compilation works smooth and fine.

Please Log in or Create an account to join the conversation.

Last edit: by Premysl Beran.

Error: ld: warning 8 months 1 week ago #17066

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 795
  • Thank you received: 81
We remove
-no_dead_strip_inits_and_terms
from 
/fpcsrc/compiler/systems/t_darwin.pas

Thanks and my respect
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..
  • Page:
  • 1