Re: cc1plus: internal compiler error: Segmentation fault: 11

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Mon, 20 Oct 2008 22:46:25 -0700
On Tue, Oct 21, 2008 at 12:14:56AM -0500, Scot Hetzel wrote:
> On 10/16/08, swell.k_at_gmail.com <swell.k_at_gmail.com> wrote:
> > "Scot Hetzel" <swhetzel_at_gmail.com> writes:
> >
> > > On 10/14/08, Pietro Cerutti <gahr_at_freebsd.org> 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
Received on Tue Oct 21 2008 - 03:46:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC