Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-10

no_dead_strip not recognized by OS X 10.3 assembler

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tobias Giesen

Hello,

I am now trying the latest Lazarus snapshots on OS X 10.3 on a powerpc Mac. The application compiles 99% fine but at the end it fails with the following errors (from the assembler, I assume):

unknown section attribute: no_dead_strip
[...]
Error while assembling Exit Code 1

Is there a solution for this problem?

Thanks!

Cheers,
Tobias

Jonas Maebe
to Tobias Giesen
Tobias Giesen wrote 10 lines
I am now trying the latest Lazarus snapshots on OS X 10.3 on a powerpc Mac. The application compiles 99% fine but at the end it fails with the following errors (from the assembler, I assume): unknown section attribute: no_dead_strip [...] Error while assembling Exit Code 1 Is there a solution for this problem?

Yes, add the -CX- -X- command line options. Dead code stripping is not supported by the 10.3 assembler/linker. The compiler has however no clue on which OS version it is running, so if Lazarus tells it to generate smart linkable code, it will do so.

Jonas

Jonas Maebe
to Jonas Maebe
Jonas Maebe wrote 7 lines
> unknown section attribute: no_dead_strip > [...] > Error while assembling Exit Code 1 > > Is there a solution for this problem? Yes, add the -CX- -X- command line options.

Or better: turn off all smart linking related options in Lazarus.

Jonas

Mattias Gaertner
to Jonas Maebe: Yes, add the -CX- -X- command line options. Dead code stripping is not supported by the…
Show quoted text 18 lines
On 29 Oct 2007, at 11:03, Tobias Giesen wrote: > I am now trying the latest Lazarus snapshots on OS X 10.3 on a > powerpc Mac. The application compiles 99% fine but at the end it > fails with the > following errors (from the assembler, I assume): > > unknown section attribute: no_dead_strip > [...] > Error while assembling Exit Code 1 > > Is there a solution for this problem? Yes, add the -CX- -X- command line options. Dead code stripping is not supported by the 10.3 assembler/linker. The compiler has however no clue on which OS version it is running, so if Lazarus tells it to generate smart linkable code, it will do so.

I added the hint to the FAQ. Please review:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#Mac_OS_X

Mattias

Tobias Giesen
to Jonas Maebe: Or better: turn off all smart linking related options in Lazarus. Jonas
Yes, add the -CX- -X- command line options. Or better: turn off all smart linking related options in Lazarus.

Thanks!

I did both, but somehow the error is still there. All the units compile fine, only the last step where the .dpr file is compiled fails. The .s file of the main program remains in the folder. Can I edit it and do the final steps manually, just for a test?

Cheers,
Tobias

Jonas Maebe
to Tobias Giesen
Tobias Giesen wrote 10 lines
> Yes, add the -CX- -X- command line options. > Or better: turn off all smart linking related options in Lazarus. Thanks! I did both, but somehow the error is still there. All the units compile fine, only the last step where the .dpr file is compiled fails. The .s file of the main program remains in the folder. Can I edit it and do the final steps manually, just for a test?

You can use the -s option so make the compiler only generate assembler files, together with a script (called ppas.sh) to perform the assembling and linking.

Jonas