Recent

Author Topic: Strange problem on OSX with Lazarus  (Read 3732 times)

MISV

  • Hero Member
  • *****
  • Posts: 790
Strange problem on OSX with Lazarus
« on: January 23, 2015, 03:10:55 am »
(Just cleaned up my forum post with better description! Maybe useful for others searching for a similar problem)


I installed Lazarus 1.2.6
I installed XCode + commandline
I installed Homebrew + GDB
I installed FPC sources
I installed FPC

All default locations... And everything is reported as "OK" in the Lazarus startup-checker.

However... I have this problem when using test project the IDE opens at startup... At first I can successfully do "run - compile" and "run - build"


But then if I:

1)
Choose "Run - Run file", I get this error:
Quote
Can not find FileUtil used by unit1, ppu=/Develeoper*lazarus/components/lazutils/lib/i386-darwin/fileutil.ppu, package LazUtils

However... The file is there!


2)
Choose "Run - Run", I get this error:
Quote
Debugger error

Oops the debugger entered the error state
Save your work now !

...

If I click "More" I get this:

Quote
The GDB command:
-exec-run"
returned the error
",msg="Unable to find Mach task port for process-id 35516: (os/kern) failure (0x5).\n (please check gdb is codesigned


I will return when I have tried to research the codesigning part
« Last Edit: January 24, 2015, 11:15:09 am by MISV »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Did you download FPC separetly? Iirc, lazarus includes fpc. So installing a separate version is causing the conflict.

Hmm... Not sure, if reinstalling lazarus (only!!) would help, but u can give it a try.

MISV

  • Hero Member
  • *****
  • Posts: 790
Re: Strange problem on OSX with Lazarus
« Reply #2 on: January 25, 2015, 09:25:41 am »
Code signing solved it. Sorry for the concusion. For reference:

http://wiki.lazarus.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Strange problem on OSX with Lazarus
« Reply #3 on: January 25, 2015, 10:49:46 am »
Code signing solved it. Sorry for the concusion. For reference:

This is fine. Please mark the topic as [solved].
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

 

TinyPortal © 2005-2018