Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go,cmd/link: link failures with file name too long from dsymutil #65292

Closed
gopherbot opened this issue Jan 25, 2024 · 5 comments
Closed

cmd/go,cmd/link: link failures with file name too long from dsymutil #65292

gopherbot opened this issue Jan 25, 2024 · 5 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. GoCommand cmd/go NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@gopherbot
Copy link
Contributor

gopherbot commented Jan 25, 2024

#!watchflakes
post <- log ~ `dsymutil: file name too long`

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestNoteReading
=== PAUSE TestNoteReading
=== CONT  TestNoteReading
    note_test.go:25: running testgo [build -ldflags -buildid=TestNoteReading-Build-ID -o /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.exe /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.go]
    note_test.go:41: running testgo [build -ldflags -buildid=TestNoteReading-Build-ID -linkmode=external -o /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello2.exe /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.go]
    note_test.go:41: standard error:
    note_test.go:41: # command-line-arguments
        /Volumes/Work/s/w/ir/x/w/goroot/pkg/tool/darwin_arm64/link: /Volumes/Work/s/w/ir/x/w/goroot/pkg/tool/darwin_arm64/link: running dsymutil failed: fork/exec objc[30190]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1d9f5ff40) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e082c8). One of the two will be used. Which one is undefined.
        objc[30190]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1d9f5ff90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08318). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fd58) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08598). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fda8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e085e8). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fdf8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08638). One of the two will be used. Which one is undefined.
        objc[30190]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fe48) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08688). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fe98) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e086d8). One of the two will be used. Which one is undefined.
        objc[30190]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fee8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08728). One of the two will be used. Which one is undefined.
        /Volumes/Work/s/w/ir/cache/tools/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil: file name too long
        
        
    note_test.go:41: go [build -ldflags -buildid=TestNoteReading-Build-ID -linkmode=external -o /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello2.exe /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.go] failed unexpectedly in /Volumes/Work/s/w/ir/x/w/goroot/src/cmd/go: exit status 1
--- FAIL: TestNoteReading (2.51s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 25, 2024
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestNoteReading"
2024-01-09 18:15 go1.20-darwin-arm64_12 release-branch.go1.20@a95136a8 cmd/go.TestNoteReading (log)
=== RUN   TestNoteReading
=== PAUSE TestNoteReading
=== CONT  TestNoteReading
    note_test.go:25: running testgo [build -ldflags -buildid=TestNoteReading-Build-ID -o /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.exe /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.go]
    note_test.go:41: running testgo [build -ldflags -buildid=TestNoteReading-Build-ID -linkmode=external -o /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello2.exe /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.go]
    note_test.go:41: standard error:
    note_test.go:41: # command-line-arguments
        /Volumes/Work/s/w/ir/x/w/goroot/pkg/tool/darwin_arm64/link: /Volumes/Work/s/w/ir/x/w/goroot/pkg/tool/darwin_arm64/link: running dsymutil failed: fork/exec objc[30190]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1d9f5ff40) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e082c8). One of the two will be used. Which one is undefined.
        objc[30190]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1d9f5ff90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08318). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fd58) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08598). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fda8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e085e8). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fdf8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08638). One of the two will be used. Which one is undefined.
        objc[30190]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fe48) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08688). One of the two will be used. Which one is undefined.
        objc[30190]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fe98) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e086d8). One of the two will be used. Which one is undefined.
        objc[30190]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1d9f5fee8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103e08728). One of the two will be used. Which one is undefined.
        /Volumes/Work/s/w/ir/cache/tools/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil: file name too long
        
        
    note_test.go:41: go [build -ldflags -buildid=TestNoteReading-Build-ID -linkmode=external -o /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello2.exe /Volumes/Work/s/w/ir/x/t/cmd-go-test-1183289900/gotest244242550/hello.go] failed unexpectedly in /Volumes/Work/s/w/ir/x/w/goroot/src/cmd/go: exit status 1
--- FAIL: TestNoteReading (2.51s)

watchflakes

@bcmills bcmills changed the title cmd/go: TestNoteReading failures cmd/go,cmd/link: link failures with file name too long from dsymutil Jan 26, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jan 26, 2024
@bcmills bcmills added the GoCommand cmd/go label Jan 26, 2024
@bcmills
Copy link
Contributor

bcmills commented Jan 26, 2024

@golang/compiler: the arguments that cmd/go is passing to the link command don't seem terribly long to me, so I'm treating this a cmd/link bug for now.

(That said, it would be helpful if the error message from cmd/link gave the full command link for the dsymutil invocation that failed!)

@gopherbot
Copy link
Contributor Author

Change https://go.dev/cl/558856 mentions this issue: cmd/link: print failed external command invocation

gopherbot pushed a commit that referenced this issue Jan 26, 2024
When the invocation of the external linker, dsymutil or strip
command fails, print the command we invoked.

For #65292.

Change-Id: Icdb5f9ee942ebda4276f6373c3fbbf5222088d0b
Reviewed-on: https://go-review.googlesource.com/c/go/+/558856
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
@mknyszek
Copy link
Contributor

mknyszek commented Feb 7, 2024

@cherrymui Sent a CL for additional diagnostics, so we're going to wait for it to happen again.

@mknyszek mknyszek added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Feb 7, 2024
ezz-no pushed a commit to ezz-no/go-ezzno that referenced this issue Feb 18, 2024
When the invocation of the external linker, dsymutil or strip
command fails, print the command we invoked.

For golang#65292.

Change-Id: Icdb5f9ee942ebda4276f6373c3fbbf5222088d0b
Reviewed-on: https://go-review.googlesource.com/c/go/+/558856
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
@gopherbot
Copy link
Contributor Author

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. GoCommand cmd/go NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
Archived in project
Development

No branches or pull requests

3 participants