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" ;; *)
real="/usr/src/compat/amd64/i386/${dir}" ;; esac; show=${this:-.}; echo
"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && unset
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget ../../../lib
cleandir *** Error code 1

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

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/ THis might help you to figure out which of the commands is failing.

--apb (Alan Barrett)

Home | Main Index | Thread Index | Old Index