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 (Виктор Матузенко)
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
  • [fpc-devel] macos: -Xm leads... Виктор Матузенко via fpc-devel

Reply via email to