Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Helge Hess
On Mar 14, 2007, at 21:46, Michael Gardner wrote: I'm having problems using "new-style" exceptions with GNUstep on FreeBSD 6.2 (amd64). Does GNUstep support @throw, @catch?? Thanks, Helge -- Helge Hess http://www.helgehess.eu/ ___ Gnustep-dev m

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Sašo Kiselkov
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Helge Hess wrote: > On Mar 14, 2007, at 21:46, Michael Gardner wrote: >> I'm having problems using "new-style" exceptions with GNUstep on >> FreeBSD 6.2 (amd64). > > Does GNUstep support @throw, @catch?? > > Thanks, > Helge Yes, for almost tw

RE: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Nicola Pero
make messages=yes will display exactly the command-line commands used to compile and link; you may want to try it out and compare those with the ones you use yourself ... that might provide some light on what the problem could be. :-) Thanks -Original Message- From: Michael Gardner <[

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Michael Gardner
Thanks for the hint. I played around with my manual compile command, and found that I can duplicate the crashing behavior of the gmake build if I do *either* of the following two things: 1) Omit "-fobjc-exceptions" from the command I gave above: g++41 -I$GNUSTEP_SYSTEM_ROOT/Library/Headers -L$GN

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Andrew Pinski
On 3/14/07, Michael Gardner <[EMAIL PROTECTED]> wrote: Thanks for the hint. I played around with my manual compile command, and found that I can duplicate the crashing behavior of the gmake build if I do *either* of the following two things: 1) Omit "-fobjc-exceptions" from the command I gave ab

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Michael Gardner
On 3/15/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: You still have to compile your program with -fexceptions to get "objc" exceptions working with objective-C. But that doesn't explain (2), where I *do* use -fobjc-exceptions, only with gcc instead of g++, and with a separate linking step inste

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Andrew Pinski
On 3/14/07, Michael Gardner <[EMAIL PROTECTED]> wrote: In any case it wouldn't seem to explain why I don't get the crash if I do the compilation and linking in a single step, or if I use g++ instead of gcc. Are you also linking with -fexceptions. The issue is most likely the shared libgcc is n

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-14 Thread Richard Frith-Macdonald
On 15 Mar 2007, at 06:20, Michael Gardner wrote: On 3/15/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: You still have to compile your program with -fexceptions to get "objc" exceptions working with objective-C. But that doesn't explain (2), where I *do* use -fobjc-exceptions, only with gcc

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Michael Gardner
On 3/15/07, Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: Presumably you failed to use the --enable-native-objc-exceptions when configuring gnustep-make. It's hardly surprising that the wrong flags are being passed to the compiler and the wrong config options being set if the system was not

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Michael Gardner
D'oh! I forgot to attach config.log, after I accidentally reloaded the window in which I was writing the previous email and had to re-type the whole thing. Sorry about the noise. -Michael On 3/15/07, Michael Gardner <[EMAIL PROTECTED]> wrote: On 3/15/07, Richard Frith-Macdonald <[EMAIL PROTECTE

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Richard Frith-Macdonald
On 15 Mar 2007, at 08:37, Michael Gardner wrote: I've got gcc-4.1.3_20070305, also compiled from ports, and it should definitely support native ObjC exceptions (especially since I was able to get them to work with the command in my first email). I've attached gnustep-make's config.log, but I f

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Nicola Pero
>> You still have to compile your program with -fexceptions to get "objc" >> exceptions working with objective-C. > > But that doesn't explain (2), where I *do* use -fobjc-exceptions, only > with gcc instead of g++, and with a separate linking step instead of > all-at-once. I believe that Andrew

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Nicola Pero
> Andrew -- do we need to add -fexceptions on all platforms or only on some ? Well, I added it to all platforms on gnustep-make trunk. :-) If anyone has got a FreeBSD (or any other non-GNU/Linux platform) and is around to help a little, you could try gnustep-make from trunk, using ./configure

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Michael Gardner
On 3/15/07, Nicola Pero <[EMAIL PROTECTED]> wrote: I believe that Andrew is suggesting trying -fobjc-exceptions -fexceptions both when compiling and linking. Can you try it out ? Ah, I misread; sorry about that. I just tried that suggestion: gcc41 -c -fobjc-exceptions -fexceptions -I$GNUST

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Andrew Pinski
On 3/15/07, Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: I thought that compiling with '-x objective-c' was supposed to have the same effect as compiling a file with a .m extension too. If that understanding is correct, I don't see how the behavior you are seeing could be anything other tha

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Michael Gardner
On 3/15/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: On 3/15/07, Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: > I thought that compiling with '-x objective-c' was supposed to have > the same effect as compiling a file with a .m extension too. > If that understanding is correct, I don't see

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Andrew Pinski
On 3/15/07, Michael Gardner <[EMAIL PROTECTED]> wrote: On 3/15/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: > On 3/15/07, Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: > > I thought that compiling with '-x objective-c' was supposed to have > > the same effect as compiling a file with a .m ex

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-15 Thread Michael Gardner
On 3/15/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: On 3/15/07, Michael Gardner <[EMAIL PROTECTED]> wrote: > That bug's description doesn't seem to match the symptoms I'm seeing, > and it's reported against gcc 4.3 rather than 4.1. For one, it is the same symptom, in that we are not linking aga

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-17 Thread Nicola Pero
ev@gnu.org Subject: Re: Crash with new-style exceptions on FreeBSD amd64 On 3/15/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: > On 3/15/07, Michael Gardner <[EMAIL PROTECTED]> wrote: > > That bug's description doesn't seem to match the symptoms I'm seeing, >

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-19 Thread Michael Gardner
Thanks to everybody for your help. On 3/17/07, Nicola Pero <[EMAIL PROTECTED]> wrote: That's brilliant ... I added --shared-libgcc (on all platforms) to the linking stage when native ObjC exceptions are enabled. :-) Hopefully that fixes it ... Michael, any chances you could try it out with gnus

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-19 Thread Andrew Pinski
On 3/19/07, Michael Gardner <[EMAIL PROTECTED]> wrote: Also, regarding the problem configuring gnustep-make with --enable-native-objc-exceptions: I emailed the port's maintainer, and he mentioned that he got the same result on his FreeBSD system. It looks like a gcc bug to me, but can anyone conf

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-19 Thread Nicola Pero
>> That's brilliant ... I added --shared-libgcc (on all platforms) to the >> linking stage when native ObjC exceptions are enabled. :-) >> >> Hopefully that fixes it ... Michael, any chances you could try it out with >> gnustep-make from trunk to see if it's fixed now ? :-) > > That might be diffi

Re: Crash with new-style exceptions on FreeBSD amd64

2007-03-19 Thread Michael Gardner
Thanks for the tips. I just installed GNUstep from trunk, and can confirm that the problem is fixed. :) -Michael On 3/19/07, Nicola Pero <[EMAIL PROTECTED]> wrote: >> That's brilliant ... I added --shared-libgcc (on all platforms) to the >> linking stage when native ObjC exceptions are enabled