[fpc-devel] macos: -Xm leads to error while linking

Виктор Матузенко vitek03 at gmail.com
Sun Jan 24 17:15:44 CET 2021


Hi,

I've tried to compile a program on MacOS, but got the following error:



$ cat empty.pas
begin end.

$ fpc -Xm empty.pas
Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling empty.pas
Assembling (pipe) empty.s
Linking empty
ld: unknown option: -Map
An error occurred while linking
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode

$ /usr/bin/xcodebuild -version
Xcode 5.0.2
Build version 5A3005




It's official release, I've not tested with the trunk version. -Xm was
successfully
worked with fpc 2.6.x.

Is this a bug? Should I create an issue in the bug tracker?

Is there a workaround to use the -Xm and still get the .map file? Maybe some
modifications to ppas.sh or link.res would help?

-- 
Victor Matuzenko (Виктор Матузенко)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20210124/2ab51c6f/attachment.htm>


More information about the fpc-devel mailing list