Recent

Author Topic: compiler hangs  (Read 30940 times)

RxRick

  • New Member
  • *
  • Posts: 23
compiler hangs
« on: July 01, 2010, 06:57:18 am »
Lazarus 0.9.29
FPC 2.40
SVN: 25928M
Mac OS X 10.6.3

i'm new to mac os, likely doing something fundamentally wrong. i click build or run, and lazarus hangs up with the spinning wheel cursor. i have to force quit (nonresponding).

i may have installed it incorrectly?
lazarus installed here:
Macintosh HD->Developer->lazarus
fpc installed here:
Macintosh HD->Developer->freepascal

or options are incorrect?
lazarus directory:
/Developer/lazarus/
Compiler path:
/Developer/freepascal/fpc/compiler/ppc386
FPC source directory:
/Developer/freepascal/fpc/
Make path
(blank)
Directory for building test projects:
/tmp/
Compiler messages language file:
(blank)

please help, i'm at my wit's end. thank you

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: compiler hangs
« Reply #1 on: July 01, 2010, 11:10:57 pm »
try to disable the debugger.
It might be possible that Lazarus hangs on the debugger start.

Environment->Debugger-> select "(none)"

Also, try to build the project and run the application from the Finder.

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #2 on: July 02, 2010, 03:34:38 pm »
thanks for the reply.

it hangs on build or run.

i originally had debugger off. thinking that was the problem, i turned it on. no difference, it hangs regardless.

no error messages, just sits there with the busy cursor spinning until i force quit. thinking i was impatient, i've let it set for hours.

it doesn't matter what project, a simple 'hello word', or one of the examples, or a working project i've brought over from windows.

lazarus does create a file, but when i click mac says "you can't open the application because it may be damaged or incomplete"

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: compiler hangs
« Reply #3 on: July 02, 2010, 03:48:45 pm »
can you compile:
Code: [Select]
begin
  writeln('hello world');
end.

from command line:
Code: [Select]
  fpc test.pas

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #4 on: July 02, 2010, 04:32:44 pm »
thanks again.

wow, it's been years since i used vi. can't say i've missed it.

anyway, created the file 'test.pas' in the /Developer/freepascal/fpc/compiler folder.

and yes, it compiled, and yes it runs correctly.

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #5 on: July 02, 2010, 04:36:48 pm »
in terminal it says compiled with fpc version 2.5.1, which is different than what lazarus thinks it has (it says fpc 2.4.0 in the lazarus about box). could that be the problem? i'm so confused at this point.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: compiler hangs
« Reply #6 on: July 02, 2010, 05:41:12 pm »
in terminal it says compiled with fpc version 2.5.1, which is different than what lazarus thinks it has (it says fpc 2.4.0 in the lazarus about box). could that be the problem? i'm so confused at this point.
About box contains the version of the compiler Lazarus has been built with.

It's still hard to say what's wrong with you installation. Could you run the Lazarus from the command line and paste the output here.

To run lazarus, execute following lines in Terminal:
Code: [Select]
cd /Developer/lazarus/lazarus.app/Contents/MacOS
./lazarus

The lazarus should start. Create a new Application project, Save it somewhere on the disk and run.

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #7 on: July 02, 2010, 09:16:15 pm »
thanks for the reply.

below is everything in Terminal from when i started lazarus, until it hangs up.

-------------

./lazarus
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/Users/rxrick/.lazarus"
  SecondaryConfigPath="/etc/lazarus"
TMainIDE.DoNewProject A
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585
TMainIDE.DoNewProject A
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585
AddComponent TButton Parent=Form1:TForm1 81,78,0,0
Parent is 'Form1:TForm1'
TMainIDE.OnPropHookPersistentAdded A Button1:TButton
TPkgManager.AddUnitDependenciesForComponentClasses Extending Uses unit1.pas StdCtrls
[TEventsCodeTool.CompleteComponent]  CurComponent=Button1:TButton
TCarbonWidgetSet.GetFocus Error: GetKeyboardFocus  failed with result -30586
TCarbonBitBtn.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonBitBtn.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonBitBtn.SetFocus Error: SetKeyboardFocus  failed with result -30585
TMainIDE.DoRenameUnit unit1.pas NewUnitName=unit1 OldUnitName=Unit1 ResourceCode=False NewFilename="/Users/rxrick/Documents/unit1.pas"
TProject.DoLoadStateFile Statefile not found: /Users/rxrick/Documents/project1.compiled
TMainIDE.CheckIfPackageNeedsCompilation  No state file for Project
TCompiler.Compile WorkingDir="/Users/rxrick/Documents/" CompilerFilename="/Developer/freepascal/fpc/compiler/ppc386" CompilerParams=" -MObjFPC -Scgi -O1 -Xs  -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file' -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' -vewnhi -l -Fi/Users/rxrick/Documents/ -Fu/Developer/lazarus/lcl/units/i386-darwin/ -Fu/Developer/lazarus/lcl/units/i386-darwin/carbon/ -Fu/Developer/lazarus/packager/units/i386-darwin/ -Fu/Users/rxrick/Documents/ -Fu. -FE/Users/rxrick/Documents/ -oproject1 -dLCL -dLCLcarbon project1.lpr"
« Last Edit: July 02, 2010, 09:31:29 pm by RxRick »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: compiler hangs
« Reply #8 on: July 02, 2010, 10:15:21 pm »
hmm... everything seems to be in order.

I'm afraid I've nothing else to suggest but to try the latest Snapshot, your's is a bit out of date.

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #9 on: July 02, 2010, 11:00:57 pm »
thanks, i appreciate your efforts to help.

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #10 on: July 02, 2010, 11:22:05 pm »
okay, so I:
svn up
make clean all

it doesn't hang! but I get fatal error:
Can't find unit Interface

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #11 on: July 03, 2010, 12:01:10 am »
okay, if i start lazarus from a terminal, it works.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: compiler hangs
« Reply #12 on: July 03, 2010, 08:32:32 am »
it doesn't hang! but I get fatal error:
Can't find unit Interface
where is svn lazarus directory? Is it /Developer/lazarus?

It seems that you have 2 different Lazarus installations. One if from .dmg file and another is from SVN repo.

RxRick

  • New Member
  • *
  • Posts: 23
Re: compiler hangs
« Reply #13 on: July 03, 2010, 03:16:49 pm »
yes, i believe that is likely what happened. as i said in my first post, i am new to mac os, so i must be doing something fundamentally wrong. i originally downloaded the dmg files, couldn't get anything to work, couldn't even figure out where lazarus/fpc were installed. so i used the manual method described in the faq's. there are probably two versions of fpc on here somewhere also. to remove them i'm guessing i need to open a terminal window and navigate to some folders that are hidden from the finder gui?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: compiler hangs
« Reply #14 on: July 03, 2010, 03:30:09 pm »
You don't need to uninstall anything yet.

Where's your SVN lazarus located? what dir?

 

TinyPortal © 2005-2018