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 "[EMAIL PROTECTED]" >>> MG> On Fri, 29 Aug 2008 14:24:41 +0200 MG> Roland Turcan <[EMAIL PROTECTED]> wrote: >> <<< 29.8.2008 14:04 - Mattias Gärtner "[EMAIL PROTECTED]" >>> >> MG> Zitat von Roland Turcan <[EMAIL PROTECTED]>: >> >> >> 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> >> 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> >> 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> [email protected] MG> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus -- Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
