- Posts: 42
- Thank you received: 0
×
CodeTyphon MacOS Development, discussions and problems
Question Error: ld: warning
- Premysl Beran
- Topic Author
- Offline
- Junior Member
-
Less
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).
With best regards
Premek
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).
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?Error: ld: warning: option -no_dead_strip_inits_and_terms is obsolete and being ignored
With best regards
Premek
Please Log in or Create an account to join the conversation.
- fredvs
- Offline
- Junior Member
-
Less
More
- Posts: 183
- Thank you received: 1
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.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.
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';
www.manpagez.com/man/1/ld64/
Maybe CT could remove it.
Please Log in or Create an account to join the conversation.
- Matis A.
-
- Away
- Moderator
-
1 month 1 week ago #17064
by Matis A.
PilotLogic Core Programmer
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
-
Less
More
- Posts: 42
- Thank you received: 0
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 removedand kept only and recompiled FPC. The project compilation works smooth and fine.

So, I removed
-no_dead_strip_inits_and_terms
-dead_strip
Last edit: 1 month 1 week ago by Premysl Beran.
Please Log in or Create an account to join the conversation.
- Matis A.
-
- Away
- Moderator
-
1 month 1 week ago - 1 month 1 week ago #17066
by Matis A.
PilotLogic Core Programmer
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
-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.