On Sun, Sep 16, 2012 at 16:58, Aaron Bieber wrote:
> I applied this diff, rebooted and successfully built lang/go, but I seem
> to be running into some pretty strange issues trying to go programs.
> 
> Perhaps I did something wrong.. but every time I try to compile the
> below I get: "/usr/local/bin/go[1]: syntax error: `(' unexpected"
> 
> package main
> 
> import "fmt"
> 
> func main{
> fmt.Println("hello world")
> }
> 
> gofmt of the file containing above code results in:
> "/usr/local/bin/gofmt[1]: syntax error: `^W^Z4' unexpected"

That's more or less the same problem.  If the kernel doesn't recognize
the resulting binaries, they are treated as shell scripts, and
obviously sh doesn't know what to do with them.

Reply via email to