<div dir="ltr">Originally raised as GitHub issue #17<br><br><br><div class="">

    <div class="">
      <div class="">
          <ul><li>
<code>make menuconfig</code> works</li><li>
<code>make</code> fails because a <code>sed</code> expression isn't understood by Mac OS X (and hence BSD) <code>sed</code>
It may be possible to have a different expression. If you can give me a 
little insight into what the expression is trying to do, I can have a go
 at sorting this out.</li></ul>

<p>I'm really keen to get a minimal toybox working on other POSIX 
platforms, because it provides an excellent baseline for a consistent, 
secure and sensible set of tools to enable cross compilation toolchains.
 Oh, and not using autocruft gets it an extra star...</p>

<p>More details:-</p>

<div class=""><pre>maclaptop:toybox raph$ make
scripts/make.sh
Generate headers from toys/<span class="">*</span>/<span class="">*</span>.c...
Make generated/config.h from .config.
generated/flags.h sed: 2: <span class=""><span class="">"</span>s/<span class="">"</span></span> <span class="">*</span><span class=""><span class="">"</span>//g;/^#/d;t clear ...<span class="">"</span></span>: undefined label <span class=""><span class="">'</span>clear;:clear;s/"/"/p;t;s/\( [AB] \).*/\1 " "/p<span class="">'</span></span>
sed: 1: <span class=""><span class="">"</span>s/ A / /;t pair;h;s/\([ ...<span class="">"</span></span>: undefined label <span class=""><span class="">'</span>pair;h;s/\([^ ]*\).*/\1 " "/;x;b single;:pair;h;n;:single;s/[^ ]* B //;H;g;s/\n/ /;p<span class="">'</span></span>
clang: error: unable to execute <span class="">command</span>: Broken pipe: 13
clang: error: clang frontend <span class="">command</span> failed due to signal (use -v to see invocation)
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to <a href="http://developer.apple.com/bugreporter/">http://developer.apple.com/bugreporter/</a> and include the crash backtrace, preprocessed <span class="">source</span>, and associated run script.
clang: note: diagnostic msg: Error generating preprocessed <span class="">source</span>(s) - ignoring input from stdin.
clang: note: diagnostic msg: Error generating preprocessed <span class="">source</span>(s) - no preprocessable inputs.
sed: 2: <span class=""><span class="">"</span>s/<span class="">"</span></span> <span class="">*</span><span class=""><span class="">"</span>//g;/^#/d;t clear ...<span class="">"</span></span>: undefined label <span class=""><span class="">'</span>clear;:clear;s/"/"/p;t;s/\( [AB] \).*/\1 " "/p<span class="">'</span></span>
clang: error: unable to execute <span class="">command</span>: Broken pipe: 13
clang: error: clang frontend <span class="">command</span> failed due to signal (use -v to see invocation)
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to <a href="http://developer.apple.com/bugreporter/">http://developer.apple.com/bugreporter/</a> and include the crash backtrace, preprocessed <span class="">source</span>, and associated run script.
clang: note: diagnostic msg: Error generating preprocessed <span class="">source</span>(s) - ignoring input from stdin.
clang: note: diagnostic msg: Error generating preprocessed <span class="">source</span>(s) - no preprocessable inputs.
Makefile:19: recipe <span class="">for</span> target <span class=""><span class="">'</span>toybox<span class="">'</span></span> failed
make: <span class="">***</span> [toybox] Error 1</pre></div>
      </div>
    </div>

  <br></div>Raph</div>