Re: FreeBSD 5.2-RELEASE buildworld failure.

2004-01-24 Thread Ruslan Ermilov
On Fri, Jan 23, 2004 at 06:13:24PM -0800, erek wrote:
 I cvsuped today using tag RELENG_5_2 (i'm already using 5.2-RELEASE),
[...]
 During the buildworld I get this VERY odd error:
[...]
 /usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:62:25: attempt to use poisoned 
 malloc
[...]
 mkdep: compile failed
 *** Error code 1
[...]
 any suggestions?
 
wizard mode

Go to /usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc1plus, and compare
parse.c and parse+%DIKED.c there.  They should be different, xmalloc
vs malloc, xrealloc vs realloc.  If they are identical, chances
are your /usr/bin/sed is probably broken, and you should read this entry
from src/UPDATING:

: 20030613: [retrospective]
: There was a small window in which sed(1) was broken.  If you
: happen to have sed(1) installed during that window, which is
: evidenced by an inability to build world with the failure
: given below, you need to manually build and install sed(1)
: (and only sed(1)) before doing anything else. This is a one-
: time snafu. Typical failure mode:
: 
: In file included from /usr/src/contrib/binutils/bfd/targets.c:1092:
: targmatch.h:7:1: null character(s) ignored
: targmatch.h:12:1: null character(s) ignored
: targmatch.h:16:1: null character(s) ignored
: :
: 
: The window of sed(1)-uction is from Wed Jun 4 15:31:55 2003 UTC
: to Thu Jun 5 12:10:19 2003 UTC (from rev 1.30 to rev 1.31 of
: usr.bin/sed/process.c).

To see if you're affected, run this:

ident /usr/bin/sed

And see which process.c revision your sed(1) has.  It if's 1.30,
you're affected.

/wizard mode


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


FreeBSD 5.2-RELEASE buildworld failure.

2004-01-23 Thread erek
I cvsuped today using tag RELENG_5_2 (i'm already using 5.2-RELEASE), i
noticed there was only documentation changes, and no real source changes,
i was preparing to recompile everything using some different
optimizations:

erek# cat /etc/make.conf
CFLAGS+= -pipe -march=athlon-xp -mcpu=athlon-xp -mmmx -m3dnow -ffast-math
-msse -mfpmath=sse,387
CXXFLAGS+= -pipe -march=athlon-xp -mcpu=athlon-xp -mmmx -m3dnow
-ffast-math   -msse -mfpmath=sse,387
COPTFLAGS+= -pipe -march=athlon-xp -mcpu=athlon-xp -mmmx -m3dnow
-ffast-math -msse -mfpmath=sse,387

Previously i had unroll-loops in my optimizations and i heard this could
actually be slower on modern CPUs, so i removed it.

During the buildworld I get this VERY odd error:

mkdep -f .depend -a-DIN_GCC -DHAVE_CONFIG_H
-DPREFIX=\/usr/obj/usr/src/i386
/usr\ -I/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc1plus/../cc_tools
-I/usr
/src/gnu/usr.bin/cc/cc1plus/../cc_tools
-I/usr/src/gnu/usr.bin/cc/cc1plus/../../
../../contrib/gcc
-I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/conf
ig -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp -I.
-I/usr/obj/u
sr/src/i386/legacy/usr/include  parse+%DIKED.c
/usr/src/gnu/usr.bin/cc/cc1plus/.
./../../../contrib/gcc/main.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contri
b/gcc/cp/cp-lang.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/c-opt
s.c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/call.c
/usr/src/g
nu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/class.c
/usr/src/gnu/usr.bin/cc
/cc1plus/../../../../contrib/gcc/cp/cvt.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../
../../contrib/gcc/cp/decl.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/
gcc/cp/decl2.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/error.
c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/except.c
/usr/src/g
nu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/expr.c
/usr/src/gnu/usr.bin/cc/
cc1plus/../../../../contrib/gcc/cp/friend.c
/usr/src/gnu/usr.bin/cc/cc1plus/../.
./../../contrib/gcc/cp/init.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contri
b/gcc/cp/lex.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/mangle
.c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/method.c
/usr/src/
gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/pt.c
/usr/src/gnu/usr.bin/cc/c
c1plus/../../../../contrib/gcc/cp/ptree.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../
../../contrib/gcc/cp/repo.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/
gcc/cp/rtti.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/search.
c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/semantics.c
/usr/sr
c/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/spew.c
/usr/src/gnu/usr.bin/
cc/cc1plus/../../../../contrib/gcc/cp/tree.c
/usr/src/gnu/usr.bin/cc/cc1plus/../
../../../contrib/gcc/cp/typeck.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../con
trib/gcc/cp/typeck2.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp
/dump.c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/optimize.c
In file included from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/tcon
fig.h:17,
 from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/hcon
fig.h:2,
 from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/conf
ig.h:1,
 from
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp
/parse.y:31,
 from /usr/src/contrib/gcc/cp/lex.c:33:
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:62:25: attempt to use
poisoned
 malloc
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:63:25: attempt to use
poisoned
 calloc
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:64:25: attempt to use
poisoned
 realloc
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:65:25: attempt to use
poisoned
 strdup
In file included from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/tcon
fig.h:17,
 from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/hcon
fig.h:2,
 from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/conf
ig.h:1,
 from
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp
/parse.y:31,
 from /usr/src/contrib/gcc/cp/pt.c:37:
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:62:25: attempt to use
poisoned
 malloc
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:63:25: attempt to use
poisoned
 calloc
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:64:25: attempt to use
poisoned
 realloc
/usr/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h:65:25: attempt to use
poisoned
 strdup
In file included from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/tcon
fig.h:17,
 from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/hcon
fig.h:2,
 from
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_tools/conf
ig.h:1,
 from
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp
/parse.y:31,