Lazarus
Installation => macOS / Mac OS X => Topic started by: c_knowles4834 on July 30, 2021, 01:53:14 pm
-
Hello all,
I was wondering if anyone has run into this issue that I am facing at the moment. I keep getting this error message when trying to run simple 'HelloWorld' programs or any programs at all:
Compile package LCL 2.2.0.1: Exit code 1, Errors: 1
lcltype.pp(18,42) Fatal: Invalid PPU-File entry: 87
Being so new to Lazarus and programming in object pascal, I really have no idea how to solve this problem. Any help would be appreciated very much.
Just FYI, I just downloaded Lazarus with the files below and barely got through the configuration process:
Lazarus 2.2.0RC1-x86_64-macosx.pkg
fpc-src-3.2.0.2-laz.pkg
fpc-3.2.0.intel-mcosx.dmg
(Xcode command-line tools were also installed.)
Thanks!
-
First off, you're installing a pre-release version (Lazarus 2.2. Release Candidate 1) which has a few bugs.
However, it does successfully install on both Intel and aarch64 Macs (I've trested it on Big Sur on both architectures).
1. What version of macOS are you using?
2. What architecture? Intel or aarch64 (M1) ?
3. Did you install the Xcode command line tools first?
4. Did you install FPC and its source before Lazarus?
-
1. What version of macOS are you using?
Big Sur 11.5
2. What architecture? Intel or aarch64 (M1) ?
I believe Intel and I am assuming you are asking about my CPU. However, I am not sure what you mean by architecture. Where would I go to find that information?
3. Did you install the Xcode command line tools first?
Yes, I followed the instructions on the wiki for the MacOS download.
4. Did you install FPC and its source before Lazarus?
Yes, I made sure to install all the needed files in their designated order.
-
Architecture: Intel or Apple Silicon M1 (aarch64).
If you followed the Wiki instructions that's really inexplicable because I have installed the same release candidate on Big Sur successfully on both a 2018 Intel Mac mini and a 2020 M1 Mac mini.
I'm not really sure what to suggest...
Can you successfully compile a trivial free pascal program? For example test.pas containing just:
Program test;
Begin
WriteLn('Hello World!');
End.
Compile in a Terminal with:
fpc test.pas
and then execute with:
./test
If that works, then I'd try reinstalling Lazarus.
-
Isn't the issue that you installed FPC 3.2.0 rather than 3.2.2?
-
@Jonas: Mattias fixed the FPC 3.2.0/3.2.2 issue and replaced the FPC files on Sourceforge on July 26 with the fixed versions.
-
It won't compile even that simple program you suggested @trev. I tried compiling it in Lazarus and I received the same error message about the LCL.
By the way, when you suggest using a terminal, are you talking about the terminal that I can find in my Utilities folder in applications or the Lazarus terminal?
If not could you please explain further?
I apologize for my ignorance, I am not the most tech-savvy individual.
By the way, on my configure window, when opening Lazarus, I did not configure the fppkg file and just left it as is. I did not notice anything in the installation wiki that talked about what to do with it. Could this be causing the issue?
-
C_K, trev means the Mac's own terminal, not involving Lazarus at all. Lazarus and FPC are two different products, if FPC is not working, there is no way that Lazarus is.
> It won't compile even that simple program you suggested
Can you please tell us the error message you got when tried the compile Trev suggested ? You may need to type it into this window, word for word, carefully please.
Davo
-
...
By the way, on my configure window, when opening Lazarus, I did not configure the fppkg file and just left it as is. I did not notice anything in the installation wiki that talked about what to do with it. Could this be causing the issue?
Hmm, I did not read your last line before my previous answer. Are you saying that when you first started Lazarus up, and the dialog that steps through four or five tests (such as make, fpc, fpc source etc) gave you a warning about fppkg ? If so, them it is probable your FPC install is incomplete. A good, package based install should not leave fppkg unconfigured. I doubt that your problem is fppkg itself, its just that if fppkg is not setup, them the FPC install itself failed some how.
Davo
-
Alright, so I tried to compile test.pas in the terminal and it returned this message:
fpc test.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 test.pas
Fatal: Cannot open file "test.pas"
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
Not really sure where the problem is; nor am I sure that I ran the test correctly in the terminal.
I have attached a screenshot of the configuration page with the ffpkg selected for your information @dbannon.
I appreciate the help fellas!
-
Fellas,
I'm just going to go ahead and uninstall Lazarus and fpc so I can reinstall it again. I'll keep you all updated with any problems.
Cheers!
-
If you still have problems with a fresh installation, please start a new thread.
We were half way down the rabbit hole when you called in the exterminators ;)
-
Trev, should the OP be using https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.2.2/fpc-3.2.2.intelarm64-macosx.dmg/download - the FPC 3.2.2 version rather than 3.2.0 ??
Davo
-
No - the Lazarus 2.2 RC1 distribution files are now correct (the old ones even worked if you renamed/changed the directory so Lazarus could find them).
I've installed them successfully on both Intel and aarch64 macOS Mac minis.