Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2002 08:12:28 +0900
From:      qhwt@myrealbox.com
To:        current@FreeBSD.ORG
Subject:   Re: Trouble Building CURRENT on STABLE, cpp seg. fault
Message-ID:  <20020922231228.GA1053.qhwt@myrealbox.com>
In-Reply-To: <20020922132223.GA15519.qhwt@myrealbox.com>
References:  <20020922065306.GB36099@blossom.cjclark.org> <20020922114454.GB8150@hades.hell.gr> <20020922132223.GA15519.qhwt@myrealbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 22, 2002 at 10:22:23PM +0900, I wrote:
> On Sun, Sep 22, 2002 at 02:44:54PM +0300, Giorgos Keramidas wrote:
> > On 2002-09-21 23:53, "Crist J. Clark" <crist.clark@attbi.com> wrote:
> > > I've been unable to build CURRENT on STABLE for a few days. I made
> > > sure to bring STABLE up to date. Is this just me? Is there a problem
> > > with building CURRENT on STABLE at the moment?
> > 
> > It isn't just you.  The same error stopped my build of current 2-3
> > days ago on 4.6-RELEASE.
> > 
> > >  if [ -f .olddep ]; then mv .olddep .depend; fi
> > >  rm -f .newdep
> > >  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
> 
> Try 'make depend && make' using cpp0 built from -CURRENT source
> newer than the first import of gcc 3.2.1 prerelease:
> 
> $ pushd /usr/src/gnu/usr.bin/cc
> $ make obj && make depend && make
> $ popd
> $ GCC_EXEC_PREFIX=/usr/obj/usr/src/usr.bin/cc/cpp0/ make depend
> $ GCC_EXEC_PREFIX=/usr/obj/usr/src/usr.bin/cc/cpp0/ make
> 
> should work unless you are doing a cross-platform compiling.
> The bug in cpp0 seems to me to have been fixed after the first
> import of gcc 3.2.1-prerelease (2002-09-02(UTC)).

Actually the bug seems to be not only in cpp0 but in some other tools
under /usr/libexec, so even if make depend succeeds, you'll get another
crash:

cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstri
ct-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fform
at-extensions -ansi -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/dev -I/u
sr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include
 opt_global.h -fno-common  -mpreferred-stack-boundary=2 -ffreestanding -Werror  
/usr/src/sys/netkey/keysock.c
In file included from /usr/src/sys/sys/systm.h:45,
                 from /usr/src/sys/netkey/keysock.c:49:
machine/atomic.h: In function `atomic_set_long':
machine/atomic.h:253: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html>; for instructions.
*** Error code 1

So I had to build the world in advance, and use the tools under
/usr/obj/usr/src/${ARCH}/usr/libexec/ .
Also, it seems like it doesn't crash without -march= option, so
NO_CPU_CFLAGS and NO_CPU_COPTFLAGS might help you.

Anyway, I just managed to build the kernel from 2002-09-21(UTC) source,
on another machine with world built from 2002-09-01(UTC).

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?20020922231228.GA1053.qhwt>