Subject: Re: -current not building: lfs_rfw.c
To: Quentin Garnier <cube@cubidou.net>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 12/12/2007 10:42:55
On Wed, 12 Dec 2007 11:27:58 +0100
Quentin Garnier <cube@cubidou.net> wrote:

> On Wed, Dec 12, 2007 at 09:48:40AM +0000, Steven M. Bellovin wrote:
> > This is with up-to-date source and a clean build tree.
> 
> What exactly do you call a "clean build tree"?  The error you get is
> because you haven't re-run config(1), so we don't appear to share the
> definition for that.
> 
I meant that I removed /usr/BUILD/obj, to avoid stale dependencies,
etc.  Everything was built via build.sh, which I thought did run
config.  Here's the start of the build log:

===> build.sh command: /usr/src/build.sh -D /usr/BUILD/netbsd -O /usr/BUILD/obj 
-T /usr/BUILD/tools -R /usr/BUILD/release distribution sets kernel=/home/smb/sys
/BERKSHIRE
===> build.sh started: Tue Dec 11 23:36:43 EST 2007
===> NetBSD version:   4.99.42
===> MACHINE:          i386
===> MACHINE_ARCH:     i386 
===> Build platform:   NetBSD 4.99.34 i386
===> HOST_SH:          /bin/sh
===> No /usr/BUILD/tools/bin/nbmake, needs building.
===> Bootstrapping nbmake

(In my build environment, everything is under /usr/BUILD; if I delete
it -- and I did -- it wipes out everything, so there are no dregs left
behind.)

For brevity, I omitted the full end of the build log, but here it is,
so you can see exactly where things died.  I've uploaded the full build
log to http://www.machshav.com/~smb/P -- it's about 32MB.

$ tail -100 ~root/P      
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_alloc.c -o lfs_alloc.o
#   compile  liblfs/lfs_balloc.o
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_balloc.c -o lfs_balloc.o
#   compile  liblfs/lfs_bio.o
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_bio.c -o lfs_bio.o
#   compile  liblfs/lfs_cksum.o
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_cksum.c -o lfs_cksum.o
#   compile  liblfs/lfs_debug.o
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_debug.c -o lfs_debug.o
#   compile  liblfs/lfs_inode.o
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_inode.c -o lfs_inode.o
#   compile  liblfs/lfs_itimes.o
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_itimes.c -o lfs_itimes.o
#   compile  liblfs/lfs_rfw.o
/usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -I/usr/src/sys/rump/include  -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys   -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/ufs/lfs/lfs_rfw.c -o lfs_rfw.o
/usr/src/sys/ufs/lfs/lfs_rfw.c: In function 'lfs_rf_valloc':
/usr/src/sys/ufs/lfs/lfs_rfw.c:134: error: too many arguments to function 'lfs_truncate'
/usr/src/sys/ufs/lfs/lfs_rfw.c: In function 'update_inoblk':
/usr/src/sys/ufs/lfs/lfs_rfw.c:344: error: too many arguments to function 'lfs_truncate'
cc1: warnings being treated as errors
/usr/src/sys/ufs/lfs/lfs_rfw.c: In function 'check_segsum':
/usr/src/sys/ufs/lfs/lfs_rfw.c:472: warning: pointer of type 'void *' used in arithmetic
/usr/src/sys/ufs/lfs/lfs_rfw.c:472: warning: pointer of type 'void *' used in arithmetic
/usr/src/sys/ufs/lfs/lfs_rfw.c:476: warning: pointer of type 'void *' used in arithmetic
/usr/src/sys/ufs/lfs/lfs_rfw.c:492: warning: pointer of type 'void *' used in arithmetic
/usr/src/sys/ufs/lfs/lfs_rfw.c: In function 'lfs_roll_forward':
/usr/src/sys/ufs/lfs/lfs_rfw.c:656: warning: empty body in an if-statement

*** Failed target:  lfs_rfw.o
*** Failed command: /usr/BUILD/tools/bin/i386--netbsdelf-gcc -O0 -g -Wno-pointer-sign -ffreestanding -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror -I/usr/src/sys/rump/include -I/usr/src/sys/rump/fs/lib/liblfs -I. -D_KERNEL -DDIAGNOSTIC -I/usr/src/common/include -D_RUMPKERNEL -nostdinc -I/usr/src/sys -nostdinc -isystem /usr/BUILD/netbsd/usr/include -c /usr/src/sys/ufs/lfs/lfs_rfw.c -o lfs_rfw.o
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/rump/fs/lib/liblfs

*** Failed target:  dependall
*** Failed command: cd /usr/src/sys/rump/fs/lib/liblfs; /usr/BUILD/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/rump/fs/lib/liblfs

*** Failed target:  dependall-liblfs
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/rump/fs/lib/"; real="/usr/src/sys/rump/fs/lib" ;; *) this="sys/rump/fs/lib/${dir}/"; real="/usr/src/sys/rump/fs/lib/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget liblfs dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/rump/fs/lib

*** Failed target:  dependall-lib
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/rump/fs/"; real="/usr/src/sys/rump/fs" ;; *) this="sys/rump/fs/${dir}/"; real="/usr/src/sys/rump/fs/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget lib dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/rump/fs

*** Failed target:  dependall-fs
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/rump/"; real="/usr/src/sys/rump" ;; *) this="sys/rump/${dir}/"; real="/usr/src/sys/rump/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget fs dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/rump

*** Failed target:  dependall-rump
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/"; real="/usr/src/sys" ;; *) this="sys/${dir}/"; real="/usr/src/sys/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget rump dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys

*** Failed target:  dependall-sys
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget sys dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall BUILD_tools=no BUILD_lib=no
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-build
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/BUILD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***



		--Steve Bellovin, http://www.cs.columbia.edu/~smb