Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2008 19:16:00 +0530
From:      "Venkatesh K" <kaevee@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: buildworld failed
Message-ID:  <e187fc980802030546p352f6bcct77e24e5ffb0e10d3@mail.gmail.com>
In-Reply-To: <e187fc980802030504w43c6a6ebl4c50b999441c722@mail.gmail.com>
References:  <e187fc980802021914k32abfa9u3fcad52f969ea48@mail.gmail.com> <BAY102-W4112A5797302302D5E8381B9320@phx.gbl> <e187fc980802030130x5a149c8ft5bfd358d4fb9e387@mail.gmail.com> <20080203070602.165ad048@scorpio> <e187fc980802030504w43c6a6ebl4c50b999441c722@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Feb 3, 2008 6:34 PM, Venkatesh K <kaevee@gmail.com> wrote:
> On Feb 3, 2008 5:36 PM, Gerard <gerard@seibercom.net> wrote:
> > On Sun, 3 Feb 2008 15:00:36 +0530
> > "Venkatesh K" <kaevee@gmail.com> wrote:
> >
> > > I did try that too! Still same problem.
> >
> > From the FreeBSD manual:
> >
> > 23.4.14.6. What do I do if something goes wrong?
> >
> > Make absolutely sure your environment has no extraneous cruft from
> > earlier builds. This is simple enough.
> > # chflags -R noschg /usr/obj/usr
> > # rm -rf /usr/obj/usr
> > # cd /usr/src
> > # make cleandir
> > # make cleandir
> >
>
> I had tried cleaning build tree as described above and building again.
> It was of no help.

Here are the steps I followed.

1. Cleaned up using following script clean.sh

--------------------------------------------------------------------------
chflags -R noschg /usr/obj/usr
rm -rf /usr/obj/usr
cd /usr/src
make cleandir
make cleandir
--------------------------------------------------------------------------
2. Cvsup latest sources using cvsup -g -L 2 /etc/supfile (attached).

Build fails while compiling /usr/src/sbin/gbde/gbde.c.

--------------------------------------- error.log --------------------------
cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/fsdb/../fsck_ffs
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/sbin/fsdb/../fsck_ffs/utilities.c

cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/fsdb/../fsck_ffs
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/sbin/fsdb/../../sys/ufs/ffs/ffs_subr.c

cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/fsdb/../fsck_ffs
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c
/usr/src/sbin/fsdb/../../sys/ufs/ffs/ffs_tables.c

(cd /usr/src/rescue/rescue/../../sbin/fsirand &&  make -DRESCUE
CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/fsirand/ depend && make
-DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/fsirand/
fsirand.o)

rm -f .depend

mkdep -f .depend -a    -DRESCUE /usr/src/sbin/fsirand/fsirand.c

echo fsirand: /usr/obj/usr/src/tmp/usr/lib/libc.a
/usr/obj/usr/src/tmp/usr/lib/libutil.a >> .depend

cc -O2 -fno-strict-aliasing -pipe  -DRESCUE  -c /usr/src/sbin/fsirand/fsirand.c

(cd /usr/src/rescue/rescue/../../sbin/gbde &&  make -DRESCUE
CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/gbde/ depend && make
-DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/gbde/ gbde.o
template.o rijndael-alg-fst.o rijndael-api-fst.o sha2.o g_bde_lock.o)

file2c 'const char template[] = {' ',0};'  <
/usr/src/sbin/gbde/template.txt > template.c

rm -f .depend

mkdep -f .depend -a    -I/usr/src/sbin/gbde/../../sys -DRESCUE
/usr/src/sbin/gbde/gbde.c template.c
/usr/src/sbin/gbde/../../sys/crypto/rijndael/rijndael-alg-fst.c
/usr/src/sbin/gbde/../../sys/crypto/rijndael/rijndael-api-fst.c
/usr/src/sbin/gbde/../../sys/crypto/sha2/sha2.c
/usr/src/sbin/gbde/../../sys/geom/bde/g_bde_lock.c

echo gbde: /usr/obj/usr/src/tmp/usr/lib/libc.a
/usr/obj/usr/src/tmp/usr/lib/libmd.a
/usr/obj/usr/src/tmp/usr/lib/libutil.a
/usr/obj/usr/src/tmp/usr/lib/libgeom.a >> .depend

cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/gbde/../../sys
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
-Wshadow -Wcast-align -Wunused-parameter -c /usr/src/sbin/gbde/gbde.c

/usr/src/sbin/gbde/gbde.c: In function `g_read_data':

/usr/src/sbin/gbde/gbde.c:164: warning: implicit declaration of function `read'

/usr/src/sbin/gbde/gbde.c: In function `setup_passphrase':

/usr/src/sbin/gbde/gbde.c:216: warning: implicit declaration of function `close'

/usr/src/sbin/gbde/gbde.c: In function `cmd_nuke':

/usr/src/sbin/gbde/gbde.c:391: warning: implicit declaration of function `write'

/usr/src/sbin/gbde/gbde.c: In function `cmd_init':

/usr/src/sbin/gbde/gbde.c:556: warning: implicit declaration of
function `unlink'

