Subject: Re: crosscompile attempt: solaris/x86 -> netbsd/sparc
To: Hubert Feyrer <>
From: Todd Vierling <>
List: tech-toolchain
Date: 03/26/2002 15:21:50
On Tue, 26 Mar 2002, Hubert Feyrer wrote:

: 	obj ===> tools/host-mkdep
: 	/bin/sh: bad substitution
: 	*** Error code 1
: This is due to Solaris /bin/sh not understanding ${foo#bar}.

Read src/tools/compat/README.  To wit:

* /bin/sh *MUST* be replaced with a copy of, or symlink to, either
  /bin/ksh or /usr/xpg4/bin/sh.  This will be fixed in the future to use
  /usr/xpg4/bin/sh in nbmake by default.  (Solaris's /bin/sh is broken
  in some fantastic and amazing ways.)

There's a lot of other very important Solaris info in that file.

-- Todd Vierling <>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support --