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" <[EMAIL PROTECTED]> 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
>-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 
> > >  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

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  
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to