× CodeTyphon MacOS Development, discussions and problems

Question Error: ld: warning

  • Premysl Beran
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 1 week ago #17062 by Premysl Beran
Error: ld: warning was created by Premysl Beran
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.

More
1 month 1 week ago #17063 by fredvs
Replied by fredvs on topic Error: ld: warning
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.

More
1 month 1 week ago #17064 by Matis A.
Replied by Matis A. on topic Error: ld: warning
We will apply, test and report here

PilotLogic Core Programmer

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

  • Premysl Beran
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 1 week ago - 1 month 1 week ago #17065 by Premysl Beran
Replied by Premysl Beran on topic Error: ld: warning
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.
Last edit: 1 month 1 week ago by Premysl Beran.

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

More
1 month 1 week ago - 1 month 1 week ago #17066 by Matis A.
Replied by Matis A. on topic Error: ld: warning
We remove
-no_dead_strip_inits_and_terms
from 
/fpcsrc/compiler/systems/t_darwin.pas

Thanks and my respect

PilotLogic Core Programmer
Last edit: 1 month 1 week ago by Matis A..

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