go - "no debug info in ELF executable errno" when running a binary built with gccgo -
I decided to try, and thus wrote the code of the following code:
Package main import "fmt" func main () {fmt.Printf ("hello, world \ n")}
I saved it main.go
, and Then he tried to compile it using gccgo main.go -o main
. This worked, however, when I tried to do the ./ Main
, I found the following message:
ALF executable error-1, no debug info in deadly error No: There is no debug info in the ALF executable Runtime Stack: No debug info in the ALF executable fault
What happened on earth?
First of all, do not use GCCO, it does not support Go 1.3. Second, depending on Go Runtime debug information, which I think is you using an old version of GCC (maybe 4.8) which automatically strips it, you can call it gccgo -g main Such as .go -o main
If you use Ubuntu, it is relevant.
Comments
Post a Comment