Project

General

Profile

Bug #161

dirname: missing operand

Added by T.J. Yang about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
tools - gate/build tools
Start date:
2010-09-06
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:

Description

when running bldenv.sh command I got following error message.

tjyang@os134:/code/illumos-gate$ ksh93 ./usr/src/tools/scripts/bldenv.sh -d illumos.sh
Build type is DEBUG
dirname: missing operand
Try `dirname --help' for more information.
which_scm: /export/illumos-gate is not a directory.
RELEASE is
VERSION is illumos-gate
RELEASE_DATE is September 2010

The tools can be (re)built with the install target in /export/illumos-gate/usr/src/tools.

Using /usr/bin/ksh as shell.
tjyang@os134:/code/illumos-gate$

History

#1

Updated by Benjamin Grogg about 9 years ago

Hi,

I had the same issue. Okay my steps to success :
First make a "make clean" in /code/illumos-gate/usr/src
Unpack also the crypto :
bzip2 -dc on-crypto.i386.tar.bz2 | tar xvf -

I also change the Gate in illumos.sh
GATE="/code/illumos-gate"; export GATE

Next step is very important open a new shell
then continue with
export PATH=/opt/onbld/bin:$PATH
ksh93 ./usr/src/tools/scripts/bldenv.sh -d illumos.sh

Do the rest. It will run smoothly.

Hope that helps,

benny

#2

Updated by Jeppe Toustrup about 9 years ago

From what I read from the error description, he doesn't experience any problem with building, but rather just the error messages:

dirname: missing operand
Try `dirname --help' for more information.
which_scm: /export/illumos-gate is not a directory.

I presume the last line is related to the 'dirname' error, I have however not looked at the code.

#3

Updated by Chris Jordan about 9 years ago

For me, changing bldenv.sh to be executable eliminated the "dirname: missing operand" error. So updating the build documentation to add "chmod +x ./usr/src/tools/scripts/bldenv.sh" would fix that.

The "which_scm: /export/illumos-gate is not a directory" error means he didn't properly set CODEMGR_WS="/code/illumos-gate" in the illumos.sh file as the build document says to do.

#4

Updated by T.J. Yang about 9 years ago

changing the bldenv.sh to be executable fix the "dirname: missing operand" error message.

tjyang@os134:/code/illumos-gate$ ls -l usr/src/tools/scripts/bldenv.sh -rwxr-xr-x 1 tjyang staff 12676 2010-09-06 18:54 usr/src/tools/scripts/bldenv.sh
tjyang@os134:/code/illumos-gate$ ksh93 ./usr/src/tools/scripts/bldenv.sh -d illumos.sh
Build type is DEBUG
RELEASE is
VERSION is illumos-gate
RELEASE_DATE is September 2010

The top-level 'setup' target is available to build headers and tools.

Using /usr/bin/bash as shell.
tjyang@os134:/code/illumos-gate$

#5

Updated by Garrett D'Amore almost 9 years ago

  • Assignee set to Rich Lowe
  • Priority changed from Normal to Low
#6

Updated by Garrett D'Amore almost 9 years ago

  • Category set to tools - gate/build tools
#7

Updated by Rich Lowe over 8 years ago

  • Status changed from New to Closed

This was fixed, for most practical purposes arbitrarily under #450 in r13272

Also available in: Atom PDF