Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

underfined function error in go :jmpToFunctionValue

Tags:

go

goland

While running main.go getting this error in monkey file and function is given below.

bou.ke/monkey

../go/pkg/mod/bou.ke/[email protected]/replace.go:24:14: undefined: jmpToFunctionValue

Anyone help me with that?

like image 886
Shubhankar Mrinal Avatar asked Nov 15 '25 03:11

Shubhankar Mrinal


2 Answers

I also face this error while using mac M1.

could you check the goarch var in go env? if you got arm64, you need to change it to amd64 using this command

 go env -w GOARCH=amd64

it works for me

like image 178
Tafaquh Fiddin Avatar answered Nov 17 '25 22:11

Tafaquh Fiddin


GOARCH=amd64 fixes the issue but takes away the ability of debugger to stop at breakpoints

like image 42
priyanka kumari Avatar answered Nov 17 '25 20:11

priyanka kumari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!