[fpc-devel] Apple M1 processor

Jonas Maebe jonas at freepascal.org
Wed Feb 3 11:58:41 CET 2021


On 02/02/2021 16:48, C Western via fpc-devel wrote:
> I have been trying out compiling my main application for the new Apple
> M1 machines, and have two queries:
> 
> The traceback on crashes does not include line numbers, when the same
> flags on other architectures does. Is this something that is easy to
> fix? Any pointers as to how?

It's because no one has implemented Dwarf support in the lineinfo unit
yet in for Darwin: https://bugs.freepascal.org/view.php?id=32775

> Related to this I am trying to compile the rtl with debug information on
> by passing DEBUG=1 to the make install when compiling from the current
> SVN version, but it fails with:
> 
> ...
> 
> /bin/mv -f aarch64/bin/aarch64-darwin/pp ppca64
> /Applications/Xcode.app/Contents/Developer/usr/bin/make echotime
> Start now 21:01:40
> /usr/bin/diff ppc3 ppca64
> Binary files ppc3 and ppca64 differ
> 
> I think a similar issue happens with other architectures on macs, and
> there I think it was possible to fix by adjusting the starting compiler,
> but I haven't been able to find a combination that works - any ideas?

I'll have a look.


Jonas


More information about the fpc-devel mailing list