Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

IDE doesn't start after build with lazbuild

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roland Turcan

Hello lazarus project!

When I build lazarus from actual SVN or older using by lazbuild, then lazarus doesn't start. When I try to build it using by "make clean all", then IDE starts and I checked if there are any packages which could make a trouble, but there are only default ones. I've tried to delete all ~/.lazarus but no difference.

I have tried to get older FPC and older Lazarus (about end of July), but no difference.

I am using MacOS X 10.5 PowerPC.

Reply by email

Roland Turcan
to Mattias Gärtner

<<< 29.8.2008 14:04 - Mattias G?rtner "" >>>
MG> Zitat von Roland Turcan :

> Hello lazarus project! > > When I build lazarus from actual SVN or older using by lazbuild, then > lazarus doesn't start.

MG> Open a terminal and start it there:
MG> cd path/to/lazarus
MG> ./lazarus.app/Contents/MacOS/lazarus

MG> What does it show?

That is the problem, I don't see anything. Computer gets slow and process is loaded. I need to kill it.

Of course, I have checked files in lazarus.app and they are the same as in lazarus' root dir.

> When I try to build it using by "make clean > all", then IDE starts and I checked if there are any packages which > could make a trouble, but there are only default ones. > I've tried to delete all ~/.lazarus but no difference.

MG> Have you updated lazbuild?

MG> make lazbuilder

I did build many times with "make clean all" and explicitly "make lazbuild".

I really have big headache from MacOS' version of FPC/Lazarus. I cannot get rid of problems around porting to Mac.

Could you tell me, what I have to delete from MacOS 10.5 to clean Lazarus/FPC out of computer completely, no settings, no units, no symlinks, no executable and I will try to install all again. I really think, that I did something wrong and that's the reason from these troubles.

AFAYR, I didn't solve my problem with exception in FPC and I tried to send two emails to Florian Kaempfl directly, but I got no answer from him. I wanted to continue with porting to Mac, but...

> I have tried to get older FPC and older Lazarus (about end of July), > but no difference. > > I am using MacOS X 10.5 PowerPC.

MG> Mattias

Thanks in advance.

Reply by email

Mattias Gaertner
to Roland Turcan
Show quoted text 16 lines
<<< 29.8.2008 14:04 - Mattias G?rtner "" >>> MG> Zitat von Roland Turcan : >> Hello lazarus project! >> >> When I build lazarus from actual SVN or older using by lazbuild, >> then lazarus doesn't start. MG> Open a terminal and start it there: MG> cd path/to/lazarus MG> ./lazarus.app/Contents/MacOS/lazarus MG> What does it show? That is the problem, I don't see anything. Computer gets slow and process is loaded. I need to kill it.

Can you start it in gdb and create a backtrace to find out, what takes so long?

Show quoted text 14 lines
Of course, I have checked files in lazarus.app and they are the same as in lazarus' root dir. >> When I try to build it using by "make clean >> all", then IDE starts and I checked if there are any packages which >> could make a trouble, but there are only default ones. >> I've tried to delete all ~/.lazarus but no difference. MG> Have you updated lazbuild? MG> make lazbuilder I did build many times with "make clean all" and explicitly "make lazbuild".

It's 'make lazbuilder' not 'make lazbuild'.
It gets confused often. I just added an alias, so that 'make lazbuild' now works too.

Show quoted text 8 lines
I really have big headache from MacOS' version of FPC/Lazarus. I cannot get rid of problems around porting to Mac. Could you tell me, what I have to delete from MacOS 10.5 to clean Lazarus/FPC out of computer completely, no settings, no units, no symlinks, no executable and I will try to install all again. I really think, that I did something wrong and that's the reason from these troubles.

/usr/local/bin/ppc386
/usr/local/bin/fpc
~/.fpc.cfg
/etc/fpc.cfg
/usr/local/lib/fpc
/usr/lib/fpc
~/.lazarus

AFAYR, I didn't solve my problem with exception in FPC and I tried to send two emails to Florian Kaempfl directly, but I got no answer from him. I wanted to continue with porting to Mac, but...

Better ask on a forum or on a mailing list.

Mattias

Reply by email

Roland Turcan
to Mattias Gaertner

Hello Mattias,

Could be, that lazbuilder doesn't produce correct executable, because:

./lazbuild -B --build-ide="-va"

produces executable, which hangs during startup. When I break execution in gdb pressing Ctrl+C, then backtrace contains:

