Subject: Re: -current build still blows up.
To: Luke Mewburn <lukem@wasabisystems.com>
From: Greywolf <greywolf@starwolf.com>
List: current-users
Date: 06/04/2002 22:43:58
Note, this is a tad long; I've tried to elide all the unnecessary stuff,
but here you go.

On Wed, 5 Jun 2002, Luke Mewburn wrote:

# On Mon, Jun 03, 2002 at 11:16:35AM -0700, Greywolf wrote:
#   | D'OH!
#   |
#   | SO sorry...it's the same problem I sent in last week; I guess context
#   | wasn't caught.  My apologies.
#   |
#   | Host OS: NetBSD 1.5ZC
#   | Arch: i386, building for i386 and/or sparc [blows up the same either way]
#   | $PATH: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:\
#   | 	/usr/X11/bin:/usr/X11/sbin:/root/bin
#   | Command line:
#   | 	1 # cd /usr/src
#   | 	2 # ./build.sh -m sparc -t -M /export/obj/sparc
#   |
#   | No /etc/mk.conf.
#   |
#   | Same results without "-M /export/obj/sparc".
#
# Ick.  I don't know what your problem is.
# Similar operations work for me ok.
#
# Some (obvious) questions:
# - is your source up to date :)

supped and then cvs update -d -P'd/

# - is /export/obj/sparc "cleaned out" beforehand?

Always.

# - do you have any environment variables set which might affect things
#   (e.g, BSDSRCDIR, BSDOBJDIR, OBJMACHINE, MAKEOBJDIR,
#   MAKEOBJDIRPREFIX, MACHINE, ...) ?

I'll look at that, but I don't think so, certainly not as the
super-user.

# What's the error messages that the building of host-mkdep generates?

Yeh, I don't even get to build the cross-compiler at this point.  Here
you go.  Note that I'm only attempting to build the toolchain, as I'm
really only rebuilding a kernel right now; I can get to userland later
IF I can get the crossbuild environment made...

Script started on Tue Jun  4 22:38:47 2002
rivendell 499# ./build.sh -M /export/obj/sparc -m sparc -t
...much elided...
config.status: creating buildmake.sh
cc -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1
-DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1
-DMAKE_BOOTSTRAP -I/usr/src/tools/make/../../usr.bin/make -c
/usr/src/tools/make/../../usr.bin/make/arch.c
...
cc  -O -o nbmake *.o

	--[ nbmake has been successfully built at this point. --*g; ]--

