Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-25 Thread Giorgos Keramidas

On 2002-09-24 18:00, Lars Eggert [EMAIL PROTECTED] wrote:
 Alexander Kabaev wrote:
 On Tue, 24 Sep 2002 00:00:45 -0700
 Crist J. Clark [EMAIL PROTECTED] wrote:
 
 Not too sure about that. Now I'm getting SIGSEGV again,
 
 You are right. There was a stupid mistake in the latest version, sorry.
 Could you try yet another patch?
 
 http://people.freebsd.org/~kan/gcc-cpp.diff

 FYI, I saw the same error as Crist when building -current under 4.6,
 and with your patch, the buildworld/buildkernel succeeded.

Ditto.  I have managed to build a current world on RELENG_4 only with
Alexander's patch.

-- 
FreeBSD: The power to Serve -- http://www.FreeBSD.org
FreeBSD 5.0-CURRENT #0: Tue Sep 24 04:56:12 EEST 2002

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-25 Thread Crist J. Clark

On Tue, Sep 24, 2002 at 06:13:33PM -0400, Alexander Kabaev wrote:
  Nope, still getting it.
 
 I was able to reproduce the crash with your config file and unpatched
 GCC, however crash does not happen when I use the patch. Are you using
 make buildkernel or old config/make method? 

Since I'm building a CURRENT kernel on a STABLE box, I think
buildkernel is the only practical choice.

