Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gollvm support for cpu/cpu_x86.s #4

Closed
advancedwebdeveloper opened this issue Oct 2, 2020 · 2 comments
Closed

gollvm support for cpu/cpu_x86.s #4

advancedwebdeveloper opened this issue Oct 2, 2020 · 2 comments

Comments

@advancedwebdeveloper
Copy link

I was trying to build v2ray-core and caught some bugs:

~/go_projects/v2ray-core$ go test ./...

github.com/xtls/go/cpu

vendor/github.com/xtls/go/cpu/cpu_x86.s: Assembler messages:
vendor/github.com/xtls/go/cpu/cpu_x86.s:10: Error: no such instruction: text ·cpuid(SB),NOSPLIT,$0-24' vendor/github.com/xtls/go/cpu/cpu_x86.s:11: Error: junk (FP)' after expression
vendor/github.com/xtls/go/cpu/cpu_x86.s:11: Error: too many memory references for mov' vendor/github.com/xtls/go/cpu/cpu_x86.s:12: Error: junk (FP)' after expression
vendor/github.com/xtls/go/cpu/cpu_x86.s:12: Error: too many memory references for mov' vendor/github.com/xtls/go/cpu/cpu_x86.s:14: Error: too many memory references for mov'
vendor/github.com/xtls/go/cpu/cpu_x86.s:15: Error: too many memory references for mov' vendor/github.com/xtls/go/cpu/cpu_x86.s:16: Error: too many memory references for mov'
vendor/github.com/xtls/go/cpu/cpu_x86.s:17: Error: too many memory references for mov' vendor/github.com/xtls/go/cpu/cpu_x86.s:21: Error: no such instruction: text ·xgetbv(SB),NOSPLIT,$0-8'
vendor/github.com/xtls/go/cpu/cpu_x86.s:24: Error: too many memory references for mov' vendor/github.com/xtls/go/cpu/cpu_x86.s:25: Error: too many memory references for mov'

v2ray.com/core/external/github.com/cloudflare/sidh/internal/utils

external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s: Assembler messages:
external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:5: Error: no such instruction: text ·cpuid(SB),NOSPLIT,$0-4' external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:6: Error: junk (FP)' after expression
external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:6: Error: too many memory references for mov' external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:7: Error: junk (FP)' after expression
external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:7: Error: too many memory references for mov' external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:9: Error: too many memory references for mov'
external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:10: Error: too many memory references for mov' external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:11: Error: too many memory references for mov'
external/github.com/cloudflare/sidh/internal/utils/cpuid_amd64.s:12: Error: too many memory references for `mov'

gollvm is used.
My release build.

CC @thanm @cherrymui

@RPRX
Copy link
Member

RPRX commented Oct 6, 2020

v2fly/v2ray-core#249

@RPRX RPRX closed this as completed Oct 6, 2020
@RPRX
Copy link
Member

RPRX commented Oct 14, 2020

Related v2fly/v2ray-core#298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants