Date: Tue, 21 Oct 2008 00:14:56 -0500 From: "Scot Hetzel" <swhetzel@gmail.com> To: "swell.k@gmail.com" <swell.k@gmail.com> Cc: freebsd-current@freebsd.org, Erik Cederstrand <erik@cederstrand.dk>, Pietro Cerutti <gahr@freebsd.org> Subject: Re: cc1plus: internal compiler error: Segmentation fault: 11 Message-ID: <790a9fff0810202214i26945d7ew861f418e8ecae925@mail.gmail.com> In-Reply-To: <868wso2jmu.fsf@gmail.com> References: <790a9fff0810130922n7afc10faje3459c09de575be6@mail.gmail.com> <CE8247B7-9108-445C-AE2E-5A34FB6F5DF1@cederstrand.dk> <48F4A13D.7080507@FreeBSD.org> <790a9fff0810141202g406d12cftb4f8886d4d8a66e4@mail.gmail.com> <868wso2jmu.fsf@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/16/08, swell.k@gmail.com <swell.k@gmail.com> wrote: > "Scot Hetzel" <swhetzel@gmail.com> writes: > > > > On 10/14/08, Pietro Cerutti <gahr@freebsd.org> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA512 > >> > >> 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 Scot
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0810202214i26945d7ew861f418e8ecae925>