Compiler segmentation fault in 5-08 -CURRENT

From: Terrence Koeman <root_at_mediamonks.net>
Date: Mon, 9 Aug 2004 16:24:29 +0200
Hi,

I recently upgraded world and kernel to the 5 august -CURRENT, and now
nearly anything that requires a compiler fails.

Something is broken, and I can't figure out what it is, is this a bug or did
I screw up while upgrading? I read the note about a new compiler in
/usr/src/UPDATING, but I didn't think this would require some special steps
for the base system to work.

Please advice.

For instance buildworld:
################################################
--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386  DESTDIR=  INSTALL="sh
/usr/src/tools/install.sh"
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/
bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
WORLDTMP=/usr/obj/usr/src/i386  MAKEFLAGS="-m /usr/src/tools/build/mk  -m
/usr/src/share/mk " make -f Makefile.inc1  BOOTSTRAPPING=502119  -DNOHTML
-DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE  -DNOSHARED -DNO_CPU_CFLAGS
-DNO_WARNS bootstrap-tools
===> games/fortune/strfile
/usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for
/usr/src/games/fortune/strfile
rm -f .depend
mkdep -f .depend -a    -I/usr/obj/usr/src/i386/legacy/usr/include
/usr/src/games/fortune/strfile/strfile.c
echo strfile: /usr/lib/libc.a
/usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend
cc -O -pipe  -I/usr/obj/usr/src/i386/legacy/usr/include -c
/usr/src/games/fortune/strfile/strfile.c
/usr/src/games/fortune/strfile/strfile.c: In function `main':
/usr/src/games/fortune/strfile/strfile.c:164: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /usr/src/games/fortune/strfile.
*** Error code 1

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

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

Stop in /usr/src.
################################################

buildkernel:
################################################
--------------------------------------------------------------
>>> stage 2.3: build tools
--------------------------------------------------------------
cd /usr/obj/usr/src/sys/DHAMMAPADA;
MAKESRCPATH=/usr/src/sys/dev/aic7xxx/aicasm  make -DNO_CPU_CFLAGS -f
/usr/src/sys/dev/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original
/usr/obj/usr/src/sys/DHAMMAPADA
cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm
-c /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm.c: In function `main':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm.c:171: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /usr/obj/usr/src/sys/DHAMMAPADA.
*** Error code 1

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

Stop in /usr/src.
################################################

mod_php4:
################################################
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking for C compiler default output... configure: error: C compiler
cannot create executables
check `config.log' for details.
===>  Script "configure" failed unexpectedly.
Please report the problem to ports_at_FreeBSD.org [maintainer] and attach the
"/usr/ports/devel/bison/work/bison-1.75/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/devel/bison.
*** Error code 1

Stop in /usr/ports/www/mod_php4.
################################################

config.log contains:
################################################
configure:1976: cc --version </dev/null >&5
cc (GCC) 3.4.2 [FreeBSD] 20040728
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1979: $? = 0
configure:1981: cc -v </dev/null >&5
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.2 [FreeBSD] 20040728
configure:1984: $? = 0
configure:1986: cc -V </dev/null >&5
cc: `-V' option must have argument
configure:1989: $? = 1
configure:2009: checking for C compiler default output
configure:2012: cc -O -pipe -march=pentiumpro -I/usr/local/include
-L/usr/local/lib conftest.c  >&5
configure: In function `main':
configure:2001: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
configure:2015: $? = 1
configure: failed program was:
#line 1993 "configure"
#include "confdefs.h"

int
main ()
{

  ;
  return 0;
}
configure:2052: error: C compiler cannot create executables
check `config.log' for details.
################################################

-- 
Regards,
Terrence Koeman
 
MediaMonks B.V. (www.mediamonks.com)
Please quote all replies in correspondence.    
Received on Mon Aug 09 2004 - 12:24:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:05 UTC