Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2002 00:00:45 -0700
From:      "Crist J. Clark" <crist.clark@attbi.com>
To:        Alexander Kabaev <ak03@gte.com>
Cc:        bloom@acm.org, keramida@ceid.upatras.gr, current@FreeBSD.ORG
Subject:   Re: Trouble Building CURRENT on STABLE, cpp seg. fault
Message-ID:  <20020924070045.GA44674@blossom.cjclark.org>
In-Reply-To: <20020923155946.5ff13436.ak03@gte.com>
References:  <20020922065306.GB36099@blossom.cjclark.org> <20020922114454.GB8150@hades.hell.gr> <3D8E5680.BCC442F5@acm.org> <20020922230956.50aa3ba9.kabaev@bellatlantic.net> <20020923195549.GB42004@blossom.cjclark.org> <20020923155946.5ff13436.ak03@gte.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 23, 2002 at 03:59:46PM -0400, Alexander Kabaev wrote:
> On Mon, 23 Sep 2002 12:55:49 -0700
> "Crist J. Clark" <crist.clark@attbi.com> wrote:
> 
> > It seems to have worked. Thanks.
> 
> Sorry for inconvenience, but could you please check that you got the
> latest version of the patch. Both versions will fix the bug, but the
> version I copied on freefall several hours ago appears to be more
> correct.

Not too sure about that. Now I'm getting SIGSEGV again,

  make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES -V GEN_M_CFILES |  MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O -pipe -march=pentium3 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I-  -I. -I/usr/src.CURRENT/sys -I/usr/src.CURRENT/sys/dev -I/usr/src.CURRENT/sys/contrib/dev/acpica -I/usr/src.CURRENT/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common  -mpreferred-stack-boundary=2 -ffreestanding
  cc: Internal error: Segmentation fault (program cpp0)
 Please submit a full bug report.
  See <URL:http://www.gnu.org/software/gcc/bugs.html>; for instructions.
  mkdep: compile failed
  *** Error code 1

  Stop in /home/cjc/obj/usr/src.CURRENT/sys/GOKU.
  *** Error code 1

  Stop in /home/cjc/obj/usr/src.CURRENT/sys/GOKU.
  *** Error code 1

  Stop in /usr/src.CURRENT.
  *** Error code 1

  Stop in /usr/src.CURRENT.

And I had this patch,

  $ cvs diff cppmacro.c
  Index: cppmacro.c
  ===================================================================
  RCS file: /export/freebsd/ncvs/src/contrib/gcc/cppmacro.c,v
  retrieving revision 1.1.1.4
  diff -u -r1.1.1.4 cppmacro.c
  --- cppmacro.c  1 Sep 2002 20:37:29 -0000       1.1.1.4
  +++ cppmacro.c  23 Sep 2002 20:39:38 -0000
  @@ -349,6 +349,8 @@
 
     /* Commit the memory, including NUL, and return the token.  */
     len = dest - BUFF_FRONT (pfile->u_buff);
  +  if ((size_t) (BUFF_LIMIT (pfile->u_buff) - dest) < 1)
  +    _cpp_extend_buff (pfile, &pfile->u_buff, 1);
     BUFF_FRONT (pfile->u_buff) = dest + 1;
     return new_string_token (pfile, dest - len, len);
   }

For the buildworld and buildkernel.
-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020924070045.GA44674>