<div dir="ltr">Hi,<br><br>I've tried to compile a program on MacOS, but got the following error:<br><br><br><br>$ cat empty.pas<br>begin end.<br><br>$ fpc -Xm empty.pas<br>Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64<br>Copyright (c) 1993-2020 by Florian Klaempfl and others<br>Target OS: Darwin for x86_64<br>Compiling empty.pas<br>Assembling (pipe) empty.s<br>Linking empty<br>ld: unknown option: -Map<br>An error occurred while linking<br>Error: Error while linking<br>Fatal: There were 1 errors compiling module, stopping<br>Fatal: Compilation aborted<br>Error: /usr/local/bin/ppcx64 returned an error exitcode<br><br>$ /usr/bin/xcodebuild -version<br>Xcode 5.0.2<br>Build version 5A3005<br><br><br><br><br>It's official release, I've not tested with the trunk version. -Xm was successfully<div>worked with fpc 2.6.x.<br><br>Is this a bug? Should I create an issue in the bug tracker?<br><br>Is there a workaround to use the -Xm and still get the .map file? Maybe some<br>modifications to ppas.sh or link.res would help?<br><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Victor Matuzenko (Виктор Матузенко)<br></div></div></div></div></div>