From owner-freebsd-eclipse@FreeBSD.ORG Fri Sep 2 09:50:26 2005 Return-Path: X-Original-To: freebsd-eclipse@hub.freebsd.org Delivered-To: freebsd-eclipse@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A7EC16A41F for ; Fri, 2 Sep 2005 09:50:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAC1243D4C for ; Fri, 2 Sep 2005 09:50:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j829oPBP092768 for ; Fri, 2 Sep 2005 09:50:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j829oPfF092767; Fri, 2 Sep 2005 09:50:25 GMT (envelope-from gnats) Date: Fri, 2 Sep 2005 09:50:25 GMT Message-Id: <200509020950.j829oPfF092767@freefall.freebsd.org> To: freebsd-eclipse@FreeBSD.org From: Panagiotis Astithas Cc: Subject: Re: ports/72014: Eclipse doesn't work (SigBus 10) if it has been built with GTK X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Panagiotis Astithas List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 09:50:26 -0000 The following reply was made to PR ports/72014; it has been noted by GNATS. From: Panagiotis Astithas To: gnome@freebsd.org Cc: Daniel Roethlisberger , bug-followup@freebsd.org, nlsn@free.fr, Oleg Sharoiko Subject: Re: ports/72014: Eclipse doesn't work (SigBus 10) if it has been built with GTK Date: Fri, 02 Sep 2005 12:40:15 +0300 I'm forwarding this to the people who are responsible for this. Daniel Roethlisberger wrote: > I have just double checked on my pentium-m box, I can confirm that > adding -mno-sse2 does solve the problem for me (at least as far as I can > tell, as there is no definitive way to reproduce the problem). > > Compiling x11-toolkits/gtk20 with CPUTYPE?=pentium-m and CFLAGS=-O -pipe > results in an unstable eclipse, while compiling gtk20 with the same > CPUTYPE but CFLAGS=-O -pipe -mno-sse2 saves the day, giving me a stable > eclipse. > > Can we add some kind of -mno-sse2 hack to the GTK port for the time > being, or is there a better solution? Some background: In PR ports/72014 it was reported a long time ago that eclipse/gtk crashes and this was tracked down to non-standard compiler optimizations when building gtk. There have been similar bug reports filed against the eclipse and gcc bug databases. Some gcc people have tracked it down to incorrect stack alignment (see ports/72014 for the pointers) and have received reports that using -mno-sse2 fixed it. Daniel has verified that this seems to help our case also. Therefore the question is, should we force -mno-sse2 to the compiler flags for the gtk ports? I would expect less bug reports from people who compile gtk apps with non-standard CFLAGS, at least. Cheers, Panagiotis