Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can't build freshly checked out 6.1 system



On Mon, 01 Jul 2013, D'Arcy J.M. Cain wrote:
I haven't been able to build a 6.1 system for a while.  [...]

cleandir ===> compat
cleandir ===> compat/dirshack
cleandir ===> compat/amd64/i386
(cd /usr/src/compat/amd64/i386 && rm -f a.out [Ee]rrs mklog core
*.core .gdbinit || true) cleandir ===> compat/amd64/i386/../../../lib

*** Failed target:  cleandir-../../../lib
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this="compat/amd64/i386/"; real="/usr/src/compat/amd64/i386" ;; *)
this="compat/amd64/i386/${dir}/";
real="/usr/src/compat/amd64/i386/${dir}" ;; esac; show=${this:-.}; echo
"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && unset
MAKEOBJDIRPREFIX &&
MAKEOBJDIR='${.CURDIR:C,^/usr/src,/usr/src/compat/amd64/i386,}'
MKOBJDIRS=yes MKSHARE=no
BSD_MK_COMPAT_FILE=/usr/src/compat/amd64/i386/bsd.i386.mk 
/usr/obj/tools/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget ../../../lib
cleandir *** Error code 1

Stop.
nbmake: stopped in /usr/src/compat/amd64/i386

The failed command apears to be something like this:

_makedirtarget() { # definition of shell function goes here.
                # function expects two arguments, "dir" and "target"
        }; _makedirtarget ../../../lib
        cleandir

If there's really a newline between "../../../lib" and "cleandir" then the function is called with only one argument, and the second "shift" command inside the function will fail. I don't know what would cause a newline there. It's possible that the apparent newline is an artefact of the cut and paste process in between the build and your email.

You could try adding "set -x" at the beginning of the shell function, inside the definition of the MAKEDIRTARGET variable in src/share/mk/bsd.own.mk. THis might help you to figure out which of the commands is failing.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index