../../templexxx/cpu/cpu_x86.go:9:23: CacheLineSize redeclared in this block,previous declaration at ../../templexxx/cpu/cpu_wasm.go:7:23

#3 · closed · 5 comments

View on GitHub ↗

fwhezfwhez

``` # github.com/templexxx/cpu ../../templexxx/cpu/cpu_x86.go:9:23: CacheLineSize redeclared in this block previous declaration at ../../templexxx/cpu/cpu_wasm.go:7:23 ```

Comments

templexxx

Thank you! But I wonder how to reproduce it? @fwhezfwhez I know nothing about wasm. But how could this happen? For Go, aren't they are different platform?

fwhezfwhez

go 1.9, 1.10 fail in travis-ci

fwhezfwhez

``` # github.com/templexxx/xor ../../../../pkg/mod/github.com/templexxx/[email protected]/xor_amd64.go:3:8: imported and not used: "github.com/templexxx/cpufeat" as cpu ../../../../pkg/mod/github.com/templexxx/[email protected]/xor_amd64.go:10:5: undefined: cpufeat ```

fwhezfwhez

I don't know either. My project import `github.com\xtaci\kcp-go` But this package import `github.com/templexxx/xor`, `././cpufeat` I guess his repo might import different version of your packages and cause this bug.

templexxx

In the new version of kcp-go, there is no `github.com/templexxx/xor` but `github.com/templexxx/xorsimd` And `github.com/templexxx/cpufeat` is archived.