[MacPorts] #68700: go @1.17.13_0 - Legacy Go Compiler Completely Broken on Lion and Mtn Lion

MacPorts noreply at macports.org
Sat Nov 18 22:46:04 UTC 2023


#68700: go @1.17.13_0 - Legacy Go Compiler Completely Broken on Lion and Mtn Lion
---------------------+------------------------------
  Reporter:  RobK88  |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.8.1
Resolution:          |   Keywords:  lion moutainlion
      Port:  go      |
---------------------+------------------------------

Comment (by RobK88):

 @kencu -- No luck building when using the following environment variables:

 {{{
 configure.env-append GOEXPERIMENT=noregabi
 build.env-append GOEXPERIMENT=noregabi
 }}}

 I suspect the problem is with the `golang.org/x/sys` dependency.  If I
 only knew how to update it using `go-1.4` in the Portfile.

 I tried adding the following to the Portfile


 {{{
 exec  ${prefix}/lib/go-1.4/bin/go get -u golang.org/x/sys
 }}}

 But I get the same error when I try to update `golang.org/x/sys` at the
 command line:


 {{{
 $ sudo port -vs install  go
 Error: Unable to open port: package golang.org/x/sys: unrecognized import
 path "golang.org/x/sys"
 }}}

 Maybe `GOPATH` needs to be set properly.

-- 
Ticket URL: <https://trac.macports.org/ticket/68700#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list