You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Mo Chen <sh...@gmail.com> on 2022/05/17 13:47:32 UTC

Errors in installing v1.10.0

Hi all,

I encountered the following errors in installing v1.10.0. Would you please
help with this?

Platform: MacOS Monterey v12.3.1

1. Using the command "brew install mynewt-newt" installs v1.9.0 instead of
1.10.0.

2. The following error message shows up:

# golang.org/x/sys/unix

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:28:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:43:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:59:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:75:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:90:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:105:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:121:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:136:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:151:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:166:3:
//go:linkname must refer to declared function or variable

/private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:166:3:
too many errors






-- 
Mo Chen

Re: Errors in installing v1.10.0

Posted by Mo Chen <sh...@gmail.com>.
Hi all,

It seems like the error is caused by the deprecation of the "go get"
command. In the website: https://go.dev/doc/go-get-install-deprecation

It says that: "Starting in Go 1.17, installing executables with go get is
deprecated. go install may be used instead. In Go 1.18, go get will no
longer build packages; it will only be used to add, update, or remove
dependencies in go.mod. Specifically, go get will always act as if the -d
flag were enabled."

Would you please update the installation script to reflect this so that
there is no such an error. Also please make the default version 1.10.0
instead of 1.9.0.

Thanks,



On Tue, May 17, 2022 at 8:47 AM Mo Chen <sh...@gmail.com> wrote:

> Hi all,
>
> I encountered the following errors in installing v1.10.0. Would you please
> help with this?
>
> Platform: MacOS Monterey v12.3.1
>
> 1. Using the command "brew install mynewt-newt" installs v1.9.0 instead of
> 1.10.0.
>
> 2. The following error message shows up:
>
> # golang.org/x/sys/unix
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:28:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:43:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:59:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:75:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:90:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:105:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:121:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:136:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:151:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:166:3:
> //go:linkname must refer to declared function or variable
>
>
> /private/tmp/mynewt-newt-20220517-42078-yasjnk/mynewt-newt-mynewt_1_9_0_tag/.brew_home/go/pkg/mod/
> golang.org/x/sys@v0.0.0-20190916202348-b4ddaad3f8a3/unix/zsyscall_darwin_amd64.go:166:3:
> too many errors
>
>
>
>
>
>
> --
> Mo Chen
>


-- 
Mo Chen