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

Posted 禅与计算机程序设计艺术

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了"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/pid@v0.0.10/pid_go1.5_amd64.s:28: expected pseudo-register; found R13
../../../.go/pkg/mod/github.com/choleraehyq/pid@v0.0.10/pid_go1.5_amd64.s:29: expected pseudo-register; found R14
asm: assembly of ../../../.go/pkg/mod/github.com/choleraehyq/pid@v0.0.10/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

以上是关于"expected pseudo-register; found R13 / R14" error的主要内容,如果未能解决你的问题,请参考以下文章

expect: spawn id exp6 not open while executing "expect eof"

expect脚本远程登陆主机并记录日志

expect脚本同步文件,expect脚本指定host和要同步的文件,构建文件分发系统,批量远程执行

expect 实现模拟交互

expect tools usage

Jest 测试失败,出现 Unexpected token,expected ";"