With the latest patch, today's automated build ran fine. Thanks. 
-- 
Crist J. Clark | [EMAIL PROTECTED]
   | [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-24 Thread Crist J. Clark

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 [EMAIL PROTECTED] 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 -   1.1.1.4
  +++ cppmacro.c  23 Sep 2002 20:39:38 -
  @@ -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 | [EMAIL PROTECTED]
   | [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-24 Thread Alexander Kabaev

On Tue, 24 Sep 2002 00:00:45 -0700
Crist J. Clark [EMAIL PROTECTED] wrote:

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

You are right. There was a stupid mistake in the latest version, sorry.
Could you try yet another patch?

http://people.freebsd.org/~kan/gcc-cpp.diff

-- 
Alexander Kabaev

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-24 Thread Crist J. Clark

On Tue, Sep 24, 2002 at 11:43:22AM -0400, Alexander Kabaev wrote:
 On Tue, 24 Sep 2002 00:00:45 -0700
 Crist J. Clark [EMAIL PROTECTED] wrote:
 
  Not too sure about that. Now I'm getting SIGSEGV again,
 
 You are right. There was a stupid mistake in the latest version, sorry.
 Could you try yet another patch?
 
 http://people.freebsd.org/~kan/gcc-cpp.diff

Nope, still getting it.

As for your other question about the configuration, it looks like
it's,

  options   IPSEC_ESP

That is killing it. If I comment out that option, I get past that
initial mkdep.

The whole configuration is attached.
-- 
Crist J. Clark | [EMAIL PROTECTED]
   | [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]


#
# $Id: GOKU,v 1.7 2002/07/30 07:50:02 cjc Exp cjc $
#

machine i386
cpu I686_CPU
ident   GOKU
maxusers0

#makeoptionsDEBUG=-g#Build kernel with gdb(1) debug symbols

options INET#InterNETworking
options INET6   #IPv6 communications protocols
options IPSEC   #IP security
options IPSEC_ESP   #IP security (crypto; define w/ IPSEC)
options FFS #Berkeley Fast Filesystem
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
options KTRACE  #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B#Posix P1003_1B real-time extentions
options _KPOSIX_PRIORITY_SCHEDULING
options SOFTUPDATES

device  isa
device  pci

options IPFIREWALL  #firewall
options IPFIREWALL_VERBOSE  #enable logging to syslogd(8)
options IPFIREWALL_FORWARD  #enable transparent proxy support
options IPFIREWALL_VERBOSE_LIMIT=100#limit verbosity
options IPV6FIREWALL#firewall for IPv6
options IPV6FIREWALL_VERBOSE
options IPV6FIREWALL_VERBOSE_LIMIT=100
options IPDIVERT#divert sockets
#optionsIPFILTER#ipfilter support
#optionsIPFILTER_LOG#ipfilter logging
#optionsIPFILTER_DEFAULT_BLOCK  #block all packets by default

device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives

# Floating point support - do not disable.
device  npx

# Power management support
#device apm

# Serial (COM) ports
device  sio

# Parallel port
device  ppc
device  ppbus   # Parallel port bus (required)
device  lpt # Printer
device  plip# TCP/IP over parallel
device  ppi # Parallel port interface device

# PCI Ethernet NICs.
device  miibus
device  xl  # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# Pseudo devices - the number indicates how many units to allocated.
device  random  # Entropy device
device  loop# Network loopback
device  ether   # Ethernet support
device  tun # Packet tunnel.
device  pty # ttys (telnet etc)
device  md  # Memory disks
device  gif # IPv6 and IPv4 tunneling
device  faith   # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device  bpf #Berkeley packet filter

# Give sound a shot
device  pcm

# USB device
device  usb



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-24 Thread Alexander Kabaev

 Nope, still getting it.

I was able to reproduce the crash with your config file and unpatched
GCC, however crash does not happen when I use the patch. Are you using
make buildkernel or old config/make method? 
 
 
   options IPSEC_ESP
 
 That is killing it. If I comment out that option, I get past that
 initial mkdep.

By adding or removing configuration options, you change the exact layout
of the string buffer in CPP0 and this prevents crash from happening.

-- 
Alexander Kabaev

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-24 Thread Lars Eggert

Alexander Kabaev wrote:
 On Tue, 24 Sep 2002 00:00:45 -0700
 Crist J. Clark [EMAIL PROTECTED] wrote:
 
Not too sure about that. Now I'm getting SIGSEGV again,
 
 You are right. There was a stupid mistake in the latest version, sorry.
 Could you try yet another patch?
 
 http://people.freebsd.org/~kan/gcc-cpp.diff

FYI, I saw the same error as Crist when building -current under 4.6, and 
with your patch, the buildworld/buildkernel succeeded.

Lars
-- 
Lars Eggert [EMAIL PROTECTED]   USC Information Sciences Institute



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-23 Thread Crist J. Clark

On Sun, Sep 22, 2002 at 11:09:56PM -0400, Alexander Kabaev wrote:
 I am asking people having CPP0 dying with SIG11 to try the patch at URL
 below. Success/failure reports are appreciated.
 
 http://people.freebsd.org/~kan/gcc-cpp.diff

It seems to have worked. Thanks.
-- 
Crist J. Clark | [EMAIL PROTECTED]
   | [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-23 Thread Alexander Kabaev

On Mon, 23 Sep 2002 12:55:49 -0700
Crist J. Clark [EMAIL PROTECTED] 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.

-- 
Alexander Kabaev

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-22 Thread Crist J. Clark

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?

 --
  Kernel build for GOKU started on Sat Sep 21 23:48:02 PDT 2002
 --
 === GOKU
 mkdir -p /home/cjc/obj/usr/src.CURRENT/sys
 cd /usr/src.CURRENT/sys/i386/conf;  
PATH=/home/cjc/obj/usr/src.CURRENT/i386/usr/sbin:/home/cjc/obj/usr/src.CURRENT/i386/usr/bin:/home/cjc/obj/usr/src.CURRENT/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
  config  -d /home/cjc/obj/usr/src.CURRENT/sys/GOKU  
/usr/src.CURRENT/sys/i386/conf/GOKU
 Kernel build directory is /home/cjc/obj/usr/src.CURRENT/sys/GOKU
 Don't forget to do a ``make depend''
 cd /home/cjc/obj/usr/src.CURRENT/sys/GOKU;  
MAKESRCPATH=/usr/src.CURRENT/sys/dev/aic7xxx/aicasm  make -DNO_CPU_CFLAGS -f 
/usr/src.CURRENT/sys/dev/aic7xxx/aicasm/Makefile
 Warning: Object directory not changed from original 
/home/cjc/obj/usr/src.CURRENT/sys/GOKU
 cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src.CURRENT/sys/dev/aic7xxx/aicasm
-c /usr/src.CURRENT/sys/dev/aic7xxx/aicasm/aicasm.c
 cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src.CURRENT/sys/dev/aic7xxx/aicasm
-c /usr/src.CURRENT/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
 yacc -b aicasm_gram  -d -o aicasm_gram.c 
/usr/src.CURRENT/sys/dev/aic7xxx/aicasm/aicasm_gram.y
 cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src.CURRENT/sys/dev/aic7xxx/aicasm
-c aicasm_gram.c
 yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c 
/usr/src.CURRENT/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y
 cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src.CURRENT/sys/dev/aic7xxx/aicasm
-c aicasm_macro_gram.c
 lex -t   /usr/src.CURRENT/sys/dev/aic7xxx/aicasm/aicasm_scan.l  aicasm_scan.c
 cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src.CURRENT/sys/dev/aic7xxx/aicasm
-c aicasm_scan.c
 lex -t  -Pmm /usr/src.CURRENT/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l  
aicasm_macro_scan.c
 cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src.CURRENT/sys/dev/aic7xxx/aicasm
-c aicasm_macro_scan.c
 cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src.CURRENT/sys/dev/aic7xxx/aicasm
 -o aicasm aicasm.o aicasm_symbol.o aicasm_gram.o aicasm_macro_gram.o aicasm_scan.o 
aicasm_macro_scan.o -ll
 cd /home/cjc/obj/usr/src.CURRENT/sys/GOKU;  MAKEOBJDIRPREFIX=/home/cjc/obj  
MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE=p3  
GROFF_BIN_PATH=/home/cjc/obj/usr/src.CURRENT/i386/usr/bin  
GROFF_FONT_PATH=/home/cjc/obj/usr/src.CURRENT/i386/usr/share/groff_font  
GROFF_TMAC_PATH=/home/cjc/obj/usr/src.CURRENT/i386/usr/share/tmac  
DESTDIR=/home/cjc/obj/usr/src.CURRENT/i386  INSTALL=sh 
/usr/src.CURRENT/tools/install.sh  
PATH=/home/cjc/obj/usr/src.CURRENT/i386/usr/sbin:/home/cjc/obj/usr/src.CURRENT/i386/usr/bin:/home/cjc/obj/usr/src.CURRENT/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
 make KERNEL=kernel depend
 rm -f .olddep
 if [ -f .depend ]; then mv .depend .olddep; fi
 make _kernel-depend
 cc -c -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 
-mpreferred-stack-boundary=2 -ffreestanding /usr/src.CURRENT/sys/i386/i386/genassym.c
 NM=nm sh /usr/src.CURRENT/sys/kern/genassym.sh genassym.o  assym.s
 awk -f /usr/src.CURRENT/sys/tools/vnode_if.awk /usr/src.CURRENT/sys/kern/vnode_if.src 
-h
 echo '#define NBPF 1'  bpf.h
 awk -f /usr/src.CURRENT/sys/tools/vnode_if.awk /usr/src.CURRENT/sys/kern/vnode_if.src 
-c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/kern/device_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk /usr/src.CURRENT/sys/kern/bus_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/kern/linker_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/mii/miibus_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/pccard/card_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/pccard/power_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/pci/pci_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/pci/pcib_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/ppbus/ppbus_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/sound/pcm/ac97_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/sound/pcm/channel_if.m -c
 awk -f /usr/src.CURRENT/sys/tools/makeobjops.awk 
/usr/src.CURRENT/sys/dev/sound/pcm/feeder_if.m -c
 awk -f 

Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-22 Thread Maxim Konovalov


Works for me:

 Kernel build for GENERIC completed on Sun Sep 22 07:43:35 MSD 2002

$ uname -a
FreeBSD golf.macomnet.net 4.6-20020805-MACOMNET-STABLE FreeBSD
4.6-20020805-MACOMNET-STABLE #19: Fri Sep 20 17:09:52 MSD 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GOLF  i386.

-- 
Maxim Konovalov, [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-22 Thread Giorgos Keramidas

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
  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

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-22 Thread qhwt

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
   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)).

Cheers.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-22 Thread qhwt

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



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-22 Thread Jim Bloom



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
   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
 

This is not just a problem with stable.  I had the same problem building a
kernel with Sept. 22, 7:30AM EDT cvsup of current source.  My machine is running
current from about a month ago.

Jim Bloom
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Trouble Building CURRENT on STABLE, cpp seg. fault

2002-09-22 Thread Alexander Kabaev

I am asking people having CPP0 dying with SIG11 to try the patch at URL
below. Success/failure reports are appreciated.

http://people.freebsd.org/~kan/gcc-cpp.diff

-- 
Alexander Kabaev


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message