[MacPorts] #67582: aws-iam-authenticator @0.5.2: go:linkname must refer to declared function or variable

MacPorts noreply at macports.org
Tue Jun 6 21:00:12 UTC 2023


#67582: aws-iam-authenticator @0.5.2: go:linkname must refer to declared function
or variable
----------------------------+-----------------------------------
 Reporter:  raxod502-plaid  |      Owner:  (none)
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.8.1
 Keywords:                  |       Port:  aws-iam-authenticator
----------------------------+-----------------------------------
 When installing the latest version of aws-iam-authenticator, compilation
 fails:

 {{{
 % sudo port install aws-iam-authenticator
 Password:
 --->  Computing dependencies for aws-iam-authenticator
 The following dependencies will be installed:  go
 Continue? [Y/n]:
 --->  Fetching archive for go
 --->  Attempting to fetch go-1.20.4_0.darwin_22.arm64.tbz2 from
 https://packages.macports.org/go
 --->  Attempting to fetch go-1.20.4_0.darwin_22.arm64.tbz2.rmd160 from
 https://packages.macports.org/go
 --->  Installing go @1.20.4_0
 --->  Activating go @1.20.4_0
 --->  Cleaning go
 --->  Fetching archive for aws-iam-authenticator
 --->  Attempting to fetch aws-iam-
 authenticator-0.5.2_0.darwin_22.arm64.tbz2 from
 https://packages.macports.org/aws-iam-authenticator
 --->  Attempting to fetch aws-iam-
 authenticator-0.5.2_0.darwin_22.arm64.tbz2 from
 http://mirror.fcix.net/macports/packages/aws-iam-authenticator
 --->  Attempting to fetch aws-iam-
 authenticator-0.5.2_0.darwin_22.arm64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/aws-iam-
 authenticator
 --->  Fetching distfiles for aws-iam-authenticator
 --->  Attempting to fetch aws-iam-authenticator-0.5.2.tar.gz from
 https://distfiles.macports.org/go
 --->  Verifying checksums for aws-iam-authenticator
 --->  Extracting aws-iam-authenticator
 --->  Configuring aws-iam-authenticator
 --->  Building aws-iam-authenticator
 Error: Failed to build aws-iam-authenticator: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_sysutils_aws-iam-authenticator/aws-
 iam-authenticator/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port aws-iam-authenticator failed
 }}}

 I have attached the full log file. The relevant errors seem to be:

 {{{
 :info:build Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_sysutils_aws-iam-authenticator/aws-
 iam-authenticator/work/gopath/src/sigs.k8s.io/aws-iam-authenticator" &&
 /opt/local/bin/go build -ldflags="-s -w -X main.version=0.5.2 -X
 main.commit=292b9b82df69b87af962b92485b254d9f4b10f00" ./cmd/aws-iam-
 authenticator
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_sysutils_aws-iam-authenticator/aws-
 iam-authenticator/work/gopath/src/sigs.k8s.io/aws-iam-authenticator" &&
 /opt/local/bin/go build -ldflags="-s -w -X main.version=0.5.2 -X
 main.commit=292b9b82df69b87af962b92485b254d9f4b10f00" ./cmd/aws-iam-
 authenticator
 :info:build # sigs.k8s.io/aws-iam-
 authenticator/vendor/golang.org/x/sys/unix
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:28:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:43:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:59:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:75:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:90:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:105:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:121:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:136:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:151:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:166:3:
 //go:linkname must refer to declared function or variable
 :info:build vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:166:3:
 too many errors
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_sysutils_aws-iam-authenticator/aws-
 iam-authenticator/work/gopath/src/sigs.k8s.io/aws-iam-authenticator" &&
 /opt/local/bin/go build -ldflags="-s -w -X main.version=0.5.2 -X
 main.commit=292b9b82df69b87af962b92485b254d9f4b10f00" ./cmd/aws-iam-
 authenticator
 }}}

 I am not sure whether this is a packaging error, upstream error, or system
 error on my end. There is a suggested solution at
 https://stackoverflow.com/a/71508032 but I think this is probably supposed
 to be taken care of by the packaging rather than manually.

-- 
Ticket URL: <https://trac.macports.org/ticket/67582>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list