I'm trying to upgrade a host that has NetBSD/i386 5.0.2 to 5.1
(checked out as "netbsd-5"). When I tried "./build.sh -O ../obj -T
../tools -U distribution", I got the following...
Thanks,
- Andy Ball
----------------------------------------------------------------------
*** Failed target: __assert.o
*** Failed command: /usr/src/../tools/bin/i386--netbsdelf-gcc -mfpmath=sse -msse
-march=pentium3 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -
Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -We
rror -I/usr/src/lib/librump/../../sys/rump/include -D_KERNEL -D_RUMPKERNEL -DMUL
TIPROCESSOR -DDIAGNOSTIC -I/usr/src/lib/librump -I. -I/usr/src/lib/librump/../..
/sys/rump/../../common/include -nostdinc -I/usr/src/lib/librump/../../sys/rump/.
. -I/usr/src/lib/librump/../../sys/rump/librump/rumpkern/opt -DMAXUSERS=32 -I/us
r/src/lib/librump/../../sys/rump/librump/rumpnet -nostdinc -isystem /usr/src/../
obj/destdir.i386/usr/include -c /usr/src/lib/librump/../../sys/rump/../lib/libke
rn/__assert.c -o __assert.o
----------------------------------------------------------------------
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de
We don't have the error message here; it's a few lines above
--
Manuel Bouyer <bou...@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
> # compile librump/__assert.o
> /usr/src/../tools/bin/i386--netbsdelf-gcc -mfpmath=sse -msse -march=pentium3 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror -I/usr/src/lib/librump/../../sys/rump/include -D_KERNEL -D_RUMPKERNEL -DMULTIPROCESSOR -DDIAGNOSTIC -I/usr/src/lib/librump -I. -I/usr/src/lib/librump/../../sys/rump/../../common/include -nostdinc -I/usr/src/lib/librump/../../sys/rump/.. -I/usr/src/lib/librump/../../sys/rump/librump/rumpkern/opt -DMAXUSERS=32 -I/usr/src/lib/librump/../../sys/rump/librump/rumpnet -nostdinc -isystem /usr/src/../obj/destdir.i386/usr/include -c /usr/src/lib/librump/../../sys/rump/../lib/libkern/__assert.c -o __assert.o
> cc1: warnings being treated as errors
> In file included from /usr/src/lib/librump/../../sys/rump/../lib/libkern/__assert.c:35:
> /usr/src/lib/librump/../../sys/rump/../sys/systm.h:207: warning: conflicting types for built-in function 'printf'
> /usr/src/lib/librump/../../sys/rump/../sys/systm.h:212: warning: conflicting types for built-in function 'vprintf'
> In file included from /usr/src/lib/librump/../../sys/rump/../sys/systm.h:398,
> from /usr/src/lib/librump/../../sys/rump/../lib/libkern/__assert.c:35:
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:54: warning: declaration of 'abs' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:56: warning: declaration of 'isspace' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:57: warning: declaration of 'isascii' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:58: warning: declaration of 'isupper' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:59: warning: declaration of 'islower' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:60: warning: declaration of 'isalpha' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:61: warning: declaration of 'isdigit' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:62: warning: declaration of 'isxdigit' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:63: warning: declaration of 'toupper' shadows a built-in function
> /usr/src/lib/librump/../../sys/rump/../lib/libkern/libkern.h:64: warning: declaration of 'tolower' shadows a built-in function
Wow. I guess you have something in /etc/mk.conf, or on the build.sh command
line ?
MB> Wow. I guess you have something in
> /etc/mk.conf, or on the build.sh command
> line ?
ipaq# cat mk.conf
X11_TYPE= modular
CFLAGS= -mfpmath=sse -msse -march=pentium3
CXXFLAGS= -mfpmath=sse -msse -march=pentium3
PKG_DEFAULT_OPTIONS-=inet6
ipaq#
I'll try without the sse parts first. If that
doesn't work I'll try without an /etc/mk.conf
file.
Thanks,
- Andy Ball
MB>> Wow. I guess you have something in
>> /etc/mk.conf, or on the build.sh command
>> line ?
> ipaq# cat mk.conf
> X11_TYPE= modular
> CFLAGS= -mfpmath=sse -msse -march=pentium3
> CXXFLAGS= -mfpmath=sse -msse -march=pentium3
> PKG_DEFAULT_OPTIONS-=inet6
> ipaq#
It makes sense to place pkgsrc setting between
.ifdef BSD_PKG_MK
.endif
lines. Even better use the following pattern.
.ifdef BSD_PKG_MK
# pkgsrc setting here
.else
# setting for NetBSD
.endif
# Really global settings and targets for make/bmake
Otherwise you have a chance to experience really mystic problems.
If you find any variable uniq for src builds (TOOLDIR?), replace
.else
line with
.elsif defined(that_uniq_macro)
I'm not sure your settings cause the problem though.
--
Best regards, Aleksey Cheusov.
I had to remove ../obj and ../tools, build.sh tools and then try again. Thanks!
- Andy Ball
.
:
===> Successful make distribution
===> build.sh ended: Mon May 23 11:28:16 GMT 2011
===> Summary of results:
build.sh command: ./build.sh -O ../obj -T ../tools -U distribution
build.sh started: Mon May 23 02:33:26 GMT 2011
NetBSD version: 5.1
MACHINE: i386
MACHINE_ARCH: i386
Build platform: NetBSD 5.1_STABLE i386
HOST_SH: /bin/sh
No /usr/src/../tools/bin/nbmake, needs building.
Bootstrapping nbmake
TOOLDIR path: /usr/src/../tools
DESTDIR path: /usr/src/../obj/destdir.i386
RELEASEDIR path: /usr/src/../obj/releasedir
Created /usr/src/../tools/bin/nbmake
makewrapper: /usr/src/../tools/bin/nbmake-i386
Updated /usr/src/../tools/bin/nbmake-i386
Successful make distribution
build.sh ended: Mon May 23 11:28:16 GMT 2011
===> .
32091.18 real 25938.98 user 5409.83 sys
This will probably disable optimization.
> CXXFLAGS= -mfpmath=sse -msse -march=pentium3
> PKG_DEFAULT_OPTIONS-=inet6
> ipaq#
Setting "CFLAGS" or "CXXFLAGS" manually is *wrong*. Please do not do it
as you will break the build of many things. Please use the "cpuflags"
package instead which knows all the necessary tricks.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/