===> DESTDIR path:
===> TOOLDIR path: /export/obj/sparc/usr/src/tools/tools.NetBSD-1.5ZC-i386
obj ===> tools
obj ===> tools/host-mkdep
...
cleandir ===> host-mkdep
rm -f a.out [Ee]rrs mklog core *.core     config.cache config.log config.status host-mkdep
cleandir ===> compat
rm -r -f include
rm -f config.cache config.h
rm -f a.out [Ee]rrs mklog core *.core  libnbcompat.a basename.lo dirname.lo fgetln.lo flock.lo fparseln.lo getmode.lo getopt_long.lo issetugid.lo libyywrap.lo md2c.lo md2hl.lo md4c.lo md4hl.lo md5c.lo md5hl.lo pread.lo pwcache.lo pwrite.lo pw_scan.lo rmd160.lo rmd160hl.lo setenv.lo setgroupent.lo setpassent.lo setprogname.lo sha1.lo sha1hl.lo snprintf.lo strlcat.lo strlcpy.lo strmode.lo strsep.lo unvis.lo vis.lo _err.lo _errx.lo _verr.lo _verrx.lo _vwarn.lo _vwarnx.lo _warn.lo _warnx.lo __fts13.lo bt_close.lo bt_conv.lo bt_debug.lo bt_delete.lo bt_get.lo bt_open.lo bt_overflow.lo bt_page.lo bt_put.lo bt_search.lo bt_seq.lo bt_split.lo bt_utils.lo db.lo hash.lo hash_bigkey.lo hash_buf.lo hash_func.lo hash_log2.lo hash_page.lo mpool.lo rec_close.lo rec_delete.lo rec_get.lo rec_open.lo rec_put.lo rec_search.lo rec_seq.lo rec_utils.lo config.log config.status confdefs.h *.stamp defs.mk
rm -f .depend /usr/src/tools/compat/tags
cleandir ===> binstall
rm -f a.out [Ee]rrs mklog core *.core  xinstall xinstall.lo  xinstall.ln
rm -f .depend /usr/src/tools/binstall/tags
cleandir ===> cap_mkdb
rm -f a.out [Ee]rrs mklog core *.core  cap_mkdb cap_mkdb.lo getcap.lo  cap_mkdb.ln getcap.ln
rm -f .depend /usr/src/tools/cap_mkdb/tags
cleandir ===> crunchgen
rm -f a.out [Ee]rrs mklog core *.core  crunchgen crunchgen.lo crunched_skel.lo  crunchgen.ln crunched_skel.ln crunched_skel.c
rm -f .depend /usr/src/tools/crunchgen/tags
cleandir ===> ctags
rm -f a.out [Ee]rrs mklog core *.core  ctags C.lo ctags.lo fortran.lo lisp.lo print.lo tree.lo yacc.lo  C.ln ctags.ln fortran.ln lisp.ln print.ln tree.ln yacc.ln
rm -f .depend /usr/src/tools/ctags/tags
cleandir ===> gencat
rm -f a.out [Ee]rrs mklog core *.core  gencat gencat.lo  gencat.ln
rm -f .depend /usr/src/tools/gencat/tags
cleandir ===> lint
rm -f a.out [Ee]rrs mklog core *.core  xlint xlint.lo mem.lo  xlint.ln mem.ln
rm -f .depend /usr/src/tools/lint/tags
cleandir ===> lint2
rm -f a.out [Ee]rrs mklog core *.core  lint2 main2.lo hash.lo read.lo mem.lo mem2.lo chk.lo msg.lo emit.lo emit2.lo inittyp.lo  main2.ln hash.ln read.ln mem.ln mem2.ln chk.ln msg.ln emit.ln emit2.ln inittyp.ln
rm -f .depend /usr/src/tools/lint2/tags
cleandir ===> lorder
rm -f a.out [Ee]rrs mklog core *.core
cleandir ===> m4
rm -f a.out [Ee]rrs mklog core *.core  m4 eval.lo expr.lo gnum4.lo look.lo main.lo misc.lo trace.lo  eval.ln expr.ln gnum4.ln look.ln main.ln misc.ln trace.ln
rm -f .depend /usr/src/tools/m4/tags
cleandir ===> makewhatis
rm -f a.out [Ee]rrs mklog core *.core  makewhatis makewhatis.lo config.lo  makewhatis.ln config.ln
rm -f .depend /usr/src/tools/makewhatis/tags
cleandir ===> mkdep
rm -f a.out [Ee]rrs mklog core *.core  mkdep mkdep.lo  mkdep.ln
rm -f .depend /usr/src/tools/mkdep/tags
cleandir ===> mtree
rm -f a.out [Ee]rrs mklog core *.core  mtree compare.lo crc.lo create.lo excludes.lo misc.lo mtree.lo spec.lo verify.lo getid.lo stat_flags.lo pack_dev.lo  compare.ln crc.ln create.ln excludes.ln misc.ln mtree.ln spec.ln verify.ln getid.ln stat_flags.ln pack_dev.ln
rm -f .depend /usr/src/tools/mtree/tags
cleandir ===> rpcgen
rm -f a.out [Ee]rrs mklog core *.core  rpcgen rpc_clntout.lo rpc_cout.lo rpc_hout.lo rpc_main.lo rpc_parse.lo rpc_scan.lo rpc_svcout.lo rpc_util.lo rpc_sample.lo rpc_tblout.lo  rpc_clntout.ln rpc_cout.ln rpc_hout.ln rpc_main.ln rpc_parse.ln rpc_scan.ln rpc_svcout.ln rpc_util.ln rpc_sample.ln rpc_tblout.ln
rm -f .depend /usr/src/tools/rpcgen/tags
cleandir ===> tsort
rm -f a.out [Ee]rrs mklog core *.core  tsort tsort.lo  tsort.ln
rm -f .depend /usr/src/tools/tsort/tags
cleandir ===> uudecode
rm -f a.out [Ee]rrs mklog core *.core  uudecode uudecode.lo  uudecode.ln
rm -f .depend /usr/src/tools/uudecode/tags
cleandir ===> texinfo
rm -r -f .*_done build
rm -f a.out [Ee]rrs mklog core *.core
cleandir ===> yacc
rm -f a.out [Ee]rrs mklog core *.core  yacc closure.lo error.lo lalr.lo lr0.lo main.lo mkpar.lo output.lo reader.lo skeleton.lo symtab.lo verbose.lo warshall.lo  closure.ln error.ln lalr.ln lr0.ln main.ln mkpar.ln output.ln reader.ln skeleton.ln symtab.ln verbose.ln warshall.ln
rm -f .depend /usr/src/tools/yacc/tags
cleandir ===> lex
rm -f a.out [Ee]rrs mklog core *.core  lex ccl.lo dfa.lo ecs.lo gen.lo main.lo misc.lo nfa.lo parse.lo sym.lo tblcmp.lo yylex.lo scan.lo skel.lo  ccl.ln dfa.ln ecs.ln gen.ln main.ln misc.ln nfa.ln sym.ln tblcmp.ln yylex.ln scan.ln skel.ln scan.c skel.c parse.c parse.h
rm -f .depend /usr/src/tools/lex/tags
cleandir ===> toolchain
rm -r -f .*_done build
rm -f a.out [Ee]rrs mklog core *.core
rm -r -f .native
cleandir ===> dbsym
rm -f a.out [Ee]rrs mklog core *.core  dbsym dbsym.lo  dbsym.ln
rm -f .depend /usr/src/tools/dbsym/tags
cleandir ===> mdsetimage
rm -f a.out [Ee]rrs mklog core *.core  mdsetimage mdsetimage.lo  mdsetimage.ln
rm -f .depend /usr/src/tools/mdsetimage/tags
cleandir ===> asn1_compile
rm -f a.out [Ee]rrs mklog core *.core  asn1_compile gen.lo gen_copy.lo gen_decode.lo gen_encode.lo gen_free.lo gen_glue.lo gen_length.lo hash.lo lex.lo main.lo parse.lo symbol.lo getarg.lo print_version.lo warnerr.lo strupr.lo get_window_size.lo  gen.ln gen_copy.ln gen_decode.ln gen_encode.ln gen_free.ln gen_glue.ln gen_length.ln hash.ln main.ln symbol.ln getarg.ln print_version.ln warnerr.ln strupr.ln get_window_size.ln print_version.h make-print-version make-print-version.lo print_version.h lex.c parse.c parse.h
rm -f .depend /usr/src/tools/asn1_compile/tags
cleandir ===> cksum
rm -f a.out [Ee]rrs mklog core *.core  cksum cksum.lo crc.lo md2.lo md4.lo md5.lo sha1.lo rmd160.lo print.lo sum1.lo sum2.lo  cksum.ln crc.ln md2.ln md4.ln md5.ln sha1.ln rmd160.ln print.ln sum1.ln sum2.ln
rm -f .depend /usr/src/tools/cksum/tags
cleandir ===> compile_et
rm -f a.out [Ee]rrs mklog core *.core  compile_et compile_et.lo parse.lo lex.lo getarg.lo print_version.lo warnerr.lo strupr.lo get_window_size.lo strlcpy.lo strlcat.lo  compile_et.ln getarg.ln print_version.ln warnerr.ln strupr.ln get_window_size.ln strlcpy.ln strlcat.ln lex.c parse.c parse.h print_version.h parse.c lex.c parse.h print_version.h make-print-version make-print-version.lo
rm -f .depend /usr/src/tools/compile_et/tags
cleandir ===> config
rm -f a.out [Ee]rrs mklog core *.core  config files.lo gram.lo hash.lo main.lo mkheaders.lo mkioconf.lo mkmakefile.lo mkswap.lo pack.lo scan.lo sem.lo util.lo  files.ln hash.ln main.ln mkheaders.ln mkioconf.ln mkmakefile.ln mkswap.ln pack.ln sem.ln util.ln gram.h gram.c scan.c
rm -f .depend /usr/src/tools/config/tags
cleandir ===> installboot
rm -f a.out [Ee]rrs mklog core *.core  installboot installboot.lo sum.lo machines.lo fstypes.lo ffs.lo ffs_bswap.lo bbinfo.lo alpha.lo macppc.lo news.lo pmax.lo sparc.lo sparc64.lo sun68k.lo vax.lo x68k.lo  installboot.ln sum.ln machines.ln fstypes.ln ffs.ln ffs_bswap.ln bbinfo.ln alpha.ln macppc.ln news.ln pmax.ln sparc.ln sparc64.ln sun68k.ln vax.ln x68k.ln ufs ufs.stamp
rm -f .depend /usr/src/tools/installboot/tags
cleandir ===> lint1
rm -f a.out [Ee]rrs mklog core *.core  lint1 cgram.lo scan.lo mem1.lo mem.lo err.lo main1.lo decl.lo tree.lo func.lo init.lo emit.lo emit1.lo inittyp.lo  mem1.ln mem.ln err.ln main1.ln decl.ln tree.ln func.ln init.ln emit.ln emit1.ln inittyp.ln lint.7 cgram.c scan.c cgram.h
rm -f .depend /usr/src/tools/lint1/tags
cleandir ===> makefs
rm -f a.out [Ee]rrs mklog core *.core  makefs makefs.lo walk.lo ffs.lo mkfs.lo buf.lo getid.lo misc.lo spec.lo pack_dev.lo stat_flags.lo strsuftoull.lo ffs_alloc.lo ffs_balloc.lo ffs_bswap.lo ffs_subr.lo ffs_tables.lo ufs_bmap.lo  makefs.ln walk.ln ffs.ln mkfs.ln buf.ln getid.ln misc.ln spec.ln pack_dev.ln stat_flags.ln strsuftoull.ln ffs_alloc.ln ffs_balloc.ln ffs_bswap.ln ffs_subr.ln ffs_tables.ln ufs_bmap.ln ufs ufs.stamp
rm -f .depend /usr/src/tools/makefs/tags
cleandir ===> menuc
rm -f a.out [Ee]rrs mklog core *.core  menuc main.lo parse.lo scan.lo avl.lo mdb.lo util.lo  main.ln avl.ln mdb.ln util.ln parse.c scan.c parse.h
rm -f .depend /usr/src/tools/menuc/tags
cleandir ===> mklocale
rm -f a.out [Ee]rrs mklog core *.core  mklocale yacc.lo lex.lo   yacc.c lex.c yacc.h
rm -f .depend /usr/src/tools/mklocale/tags
cleandir ===> msgc
rm -f a.out [Ee]rrs mklog core *.core  msgc msgmain.lo msgparse.lo msgscan.lo msgdb.lo util.lo avl.lo  msgmain.ln msgdb.ln util.ln avl.ln msgparse.c msgscan.c msgparse.h
rm -f .depend /usr/src/tools/msgc/tags
cleandir ===> pax
rm -f a.out [Ee]rrs mklog core *.core  pax ar_io.lo ar_subs.lo buf_subs.lo cpio.lo file_subs.lo ftree.lo gen_subs.lo getoldopt.lo options.lo pat_rep.lo pax.lo sel_subs.lo tables.lo tar.lo tty_subs.lo getid.lo spec.lo misc.lo stat_flags.lo pack_dev.lo  ar_io.ln ar_subs.ln buf_subs.ln cpio.ln file_subs.ln ftree.ln gen_subs.ln getoldopt.ln options.ln pat_rep.ln pax.ln sel_subs.ln tables.ln tar.ln tty_subs.ln getid.ln spec.ln misc.ln stat_flags.ln pack_dev.ln
rm -f .depend /usr/src/tools/pax/tags
cleandir ===> pwd_mkdb
rm -f a.out [Ee]rrs mklog core *.core  pwd_mkdb pwd_mkdb.lo  pwd_mkdb.ln
rm -f .depend /usr/src/tools/pwd_mkdb/tags
cleandir ===> zic
rm -f a.out [Ee]rrs mklog core *.core  zic zic.lo scheck.lo ialloc.lo  zic.ln scheck.ln ialloc.ln
rm -f .depend /usr/src/tools/zic/tags
cleandir ===> groff
rm -r -f .*_done build
rm -f a.out [Ee]rrs mklog core *.core
cleandir ===> fgen
rm -f a.out [Ee]rrs mklog core *.core  fgen fgen.lo   fgen.c
rm -f .depend /usr/src/tools/fgen/tags
dependall ===> host-mkdep
install ===> host-mkdep
mkdir -p /export/obj/sparc/usr/src/tools/tools.NetBSD-1.5ZC-i386/bin
*** current working directory is /export/obj/sparc/usr/src/tools/host-mkdep (greywolf debugging) ***
cp host-mkdep /export/obj/sparc/usr/src/tools/tools.NetBSD-1.5ZC-i386/bin/nbhost-mkdep
cp: host-mkdep: No such file or directory
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/host-mkdep
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools
rivendell 500# exit

Script done on Tue Jun  4 22:39:46 2002


				--*greywolf;
--
NetBSD: The choice of hundreds worldwide.