gnu.gnustep.discuss
  Home FAQ Contact Sign in
gnu.gnustep.discuss only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
gnu.gnustep.discuss Profile…
RELATED GROUPS

POPULAR GROUPS

 Up
  Re: [Emacs.app dev]: Problems compiling Emacs.app with GNUstep         


Author: Charles philip Chan
Date: Jul 16, 2008 07:48

Adrian Robert gmail.com> writes:

Hello Adrian:
> This line is just:
>
> return [NSAutoreleasePool alloc] init];

I know. I wasn't too sure why such a basic call failed.
> Error for such a basic call points to a problem with init sequence
> (main() wizardry) or compile/link flags. When I was working on
> Emacs.app and GNUstep the hardest part was getting the compile and
> link lines to look like what happens when you invoke gnustep-make
> (which can't be used for emacs due to its own big build system).
> ...

Thanks for the info- I will do more debugging.

Charles

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Show full article (0.80Kb)
no comments
  Re: [Emacs.app dev]: Problems compiling Emacs.app with GNUstep         


Author: Adrian Robert
Date: Jul 16, 2008 07:24

On Jul 16, 2008, at 10:07 AM, Charles philip Chan wrote:
>
> On 16 Jul 2008, at 12:54, Charles philip Chan wrote:
>>
>> ...
>> #12 0xb6e1a92a in ffi_closure_SYSV () from /usr/local/lib/libffi.so.5
>> #13 0x0827a831 in ns_alloc_autorelease_pool () at nsterm.m:519
>> #14 0x08169dd7 in main (argc=15, argv=0xbf8be384) at emacs.c:1419
>
> So now you know where the problem occurs ... line 519 of nsterm.m ...
> maybe that's some help.

This line is just:

return [NSAutoreleasePool alloc] init];

Error for such a basic call points to a problem with init sequence
(main() wizardry) or compile/link flags. When I was working on
Emacs.app and GNUstep the hardest part was getting the compile and
link lines to look like what happens when you invoke gnustep-make
(which can't be used for emacs due to its own big build system).
Show full article (1.60Kb)
no comments
  Re: [Emacs.app dev]: Problems compiling Emacs.app with GNUstep         


Author: Charles philip Chan
Date: Jul 16, 2008 07:17

Richard Frith-Macdonald tiptree.demon.co.uk> writes:
> I suppose so ... the rationale for preferring ffcall was that it
> worked on more platforms, but with the latest releases of GNUstep-base
> I believe this is no longer the case.

Thanks fo the info and all the help. Have a nice vacation. ;-)

Charles

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFIfgMG3epPyyKbwPYRAgeKAKDW0AYevNYsOfmlnE9iUihmxGbdsQCeLXWQ
dTQxDX5/nb7SXQZPGNKOeJc=
=17XW
-----END PGP SIGNATURE-----
no comments
  Re: [Emacs.app dev]: Problems compiling Emacs.app with GNUstep         


Author: Richard Frith-Macdonald
Date: Jul 16, 2008 06:00

On 16 Jul 2008, at 12:54, Charles philip Chan wrote:
>
> #8 0xb7752980 in -[NSObject doesNotRecognizeSelector:]
> (self=0xb7ae20e0, _cmd=0xb7b0bae8,
> aSelector=0x8409570) at NSObject.m:1705
> #9 0xb7752b5c in -[NSObject forwardInvocation:] (self=0xb7ae20e0,
> _cmd=0x8465b58,
> anInvocation=0x853b4c8) at NSObject.m:1733
> #10 0xb7808866 in GSFFIInvocationCallback (cif=0x8544900,
> retp=0xbf8bdf20, args=0xbf8bded0,
> user=0x8544900) at GSFFIInvocation.m:547
> #11 0xb6e1a5da in ffi_closure_SYSV_inner (closure=0xb755c000,
> respp=0xbf8bdf2c, args=0xbf8bdf40)
> at src/x86/ffi.c:267
> #12 0xb6e1a92a in ffi_closure_SYSV () from /usr/local/lib/libffi.so.5
> #13 0x0827a831 in ns_alloc_autorelease_pool () at nsterm.m:519
> #14 0x08169dd7 in main (argc=15, argv=0xbf8be384) at emacs...
Show full article (1.63Kb)
no comments
  Re: [Emacs.app dev]: Problems compiling Emacs.app with GNUstep         


Author: Charles philip Chan
Date: Jul 16, 2008 04:54

> To get round this, you could try getting the latest release of
> gnustep- base, and building it with libffi rather than ffcall (libffi
> also modifies the stack, but in such a way that a stacktrace continues
> to work).

Interesting. Is libffi the preferred library now? If so, this page
should be changed:

http://wwwmain.gnustep.org/resources/downloads.php?site=ftp%%3A%%2F%%2Fftp.gnustep...#pre

Thanks.

Charles

Richard Frith-Macdonald tiptree.demon.co.uk> writes:

Hello Richard:
> Your application has reached the point of being terminated by an
> uncaught exception handler ... that means that it will have printed
> out the details of the exception to stderr, so you should be able to
> look at that and perhaps get a bit more information.

,----[ stderr ]
| 2008-07-16 06:36:33.353 bootstrap-emacs[6601] autorelease called without pool for object (8504ac8) of class NSMethodSignature in thread
| 2008-07-16 06:36:33.363...
Show full article (2.63Kb)
no comments