/usr/src/sbin/gbde/gbde.c: In function `main':

/usr/src/sbin/gbde/gbde.c:801: warning: implicit declaration of
function `getopt'

/usr/src/sbin/gbde/gbde.c:804: error: `optarg' undeclared (first use
in this function)

/usr/src/sbin/gbde/gbde.c:804: error: (Each undeclared identifier is
reported only once

/usr/src/sbin/gbde/gbde.c:804: error: for each function it appears in.)

*** Error code 1



Stop in /usr/src/sbin/gbde.

*** Error code 1



Stop in /usr/obj/usr/src/rescue/rescue.

*** Error code 1



Stop in /usr/src/rescue/rescue.

*** Error code 1



Stop in /usr/src/rescue.

*** Error code 1



Stop in /usr/src.

*** Error code 1



Stop in /usr/src.

*** Error code 1



Stop in /usr/src.
--------------------------------------------- End error.log
-------------------------------------

I hope the above info is sufficient for helping me out.

Thanks,

-- 
Venkatesh. K

[-- Attachment #2 --]
# $FreeBSD: src/share/examples/cvsup/stable-supfile,v 1.29.2.3 2007/09/10 17:30:02 gabor Exp $
#
# This file contains all of the "CVSup collections" that make up the
# FreeBSD-stable source tree.
#
# CVSup (CVS Update Protocol) allows you to download the latest CVS
# tree (or any branch of development therefrom) to your system easily
# and efficiently (far more so than with sup, which CVSup is aimed
# at replacing).  If you're running CVSup interactively, and are
# currently using an X display server, you should run CVSup as follows
# to keep your CVS tree up-to-date:
#
#	cvsup stable-supfile
#
# If not running X, or invoking cvsup from a non-interactive script, then
# run it as follows:
#
#	cvsup -g -L 2 stable-supfile
#
# You may wish to change some of the settings in this file to better
# suit your system:
#
# host=CHANGE_THIS.FreeBSD.org
#		This specifies the server host which will supply the
#		file updates.  You must change it to one of the CVSup
#		mirror sites listed in the FreeBSD Handbook at
#		http://www.freebsd.org/doc/handbook/mirrors.html.
#		You can	override this setting on the command line
#		with cvsup's "-h host" option.
#
# base=/var/db
#		This specifies the root where CVSup will store information
#		about the collections you have transferred to your system.
#		A setting of "/var/db" will generate this information in
#		/var/db/sup.  You can override the "base" setting on the
#		command line with cvsup's "-b base" option.  This directory
#		must exist in order to run CVSup.
#
# prefix=/usr
#		This specifies where to place the requested files.  A
#		setting of "/usr" will place all of the files requested
#		in "/usr/src" (e.g., "/usr/src/bin", "/usr/src/lib").
#		The prefix directory must exist in order to run CVSup.
#
###############################################################################
#
# DANGER!  WARNING!  LOOK OUT!  VORSICHT!
#
# If you add any of the ports or doc collections to this file, be sure to
# specify them with a "tag" value set to ".", like this:
#
#   ports-all tag=.
#   doc-all tag=.
#
# If you leave out the "tag=." portion, CVSup will delete all of
# the files in your ports or doc tree.  That is because the ports and doc
# collections do not use the same tags as the main part of the FreeBSD 
# source tree.
#
###############################################################################

# Defaults that apply to all the collections
#
# IMPORTANT: Change the next line to use one of the CVSup mirror sites
# listed at http://www.freebsd.org/doc/handbook/mirrors.html.
*default host=cvsup4.us.FreeBSD.org
*default base=/var/db
*default prefix=/usr
# The following line is for 6-stable.  If you want 5-stable, 4-stable,
# 3-stable, or 2.2-stable, change to "RELENG_5", "RELENG_4", "RELENG_3",
# or "RELENG_2_2" respectively.
*default release=cvs tag=RELENG_6
*default delete use-rel-suffix

# If you seem to be limited by CPU rather than network or disk bandwidth, try
# commenting out the following line.  (Normally, today's CPUs are fast enough
# that you want to run compression.)
*default compress

## Main Source Tree.
#
# The easiest way to get the main source tree is to use the "src-all"
# mega-collection.  It includes all of the individual "src-*" collections.
# Please note:  If you want to track -STABLE, leave this uncommented.
src-all

# These are the individual collections that make up "src-all".  If you
# use these, be sure to comment out "src-all" above.
#src-base
#src-bin
#src-cddl
#src-contrib
#src-etc
#src-games
#src-gnu
#src-include
#src-kerberos5
#src-kerberosIV
#src-lib
#src-libexec
#src-release
#src-rescue
#src-sbin
#src-share
#src-sys
#src-tools
#src-usrbin
#src-usrsbin
# These are the individual collections that make up FreeBSD's crypto
# collection. They are no longer export-restricted and are a part of
# src-all
#src-crypto
#src-eBones
#src-secure
#src-sys-crypto

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e187fc980802030546p352f6bcct77e24e5ffb0e10d3>