Opened 17 months ago

Last modified 3 weeks ago

#67582 assigned defect

aws-iam-authenticator @0.5.2: go:linkname must refer to declared function or variable

Reported by: raxod502-plaid (Radon Rosborough) Owned by: asobrien
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: raxod502-plaid (Radon Rosborough)
Port: aws-iam-authenticator

Description

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.

Attachments (1)

main.log (19.4 KB) - added by raxod502-plaid (Radon Rosborough) 17 months ago.
Log file for aws-iam-authenticator build

Download all attachments as: .zip

Change History (3)

Changed 17 months ago by raxod502-plaid (Radon Rosborough)

Attachment: main.log added

Log file for aws-iam-authenticator build

comment:1 Changed 17 months ago by jmroot (Joshua Root)

Owner: set to asobrien
Status: newassigned

comment:2 Changed 3 weeks ago by raxod502-plaid (Radon Rosborough)

The error no longer occurs with aws-iam-authenticator 0.6.20

Note: See TracTickets for help on using tickets.