From owner-freebsd-current@FreeBSD.ORG Tue Oct 21 05:46:29 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D205B1065674; Tue, 21 Oct 2008 05:46:29 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id AD8F58FC1A; Tue, 21 Oct 2008 05:46:29 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.3/8.14.3) with ESMTP id m9L5kPx8067040; Mon, 20 Oct 2008 22:46:25 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.3/8.14.3/Submit) id m9L5kPsn067039; Mon, 20 Oct 2008 22:46:25 -0700 (PDT) (envelope-from sgk) Date: Mon, 20 Oct 2008 22:46:25 -0700 From: Steve Kargl To: Scot Hetzel Message-ID: <20081021054625.GA66977@troutmask.apl.washington.edu> References: <790a9fff0810130922n7afc10faje3459c09de575be6@mail.gmail.com> <48F4A13D.7080507@FreeBSD.org> <790a9fff0810141202g406d12cftb4f8886d4d8a66e4@mail.gmail.com> <868wso2jmu.fsf@gmail.com> <790a9fff0810202214i26945d7ew861f418e8ecae925@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <790a9fff0810202214i26945d7ew861f418e8ecae925@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: "swell.k@gmail.com" , freebsd-current@freebsd.org, Erik Cederstrand , Pietro Cerutti Subject: Re: cc1plus: internal compiler error: Segmentation fault: 11 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 05:46:29 -0000 On Tue, Oct 21, 2008 at 12:14:56AM -0500, Scot Hetzel wrote: > On 10/16/08, swell.k@gmail.com wrote: > > "Scot Hetzel" writes: > > > > > On 10/14/08, Pietro Cerutti wrote: > > >> > > >> Erik Cederstrand wrote: > > >> | > > >> | Den 13/10/2008 kl. 18.22 skrev Scot Hetzel: > > >> | > > >> |> When I tried rebuilding the audio/pulseaudio port on -CURRENT, it > > >> |> would fail with: > > >> |> [...] > > >> |> cc1: internal compiler error: Segmentation fault: 11 > > >> |> > > >> |> Is anyone able to reproduce these problems? > > >> | > > >> | "Segmentation fault: 11" from GCC is often a sign of bad RAM. Have you > > >> | tried to switch RAM modules? > > >> > > >> I'd try to switch optimizations off before going the hard way :) > > >> > > > It's not a problem with optimizations, as cc -I/nonexistent -lstdc++ > > > -Wmissing-include-dirs test.cpp also results in this error. > > > > > > Try applying this fix: > > svn diff -c134421 svn://gcc.gnu.org/svn/gcc/trunk > > against /usr/src/contrib/gcclibs/libcpp/errors.c > > > With the above patch, cc no longer causes the segmentation fault with > the test program or when building audio/pulseaudio: > > hp010# cc -I/nonexistent -lstdc++ -Wmissing-include-dirs test.cpp > cc1plus: warning: /nonexistent: No such file or directory > Revision 134421 occurs well after GCC moved to GPL3. This patch cannot be applied to src/contrib until some decision has been made whether gcc in the base system can move to GPL3. -- Steve