Error while installing 'github.com/ardanlabs/gotour/cmd/tour'
knbr13 opened this issue · comments
Abdullah Alaadine commented
Issue
I encountered an issue while trying to install the github.com/ardanlabs/gotour/cmd/tour
package using Go version go1.21.1
. Below is the error message I received:
# runtime/internal/sys
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:9:7: len8tab redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:76:7: other declaration of len8tab
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:32:6: Len64 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:99:6: other declaration of Len64
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:50:7: m0 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:117:7: other declaration of m0
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:51:7: m1 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:118:7: other declaration of m1
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:52:7: m2 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:119:7: other declaration of m2
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:55:6: OnesCount64 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:122:6: other declaration of OnesCount64
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:86:6: LeadingZeros64 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:153:6: other declaration of LeadingZeros64
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:89:6: LeadingZeros8 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:156:6: other declaration of LeadingZeros8
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:92:6: Len8 redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:159:6: other declaration of Len8
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:101:6: Prefetch redeclared in this block
/usr/local/go/src/runtime/internal/sys/intrinsics.go:200:6: other declaration of Prefetch
/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:101:6: too many errors
Environment
- Go version:
go1.21.1
- Operating System: Linux (amd64)
Steps to Reproduce
- Run the following command:
go install github.com/ardanlabs/gotour/cmd/tour@latest
Expected Behavior
I expected the github.com/ardanlabs/gotour/cmd/tour
package to be installed without any errors.
Actual Behavior
The installation process failed with the error mentioned above.
Additional Information
Please let me know if you need any additional information to diagnose and fix this issue.
Thank you!
William Kennedy commented
hmmmm. Ok I will take a look at this.
William Kennedy commented
I didn't have a problem and I am running
$ go version
go version go1.21.1 darwin/arm64
~/code/temp ⌚ 16:05:16
$ go install github.com/ardanlabs/gotour/cmd/tour@latest
go: downloading github.com/ardanlabs/gotour v0.0.0-20230912193056-14539a6bedbe
~/code/temp ⌚ 16:05:27
$ which tour
/Users/bill/code/go/bin/tour
~/code/temp ⌚ 16:05:43
$
Abdullah Alaadine commented
Thank you for your response.
After some investigation, I found the source of the issue, it was specific to my machine, and I've resolved it.
Your assistance was greatly appreciated!