"expected pseudo-register; found R13 / R14" error

Issue

I just run a go project with goland and got error as blow:

# github.com/choleraehyq/pid
../../../.go/pkg/mod/github.com/choleraehyq/[email protected]/pid_go1.5_amd64.s:28: expected pseudo-register; found R13
../../../.go/pkg/mod/github.com/choleraehyq/[email protected]/pid_go1.5_amd64.s:29: expected pseudo-register; found R14
asm: assembly of ../../../.go/pkg/mod/github.com/choleraehyq/[email protected]/pid_go1.5_amd64.s failed

I'm confused about this error and I don't know what todo. I can't do some debug work by this error message and didn't get any useful informations from google. github.com/choleraehyq/pid is referred by under framework.

I just want to know what happened and how to fix it. Please help me, thank you every much.

Solution

Upgrade to the latest version.

$ go get -u github.com/choleraehyq/pid
go: downloading github.com/choleraehyq/pid v0.0.13
go: upgraded github.com/choleraehyq/pid v0.0.10 => v0.0.13

Avoid using old, obsolete, and unsupported versions of software.

UPDATE:

Comment from OP:

Thanks. The original project is a big project and has deep dependencies. I find that I need to add github.com/choleraehyq/pid v0.0.13 // indirect to the project's go.mod. – sh1yu

https://stackoverflow.com/questions/70457957/expected-pseudo-register-found-r13-error

猜你喜欢

转载自blog.csdn.net/universsky2015/article/details/125097892