Recent

Author Topic: mac OS11 installation problems  (Read 1358 times)

LeoBruno

  • Newbie
  • Posts: 4
mac OS11 installation problems
« on: January 23, 2021, 02:50:57 am »
Hi:

I´m a Delphi programmer for a long time and now I´ve decided to give Lazarus a shot, because I got tired of needing windows on VM to use the Delphi IDE.

In other words, I´m a Lazarus newbie, and I´m having a hard time making the ide works.

I´m running mac OS 11 (freshly installed),  fpc-3.2.0.intel-macosx, fpc-src-3.2.0-2-laz, MacPorts-2.6.4_1-11-BigSur, Lazarus-2.0.11-r64280-x86_64-macosx

Here what I´ve done, step by step:

1 - Installed xcode
2 - Installed macports
3 - Created a system certificate
4 - Installed gdb (macport)
5 - Signed gdb with the previously created certificate
6 - Installed homebrew
7 - Installed gdb (homebrew)
8 - Configured tools\options\debugger like image1
9 - Tried to rebuild IDE.

Then I keep getting this...

Build IDE: Exit code 2, Errors: 10
Panic: make: Entering directory `/Applications/Lazarus'
Panic: /Library/Developer/CommandLineTools/usr/bin/make -C ide idepkg
Panic: mkdir: ../units/i386-darwin/cocoa: Permission denied
Panic: make[1]: *** [../units/i386-darwin/cocoa] Error 1
Panic: make: *** [idepkg] Error 2
Panic: make[1]: Entering directory `/Applications/Lazarus/ide'
Panic: /bin/mkdir -p ../units/i386-darwin/cocoa
Panic: make[1]: Leaving directory `/Applications/Lazarus/ide'
Panic: make: Leaving directory `/Applications/Lazarus'
Panic: tool stopped with exit code 2. Use context menu to get more information.

Also, when I first started the IDE I got this message on a dialogbox:

Error in EditorMacroScript
The package EditorMacroScript (pascalscript macros) has detected a problem and was deactivated.
The package failed its selftest with the message: "Failed point param X [Exp: 1001 / Got: -1 / Info: False / SynTxt: ]"


Any help would be much appreciated.


« Last Edit: January 23, 2021, 03:47:21 am by LeoBruno »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2712
    • havefunsoft.com
Re: mac OS11 installation problems
« Reply #1 on: January 23, 2021, 03:36:58 am »
I think the problem is that Lazarus does installs itself into "/Applications" folder.
Which is a protected directory on macOS.
That is likely to be the reason for you to see "Permission denied"...

There was a topic here somewhere when explained the workaround about that...
But you can try something as simple as create a folder in your Home directory. Move Lazarus there and then try to compile again.

Another thing. If you're using macOS 11 you should not even try to compile i386.
Even if you compile anything for 32-bit, the support for running such applications have been removed from the last macOS 10.

LeoBruno

  • Newbie
  • Posts: 4
Re: mac OS11 installation problems
« Reply #2 on: January 23, 2021, 04:25:34 am »
Thank you very much.

I moved the directory to the applications directory inside user folder, and was able to compile the IDE.

I think the problem is that Lazarus does installs itself into "/Applications" folder.
Which is a protected directory on macOS.
That is likely to be the reason for you to see "Permission denied"...

There was a topic here somewhere when explained the workaround about that...
But you can try something as simple as create a folder in your Home directory. Move Lazarus there and then try to compile again.

Another thing. If you're using macOS 11 you should not even try to compile i386.
Even if you compile anything for 32-bit, the support for running such applications have been removed from the last macOS 10.

Unfortunately, I was not able to make the debugger work.

First I get a dialog box with what seems to be some parameters.
I don´t know why it´s popping.

Then I get this:

GDB has encountered an internal error: ...
...
While executing the command:
"TGDBMIDebuggerInstruction: "-file-exec-and-symbols "/Users/myuser/tmp/project1.app/Contents/MacOS/project1"", "
gdb reported:
"&"../../gdb/thread.c:95: internal-error: struct thread_info *inferior_thread(): Assertion `current_thread_ != nullptr' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.""

I´m Lost again ...

 

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1622
  • Former Delphi 1-7, 10.2 user
Re: mac OS11 installation problems
« Reply #3 on: January 23, 2021, 06:49:57 am »
Although you've already installed FPC + Lazarus, you might well benefit from reading the Wiki article Installing Lazarus on macOS especially in relation to setting up the Apple-native debugger.

You may also find the Wiki's Mac Portal helpful.
Lazarus 2.3 + FPC 3.3.1 2021-10-19 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.3 + FPC 3.3.1 2021-09-21 macOS 11.6 aarch64 Xcode 13
Lazarus 2.3 2021-08-11 FPC 3.2.2 FreeBSD 13.0 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

 

TinyPortal © 2005-2018