Recent

Author Topic: FPC Problem Installing MacOs Mojave 10.14.6  (Read 4341 times)

aconforti

  • Newbie
  • Posts: 2
FPC Problem Installing MacOs Mojave 10.14.6
« on: August 09, 2021, 03:59:44 pm »
Hello all,

Im new in Lazarus and im trying to install FPC 3.2.2.intelarm64-macosx but having the same problem over and over.

The instalation gets stuck when "running package scripts".

I have a MacOs Mojave 10.14.6.

This is what i have already done

1 - Install Xcode 11.3.1.

2 - Install and accept licence command line tool.
sudo xcode-select --install
sudo xcodebuild -license accept

3 - Install Macports

4 - Install gbd.
sudo port install gdb

5 - add <string>-sp</string> to /System/Library/LaunchDaemons/com.apple.taskgated.plist

6 - Download fpc-3.2.2.intelarm64-macosx from https://sourceforge.net/

and here is where im stuck...  tried also with 3.2.0 with the same problem

Wish u can help me.

Thanks all!



I already Solve it Thanks anyway!
« Last Edit: August 09, 2021, 05:21:23 pm by aconforti »

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 922
Re: FPC Problem Installing MacOs Mojave 10.14.6
« Reply #1 on: August 09, 2021, 06:21:45 pm »
When it's stuck like that, can you go to Window -> Installer Log and then in the window choose "Show all logs"? The only thing that gets executed at the end is samplecfg to generate /etc/fpc.cfg

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1683
  • Former Delphi 1-7, 10.2 user
Re: FPC Problem Installing MacOs Mojave 10.14.6
« Reply #2 on: August 10, 2021, 02:46:11 am »
@aconforti:

1) How did you solve it?

2) Why are you installing gdb? See this Wiki link for configuring the native macOS lldb debugger.

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

aconforti

  • Newbie
  • Posts: 2
Re: FPC Problem Installing MacOs Mojave 10.14.6
« Reply #3 on: August 10, 2021, 03:37:50 pm »
@aconforti:

1) How did you solve it?

I finished installing Lazarus but still having issues with GDB and when trying to BUILD getting some errors with Make

Build IDE: Exit code 2, Errors: 3
Error: gmake[2]: *** [Makefile:4667: lazarus] Error 1
Error: gmake[1]: *** [Makefile:5105: idepkg] Error 2
gmake: *** [Makefile:3736: idepkg] Error 2
Error: Unsupported target architecture -Pi386, invoke the "fpc" compiler driver instead.


Quote
2) Why are you installing gdb? See this Wiki link for configuring the native macOS lldb debugger.

thanks i have already done everything and install LazDebuggerFpLLdb package, but when im trying to run it just start debbuging and stops withous bringin on the terminal  :'(  :'(

Mac is giving me such a headache!

[Edited to fix quotation tags]
« Last Edit: August 11, 2021, 01:13:55 pm by trev »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1683
  • Former Delphi 1-7, 10.2 user
Re: FPC Problem Installing MacOs Mojave 10.14.6
« Reply #4 on: August 11, 2021, 01:29:17 pm »
Quote
I finished installing Lazarus but still having issues with GDB

Stop using gdb and use the native macOS lldb debugger per the link I posted.

Quote
and when trying to BUILD getting some errors with Make

Build IDE: Exit code 2, Errors: 3
Error: gmake[2]: *** [Makefile:4667: lazarus] Error 1
Error: gmake[1]: *** [Makefile:5105: idepkg] Error 2
gmake: *** [Makefile:3736: idepkg] Error 2
Error: Unsupported target architecture -Pi386, invoke the "fpc" compiler driver instead.

The error is pretty explicit. You have set an unsupported target architecture. I have no idea what you have set, but the target architecture should be Darwin.

Quote
install LazDebuggerFpLLdb package, but when im trying to run it just start debbuging and stops withous bringin on the terminal

Lazarus > View > Debug Windows - choose the appropriate window. Make sure you have debug options turned on in Project Options.

If you don't want to use the Lazarus IDE debug windows, you can start your executable  directly with the debugger:

 lldb ./myapp.app/Contents/MacOS/myapp
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

PascalDragon

  • Hero Member
  • *****
  • Posts: 3515
  • Compiler Developer
Re: FPC Problem Installing MacOs Mojave 10.14.6
« Reply #5 on: August 11, 2021, 01:32:58 pm »
The error is pretty explicit. You have set an unsupported target architecture. I have no idea what you have set, but the target architecture should be Darwin.

As target architecture it should be x86_64, not Darwin. ;) The target OS should be Darwin however.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1683
  • Former Delphi 1-7, 10.2 user
Re: FPC Problem Installing MacOs Mojave 10.14.6
« Reply #6 on: August 12, 2021, 03:19:07 am »
The error is pretty explicit. You have set an unsupported target architecture. I have no idea what you have set, but the target architecture should be Darwin.

As target architecture it should be x86_64, not Darwin. ;) The target OS should be Darwin however.

Mojave should be able to compile i386 code successfully, so I suspect Darwin was not selected.

So, yes, I should have said target operating system, but I don't think the target architecture should necessarily be x86_64 though that should also work provided Darwin is selected as the target OS.
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