[MacPorts] #63577: copilot fails to build because it builds for arm64 when that was not requested and is not possible

MacPorts noreply at macports.org
Tue Oct 5 03:19:08 UTC 2021


#63577: copilot fails to build because it builds for arm64 when that was not
requested and is not possible
------------------------+-------------------------
 Reporter:  ryandesign  |      Owner:  herbygillot
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.7.1
 Keywords:              |       Port:  copilot
------------------------+-------------------------
 https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/160261/steps
 /install-port/logs/stdio
 {{{
 CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-X
 github.com/aws/copilot-cli/internal/pkg/version.Version=1.11.0 -X
 github.com/aws/copilot-cli/internal/pkg/cli.binaryS3BucketPath=https
 ://ecs-cli-v2-release.s3.amazonaws.com -s -w" -o ./bin/local/copilot-
 darwin-arm64 ./cmd/copilot
 # github.com/aws/copilot-cli/cmd/copilot
 loadinternal: cannot find runtime/cgo
 /opt/local/lib/go/pkg/tool/darwin_amd64/link: running
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_copilot/copilot/work/compwrap/cc/usr/bin/clang
 failed: exit status 1
 ld: warning: ignoring file /opt/local/lib/libMacportsLegacySupport.dylib,
 file was built for x86_64 which is not the architecture being linked
 (arm64): /opt/local/lib/libMacportsLegacySupport.dylib
 ld: warning: ignoring file
 /System/Library/Frameworks//Security.framework/Security, missing required
 architecture arm64 in file
 /System/Library/Frameworks//Security.framework/Security (2 slices)
 ld: warning: ignoring file /usr/lib/libSystem.dylib, missing required
 architecture arm64 in file /usr/lib/libSystem.dylib (2 slices)
 ld: warning: ignoring file
 /Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.osx.a,
 missing required architecture arm64 in file
 /Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.osx.a
 (3 slices)
 ld: warning: ignoring file
 /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation,
 missing required architecture arm64 in file
 /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation (3
 slices)
 ld: warning: URGENT: building for OSX, but linking in object file
 (/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_copilot/copilot/work/.tmp
 /go-link-2651557122/go.o) built for iOS. Note: This will be an error in
 the future.
 Undefined symbols for architecture arm64:
   "_CFArrayGetCount", referenced from:
       _crypto/x509/internal/macos.x509_CFArrayGetCount_trampoline in go.o
   "_CFArrayGetValueAtIndex", referenced from:
       _crypto/x509/internal/macos.x509_CFArrayGetValueAtIndex_trampoline
 in go.o
   "_CFDataGetBytePtr", referenced from:
       _crypto/x509/internal/macos.x509_CFDataGetBytePtr_trampoline in go.o
   "_CFDataGetLength", referenced from:
       _crypto/x509/internal/macos.x509_CFDataGetLength_trampoline in go.o
   "_CFDictionaryGetValueIfPresent", referenced from:
 _crypto/x509/internal/macos.x509_CFDictionaryGetValueIfPresent_trampoline
 in go.o
   "_CFEqual", referenced from:
       _crypto/x509/internal/macos.x509_CFEqual_trampoline in go.o
   "_CFNumberGetValue", referenced from:
       _crypto/x509/internal/macos.x509_CFNumberGetValue_trampoline in go.o
   "_CFRelease", referenced from:
       _crypto/x509/internal/macos.x509_CFRelease_trampoline in go.o
   "_CFStringCreateWithBytes", referenced from:
       _crypto/x509/internal/macos.x509_CFStringCreateWithBytes_trampoline
 in go.o
   "_SecItemExport", referenced from:
       _crypto/x509/internal/macos.x509_SecItemExport_trampoline in go.o
   "_SecPolicyCopyProperties", referenced from:
       _crypto/x509/internal/macos.x509_SecPolicyCopyProperties_trampoline
 in go.o
   "_SecTrustSettingsCopyCertificates", referenced from:
 _crypto/x509/internal/macos.x509_SecTrustSettingsCopyCertificates_trampoline
 in go.o
   "_SecTrustSettingsCopyTrustSettings", referenced from:
 _crypto/x509/internal/macos.x509_SecTrustSettingsCopyTrustSettings_trampoline
 in go.o
 [snip]
 }}}

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


More information about the macports-tickets mailing list