I'm also waiting with bated breath for the 64-bit release of Free Pascal and Lazarus. :D Catalina has messed up a lot of things for me, including MacPorts (no Catalina version available as of this writing).As much as I know, MacPorts is already partly on Catalina and should be completely soon. I haven't updated so far, but fpc 64bit should be fine. If not, report to me and I will try to take care of it. I am testing lazarus from the fixes branch of 2.0. The cocoa 64bit based lazarus can be compiled. The MacPorts port is submitted, but under review, which may take some time.
Isn't it a matter of simply turning off gatekeeper?
Isn't it a matter of simply turning off gatekeeper?
Unfortunately no... The issue is that FreePascal installer tries to install FreePascal components in the OS partition that is a read-only one with macOS Catalina...
FreePascal installer must be modified accordingly.
I recall https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases (https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases) installs everything into subfolders to the installation (and configures project file accordingly) ... Maybe a solution?
Albeit in Lazarus I have needed to add this in "project options" - "custom options" ... (I do not know if it is still necessary when using FPCUpDeluxe)
-WM10.8 -FD/Library/Developer/CommandLineTools/usr/bin
Note: I am not on Catalina yet, so not 100% sure if the above still works
Isn't it a matter of simply turning off gatekeeper?
Unfortunately no... The issue is that FreePascal installer tries to install FreePascal components in the OS partition that is a read-only one with macOS Catalina...
FreePascal installer must be modified accordingly.
Well, I am on Catalina now. When will the FP Installer work on Catalina?
I'd also be interested in an update?
Have you tried to install the fpc-3.0.4a.intel-macosx.dmg ?That's what helped me on MacOS MajaveThe title of this subject should be changed to [SOLVED].
Fatal: Impossible to find FPimage used by InterfaceBase of package LCLBase.
lclproc.pas(28,18) Fatal: Impossible to find MacOSAll used by LCLProc from the package LCLBase.
Try renaming the ~/.lazarus folder then restart Lazarus.I tried, I even reinstalled Lazarus, but the compiler raises the same error. :(
... The installation of fpc-src-3.0.4-laz.pkg in /usr/local/share/fpcsrc/3.0.4. was fine, but that of fpc-3.0.4-macos-x86_64-laz.pkg in /usr/local/lib/fpc/3.0.4 raised an error at the end, ...
No, because the installer gives no hint, and if I install the package withit doesn't work, and it gives just a generic message of error.
sudo installer -pkg fpc-3.0.4-macos-x86_64-laz.pkg -target /
2019-11-25 20:26:28+01 Mac-mini installd[572]: PackageKit: ----- Begin install -----
2019-11-25 20:26:28+01 Mac-mini installd[572]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
2019-11-25 20:26:28+01 Mac-mini installd[572]: PackageKit: packages=(
"<null>"
)
2019-11-25 20:26:28+01 Mac-mini installd[572]: PackageKit: Set reponsibility for install to 80755
2019-11-25 20:26:28+01 Mac-mini installd[572]: PackageKit: Extracting file:///Users/massimo/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/8AC044D8-FC79-4AA0-98F7-47BA3A88D138.activeSandbox/Root, uid=0)
2019-11-25 20:26:29+01 Mac-mini installd[572]: PackageKit: prevent user idle system sleep
2019-11-25 20:26:29+01 Mac-mini installd[572]: PackageKit: suspending backupd
2019-11-25 20:26:29+01 Mac-mini installd[572]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.XMKLhI/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.7VXwMg
2019-11-25 20:26:29+01 Mac-mini install_monitor[80759]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2019-11-25 20:26:30+01 Mac-mini installd[572]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/8AC044D8-FC79-4AA0-98F7-47BA3A88D138.sandboxTrash for sandbox /Library/InstallerSandboxes/.PKInstallSandboxManager/8AC044D8-FC79-4AA0-98F7-47BA3A88D138.activeSandbox
2019-11-25 20:26:30+01 Mac-mini installd[572]: PackageKit: Shoving /Library/InstallerSandboxes/.PKInstallSandboxManager/8AC044D8-FC79-4AA0-98F7-47BA3A88D138.activeSandbox/Root (1 items) to /
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.XMKLhI/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.7VXwMg
2019-11-25 20:26:31+01 Mac-mini installd[572]: ./postinstall: /tmp/PKInstallSandbox.XMKLhI/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.7VXwMg/postinstall: line 8: /usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/samplecfg: No such file or directory
2019-11-25 20:26:31+01 Mac-mini installd[572]: ./postinstall: /tmp/PKInstallSandbox.XMKLhI/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.7VXwMg/postinstall: line 13: ///usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/ide/text/fp.cfg.tmp: No such file or directory
2019-11-25 20:26:31+01 Mac-mini installd[572]: ./postinstall: cat: ///usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/ide/text/fp.cfg: No such file or directory
2019-11-25 20:26:31+01 Mac-mini installd[572]: ./postinstall: /tmp/PKInstallSandbox.XMKLhI/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.7VXwMg/postinstall: line 14: ///usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/ide/text/fp.cfg: No such file or directory
2019-11-25 20:26:31+01 Mac-mini installd[572]: ./postinstall: rm: ///usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/ide/text/fp.cfg.tmp: No such file or directory
2019-11-25 20:26:31+01 Mac-mini install_monitor[80759]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: releasing backupd
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: allow user idle system sleep
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: Cleared responsibility for install from 80755.
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: Cleared permissions on Installer.app
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "Si è verificato un errore durante l'esecuzione degli script dal pacchetto “fpc-3.0.4-macos-x86_64-laz.pkg.”" UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/massimo/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg, PKInstallPackageIdentifier=org.freepascal.pkg.fpc-macos-x86-64-laz, NSLocalizedDescription=Si è verificato un errore durante l'esecuzione degli script dal pacchetto “fpc-3.0.4-macos-x86_64-laz.pkg.”} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "Si \U00e8 verificato un errore durante l'esecuzione degli script dal pacchetto \U201cfpc-3.0.4-macos-x86_64-laz.pkg.\U201d";
NSURL = "file:///Users/massimo/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg";
PKInstallPackageIdentifier = "org.freepascal.pkg.fpc-macos-x86-64-laz";
}
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: Running idle tasks
2019-11-25 20:26:31+01 Mac-mini Installer[80755]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "Si è verificato un errore durante l'esecuzione degli script dal pacchetto “fpc-3.0.4-macos-x86_64-laz.pkg.”" UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/massimo/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg, PKInstallPackageIdentifier=org.freepascal.pkg.fpc-macos-x86-64-laz, NSLocalizedDescription=Si è verificato un errore durante l'esecuzione degli script dal pacchetto “fpc-3.0.4-macos-x86_64-laz.pkg.”}
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: Removing client PKInstallDaemonClient pid=80755, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2019-11-25 20:26:31+01 Mac-mini installd[572]: PackageKit: Done with sandbox removals
2019-11-25 20:26:32+01 Mac-mini Installer[80755]: Install failed: Installer ha incontrato un errore che ha impedito l'installazione. Contatta il produttore del software per ottenere assistenza.
... The error it raises should be Failed to execute "ppcx64".
I've ppcx64 in /lib/fpc/3.0.4/ppcx64 and I've added the link in /usr/local/bin/ppcx64, but this doesn't fix the problem.
massimo@Mac-mini 3.0.4 % ./ppcx64
Free Pascal Compiler version 3.0.4 [2019/11/01] for x86_64
./ppcx64 [options] <inputfile> [options]
[etc]
massimo@Mac-mini Lazarus % make LCL_PLATFORM=cocoa CPU_TARGET=x86_64 bigide
Makefile:214: *** The Makefile doesn't support target x86_64-executed,, please run fpcmake first. Stop.
massimo@Mac-mini Lazarus % fpcmake
Processing Makefile.fpc
Error: Target "darwin", package "rtl" not found
export FPCDIR=/usr/local/lib/fpc/3.0.4
then the error comes to bemassimo@Mac-mini 3.0.4 % fpcmake
Processing Makefile.fpc
x86_64-darwin requires:
Writing Makefile
Error: Unable to create file "Makefile"
The same happens to me:Code: [Select]massimo@Mac-mini 3.0.4 % ./ppcx64
Free Pascal Compiler version 3.0.4 [2019/11/01] for x86_64
./ppcx64 [options] <inputfile> [options]
[etc]
Good point. :) No, I cannot execute ppcx64 from any directory. How can I insert its path in macOS default directories so that I can run it from everywhere?
massimo@Mac-mini Lazarus % make LCL_PLATFORM=cocoa CPU_TARGET=x86_64 bigide
raises the error/Applications/Xcode.app/Contents/Developer/usr/bin/make -C packager/registration
/bin/rm -f ../units/x86_64-darwin/fcllaz.ppu
/usr/local/lib/fpc/3.0.4/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -gw -Fu. -Fu/usr/local/lib/fpc/3.0.4/units/x86_64-darwin/rtl -FE. -FU../units/x86_64-darwin -dx86_64 fcllaz.pas
Hint: (11030) Start of reading config file /etc/fpc.cfg
Note: (11005) No option inside /etc/fpc.cfg config file
Free Pascal Compiler version 3.0.4 [2019/11/01] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Darwin for x86_64
(3104) Compiling fcllaz.pas
/Library/Lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit db used by fcllaz
Fatal: (1018) Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make: *** [registration] Error 2
OK, I added the path with nano /etc/paths, and even env shows it. Now I can run ppcx64 from anywhere The error on fpcmake is the same, while trying to recompile Lazarus, with or wihthout sudo, usingCode: [Select]massimo@Mac-mini Lazarus % make LCL_PLATFORM=cocoa CPU_TARGET=x86_64 bigide
Fatal: Impossible to find FPimage used by InterfaceBase of package LCLBase.
A hint in the message windows says that the compiler cannot find the .ppu files of the unites, but those files are properly installed in /usr/local/lib/fpc/3.0.4/units/x86_64-darwin
and the path of the fpc source is correctely set as/usr/local/lib/fpc/3.0.4
Of course I installed the same packages, many times, but when I start Lazarus the compiler raises the error
This mailing list post may help you (fixed version of the macOS 64bit fpc installer):Actually this version of fps works smoothly on my macOS Catalina, and Lazarus as well! Thanks to everybody for your great support!