Thanks all. fpc and sources were installed, and reinstalled to double check, from stable 3.0.4 distro (2.0.4 was typo). No change to fpc from lazarus 1.8.4.
/usr/local/bin/ppcx64
is a link to:
/usr/local/lib/fpc/3.0.4/ppcx64
/usr/local/bin/fpc
is an binary that displays:
"Free Pascal Compiler version 3.0.4 [2017/11/26] for x86_64"
as expected when executed from the command line. Although this is a binary, not a link, it gives the same as executing ppcx64.
Running a "Hello World" program from the command line with -va locates fpc.cfg, searching several possibilities. The reinstall of fpc created a new fpc.cfg, so I doubt that has become corrupted.
The error messages occur when starting lazarus, either trunk or 2.0 fixes.
1) Trying to rescan the fpc sources gives me the same two error messages.
2) FPC values used by the IDE:
Lazarus version: 2.0.0RC3
Lazarus svn revision: 59910
Lazarus build date: 2018/12/25
Lazarus was compiled for x86_64-darwin
Lazarus was compiled with fpc 3.0.4
Environment variables:
PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin
PP=
FPCDIR=
USESVN2REVISIONINC=
USER=frederick
HOME=/Users/frederick
PWD=/Developer/laz_2_0
LANG=en_US.UTF-8
LANGUAGE=
Global IDE options:
LazarusDirectory=/Developer/laz_2_0/
Resolved LazarusDirectory=/Developer/laz_2_0/
Project's CompilerFilename=$(CompPath)
Resolved Project's CompilerFilename=/usr/local/bin/fpc
Default CompilerFilename=fpc
Resolved default compilerFilename=/usr/local/bin/fpc
CompilerMessagesFilename=
Resolved CompilerMessagesFilename=/usr/local/share/fpcsrc/compiler/msg/errore.msg
Project:
lpi=/Volumes/PA01/FreePascal/Orient/Orient_3.9.0/Orient_3.9.0.14/Orient.lpi
Directory=/Volumes/PA01/FreePascal/Orient/Orient_3.9.0/Orient_3.9.0.14/
TargetOS=macos
TargetCPU=x86_64
CompilerFilename=$(CompPath)
CompilerOptions=
Active target:
TargetOS=macos
TargetCPU=x86_64
FPC executable:
Compiler=/usr/local/bin/fpc
Options=
CompilerDate=11/26/2017 02:39:02 PM
RealCompiler=/usr/local/bin/ppcx64
RealCompilerDate=11/26/2017 02:39:03 PM
RealTargetOS=macos
RealTargetCPU=x86_64
RealCompilerInPath=/usr/local/lib/fpc/3.0.4/ppcx64
Version=
WARNING: fpc has no config file
Defines:
Undefines:
BSD=
DARWIN=
FPC_HAS_WINLIKERESOURCES=
HASUNIX=
UNIX=
Include Paths:
Unit Scopes:
Unit Paths:
Units:
Sources:
Directory=/usr/local/share/fpcsrc
Files.Count=13525
packages/libndsfpc/src/nds/system.inc
packages/libogcfpc/src/ogc/system.inc
rtl/aix/system.pp
rtl/amicommon/classes.pp
rtl/amicommon/sysutils.pp
rtl/amiga/system.pp
rtl/aros/system.pp
rtl/atari/system.pp
rtl/beos/classes.pp
rtl/beos/system.pp
rtl/bsd/system.pp
rtl/embedded/system.pp
rtl/embedded/sysutils.pp
rtl/emx/system.pas
rtl/emx/sysutils.pp
rtl/gba/classes.pp
rtl/gba/system.pp
rtl/gba/sysutils.pp
rtl/go32v2/classes.pp
rtl/go32v2/system.pp
rtl/go32v2/sysutils.pp
rtl/haiku/classes.pp
rtl/haiku/system.pp
rtl/inc/system.inc
rtl/java/system.pp
rtl/linux/system.pp
rtl/macos/system.pp
rtl/macos/sysutils.pp
rtl/morphos/system.pp
rtl/msdos/classes.pp
rtl/msdos/system.pp
rtl/msdos/sysutils.pp
rtl/nativent/classes.pp
rtl/nativent/system.pp
rtl/nativent/sysutils.pp
rtl/nds/classes.pp
rtl/nds/system.pp
rtl/nds/sysutils.pp
rtl/netware/classes.pp
rtl/netware/system.pp
rtl/netware/sysutils.pp
rtl/netwlibc/classes.pp
rtl/netwlibc/system.pp
rtl/netwlibc/sysutils.pp
rtl/objpas/classes/classes.inc
rtl/objpas/sysutils/sysutils.inc
rtl/os2/classes.pp
rtl/os2/system.pas
rtl/os2/sysutils.pp
rtl/palmos/system.pp
rtl/qnx/system.pp
rtl/solaris/system.pp
rtl/symbian/system.pp
rtl/unix/classes.pp
rtl/unix/sysutils.pp
rtl/watcom/classes.pp
rtl/watcom/system.pp
rtl/watcom/sysutils.pp
rtl/wii/classes.pp
rtl/wii/system.pp
rtl/wii/sysutils.pp
rtl/win/sysutils.pp
rtl/win32/classes.pp
rtl/win32/system.pp
rtl/win64/classes.pp
rtl/win64/system.pp
rtl/wince/classes.pp
rtl/wince/system.pp
rtl/wince/sysutils.pp
FCP output:
The IDE asks the compiler with the following command for the real OS/CPU:
/usr/local/bin/fpc -iTOTP -Fr/Developer/laz_2_0/components/codetools/fpc.errore.msg
Working directory: /
Output:
darwin x86_64
The IDE asks the compiler with the following command for paths and macros:
/usr/local/bin/fpc -va -Px86_64 -Tmacos -Fr/Developer/laz_2_0/components/codetools/fpc.errore.msg compilertest.pas
Working directory: /Users/frederick/.laz_2_0/
Output:
[0.000] Handling option "-Tmacos"
[0.000] interpreting firstpass option "-Tmacos"
[0.000] Macro undefined: DARWIN
[0.000] Macro undefined: UNIX
[0.000] Macro undefined: BSD
[0.000] Macro undefined: HASUNIX
[0.000] Macro undefined: FPC_HAS_WINLIKERESOURCES
[0.000] Error: Illegal parameter: -Tmacos
[0.000] Hint: -? writes help pages
Error: /usr/local/bin/ppcx64 returned an error exitcode
NOTE: The compilertest.pas is empty, so compilation fails. This is what we want.