MG> macg4:lazarus test$ gdb lazarus.app/
MG> GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:11:19 UTC 2007) MG> Copyright 2004 Free Software Foundation, Inc.
MG> GDB is free software, covered by the GNU General Public License, and you are MG> welcome to change it and/or distribute copies of it under certain conditions. MG> Type "show copying" to see the conditions.
MG> There is absolutely no warranty for GDB. Type "show warranty" for details. MG> This GDB was configured as "powerpc-apple-darwin"...Reading MG> symbols for shared libraries .......... done
MG>
MG> (gdb) run
MG> Starting program:
MG> /usr/local/share/lazarus/lazarus.app/Contents/MacOS/lazarus MG> Reading symbols for shared libraries +++++++++............ done MG> Reading symbols for shared libraries . done
MG> ^C
MG> Program received signal SIGINT, Interrupt.
MG> 0x917803a8 in poll$UNIX2003 ()
MG> (gdb) bt
MG> #0 0x917803a8 in poll$UNIX2003 ()
MG> #1 0x04d2dfd4 in _XWaitForReadable ()
MG> #2 0x04d2e45c in _XRead ()
MG> #3 0x04d192bc in XOpenDisplay ()
MG> #4 0x04cc2f10 in gdk_init_check ()
MG> #5 0x04e93654 in gtk_init_check ()
MG> #6 0x04e93b4c in gtk_init ()
MG> #7 0x00265b90 in TGTKWIDGETSET__PASSCMDLINEOPTIONS MG> (this=0x528e140) at gtkwidgetset.inc:293
MG> #8 0x002659b4 in TGTKWIDGETSET__CREATE (vmt=0x95a214, MG> this=0x528e140) at gtkwidgetset.inc:213
MG> #9 0x000280f8 in CREATEWIDGETSET (AWIDGETSETCLASS=<incomplete type>) at forms.pp:1593 MG> #10 0x000274a4 in _INTERFACES_init () at interfaces.pp:43 MG> #11 0x000174b4 in fpc_initializeunits ()
MG> #12 0x00001d7c in PASCALMAIN () at lazarus.pp:78 MG> #13 0x00024ee0 in SYSTEM_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR () MG> #14 0x00001d2c in _start ()
MG> #15 0x00001a30 in start ()
MG> (gdb)

./lazbuild -B --build-ide="-va" --ws=carbon

produces working executable, so I can continue in looking for a problem with building lazarus with our package.

TRoland;

<<< 29.8.2008 15:14 - Mattias Gaertner "" >>>
MG> On Fri, 29 Aug 2008 14:24:41 +0200

MG> Roland Turcan wrote 16 lines
> <<< 29.8.2008 14:04 - Mattias G?rtner "" >>> > MG> Zitat von Roland Turcan : > > >> Hello lazarus project! > >> > >> When I build lazarus from actual SVN or older using by lazbuild, > >> then lazarus doesn't start. > > MG> Open a terminal and start it there: > MG> cd path/to/lazarus > MG> ./lazarus.app/Contents/MacOS/lazarus > > MG> What does it show? > > That is the problem, I don't see anything. Computer gets slow and > process is loaded. I need to kill it.

MG> Can you start it in gdb and create a backtrace to find out, what takes MG> so long?

MG>

Show quoted text 14 lines
> Of course, I have checked files in lazarus.app and they are the same > as in lazarus' root dir. > > >> When I try to build it using by "make clean > >> all", then IDE starts and I checked if there are any packages which > >> could make a trouble, but there are only default ones. > >> I've tried to delete all ~/.lazarus but no difference. > > MG> Have you updated lazbuild? > > MG> make lazbuilder > > I did build many times with "make clean all" and explicitly "make > lazbuild".

MG> It's 'make lazbuilder' not 'make lazbuild'.
MG> It gets confused often. I just added an alias, so that 'make lazbuild' MG> now works too.

MG>

Show quoted text 8 lines
> I really have big headache from MacOS' version of FPC/Lazarus. I > cannot get rid of problems around porting to Mac. > > Could you tell me, what I have to delete from MacOS 10.5 to clean > Lazarus/FPC out of computer completely, no settings, no units, no > symlinks, no executable and I will try to install all again. I really > think, that I did something wrong and that's the reason from these > troubles.

MG> /usr/local/bin/ppc386
MG> /usr/local/bin/fpc
MG> ~/.fpc.cfg
MG> /etc/fpc.cfg
MG> /usr/local/lib/fpc
MG> /usr/lib/fpc
MG> ~/.lazarus

MG>

> AFAYR, I didn't solve my problem with exception in FPC and I tried > to send two emails to Florian Kaempfl directly, but I got no answer > from him. I wanted to continue with porting to Mac, but...

MG> Better ask on a forum or on a mailing list.

MG> Mattias

MG> _______________________________________________ MG> Lazarus mailing list
MG>
MG> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Roland Turcan
Show quoted text 12 lines
Hello Mattias, Could be, that lazbuilder doesn't produce correct executable, because: ./lazbuild -B --build-ide="-va" produces executable, which hangs during startup. When I break execution in gdb pressing Ctrl+C, then backtrace contains: MG>[...] MG> #7 0x00265b90 in TGTKWIDGETSET__PASSCMDLINEOPTIONS MG> (this=0x528e140) at gtkwidgetset.inc:293

gtk?
You are either not using the recent 0.9.25 or you have manually built a gtk lazbuild. lazbuild uses as default the widgetset it was build with. A gtk IDE is an X program and must be started with X. See the wiki for more information.

Show quoted text 17 lines
MG> #8 0x002659b4 in TGTKWIDGETSET__CREATE (vmt=0x95a214, MG> this=0x528e140) at gtkwidgetset.inc:213 MG> #9 0x000280f8 in CREATEWIDGETSET (AWIDGETSETCLASS=<incomplete MG> type>) at forms.pp:1593 #10 0x000274a4 in _INTERFACES_init () at MG> type>interfaces.pp:43 MG> #11 0x000174b4 in fpc_initializeunits () MG> #12 0x00001d7c in PASCALMAIN () at lazarus.pp:78 MG> #13 0x00024ee0 in SYSTEM_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR () MG> #14 0x00001d2c in _start () MG> #15 0x00001a30 in start () MG> (gdb) ./lazbuild -B --build-ide="-va" --ws=carbon produces working executable, so I can continue in looking for a problem with building lazarus with our package.

carbon is nowadays the default. You can update your lazbuild with

make lazbuilder

(Make sure you have recent lazarus sources)

Mattias

Reply by email