XTLS / Go

Go implementation of XTLS protocol.
https://t.me/projectXray
Mozilla Public License 2.0
278 stars 44 forks source link

gollvm support for cpu/cpu_x86.s #4

Closed advancedwebdeveloper closed 3 years ago

advancedwebdeveloper commented 3 years ago

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 formov' 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 formov' 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 formov'

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 formov' 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 formov' 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 commented 3 years ago

https://github.com/v2fly/v2ray-core/issues/249

RPRX commented 3 years ago

Related https://github.com/v2fly/v2ray-core/issues/298