title: Golang. Cross Compiling for MIPS
body: <p>I have tried compiling my simply program:</p>
  
  <pre><code>func main(){fmt.Printf("Hello")}
  </code></pre>
  
  <p>to <strong>MIPS architecture</strong> on my PC wit 64 bit Debian Linux according to documentation</p>
  
  <p><a href="https://golang.org/doc/install/source#environment" rel="nofollow noreferrer">https://golang.org/doc/install/source#environment</a></p>
  
  <p>via using command</p>
  
  <pre><code>GOOS=linux GOARCH=mipsle go build 
  GOOS=linux GOARCH=mips go build
  </code></pre>
  
  <p>Every time I get the error:</p>
  
  <blockquote>
    <p>runtime/internal/sys compile</p>
    
    <p>unknown architecture "mipsle(mips)"</p>
  </blockquote>
  
  <p>The interesting thing is, if a try using command:</p>
  
  <pre><code>GOOS=linux GOARCH=mipsle64 go build
  </code></pre>
  
  <p>The program was build.</p>
  
  <p>Is it dependent on system OS on my PC ? How can I build a binary for MIPS or MIPSLE ?</p>