Recent

Author Topic: MacOS Lazarus Problems - New to Lazarus  (Read 9876 times)

c_knowles4834

  • New Member
  • *
  • Posts: 25
MacOS Lazarus Problems - New to Lazarus
« 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!




trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1681
  • Former Delphi 1-7, 10.2 user
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #1 on: July 30, 2021, 02:02:20 pm »
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?
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

c_knowles4834

  • New Member
  • *
  • Posts: 25
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #2 on: July 30, 2021, 02:16:50 pm »
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.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1681
  • Former Delphi 1-7, 10.2 user
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #3 on: July 30, 2021, 02:37:05 pm »
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:

Code: Pascal  [Select][+][-]
  1. Program test;
  2.  
  3. Begin
  4.   WriteLn('Hello World!');
  5. End.

Compile in a Terminal with:

fpc test.pas

and then execute with:

./test

If that works, then I'd try reinstalling Lazarus.
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 922
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #4 on: July 30, 2021, 11:01:12 pm »
Isn't the issue that you installed FPC 3.2.0 rather than 3.2.2?

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1681
  • Former Delphi 1-7, 10.2 user
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #5 on: July 31, 2021, 12:35:44 am »
@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.
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

c_knowles4834

  • New Member
  • *
  • Posts: 25
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #6 on: July 31, 2021, 05:23:52 am »
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?

dbannon

  • Hero Member
  • *****
  • Posts: 1674
    • tomboy-ng, a rewrite of the classic Tomboy
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #7 on: July 31, 2021, 06:18:37 am »
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
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

dbannon

  • Hero Member
  • *****
  • Posts: 1674
    • tomboy-ng, a rewrite of the classic Tomboy
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #8 on: July 31, 2021, 09:38:32 am »
...
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
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

c_knowles4834

  • New Member
  • *
  • Posts: 25
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #9 on: July 31, 2021, 05:09:20 pm »
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!



c_knowles4834

  • New Member
  • *
  • Posts: 25
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #10 on: July 31, 2021, 11:18:25 pm »
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!

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1681
  • Former Delphi 1-7, 10.2 user
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #11 on: August 01, 2021, 01:23:42 am »
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 ;)
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

dbannon

  • Hero Member
  • *****
  • Posts: 1674
    • tomboy-ng, a rewrite of the classic Tomboy
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #12 on: August 01, 2021, 02:25:05 am »
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
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1681
  • Former Delphi 1-7, 10.2 user
Re: MacOS Lazarus Problems - New to Lazarus
« Reply #13 on: August 01, 2021, 02:58:33 am »
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.
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

 

TinyPortal © 2005-2018