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

x/tools/go/internal/gccgoimporter: TestInstallationImporter failures with "bad magic number" on aix-ppc64 #49445

Closed
bcmills opened this issue Nov 8, 2021 · 11 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-AIX Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@bcmills bcmills changed the title x/tools/go/internal/gccgoimporter: TestInstallationImporter failures on aix-ppc64 since 2021-11-05 x/tools/go/internal/gccgoimporter: TestInstallationImporter failures with "bad magic number" on aix-ppc64 Nov 8, 2021
@bcmills
Copy link
Contributor Author

bcmills commented Nov 8, 2021

Ah, it's probably actually much longer than that: x/tools was disabled on aix-ppc64 for a long time because of a cmd/buildlet bug affecting that builder (#31567).

@bcmills bcmills added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 8, 2021
@bcmills
Copy link
Contributor Author

bcmills commented Nov 8, 2021

@thanm, @ianlancetaylor: any idea what might be going wrong here?

@bcmills bcmills added this to the Backlog milestone Nov 8, 2021
@bcmills bcmills added the OS-AIX label Nov 8, 2021
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Nov 8, 2021
@thanm
Copy link
Contributor

thanm commented Nov 8, 2021

I think the problem may be here:

https://go.googlesource.com/tools/+/ddcef59bac37cb1c01484cb6bbe7c246349ec0e8/go/internal/gccgoimporter/importer.go#110

Looks to me as though gccgoimporter is assuming ELF (which is not the case on AIX).

@thanm
Copy link
Contributor

thanm commented Nov 8, 2021

Given that we don't have a debug/xcoff package, perhaps it would make sense to skip the gccgo "installation" test on AIX? I can send a CL for that if needed.

@bcmills
Copy link
Contributor Author

bcmills commented Nov 8, 2021

Yeah, adding a skip makes sense to me. Maybe add a TODO(#29038) to re-enable it?

(#29038)

@bcmills bcmills added the NeedsFix The path to resolution is known, but the work has not been done. label Nov 8, 2021
@gopherbot gopherbot removed the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 8, 2021
@thanm
Copy link
Contributor

thanm commented Nov 8, 2021

I'll take a look. I think there may be some other changes in the main repo that need to be ported over to the x/tools version.

@thanm
Copy link
Contributor

thanm commented Nov 8, 2021

FYI @Helflym

@thanm
Copy link
Contributor

thanm commented Nov 8, 2021

Sent https://go-review.googlesource.com/c/tools/+/362248, along with a couple more CLs to port over main repo changes to x/tools.

@thanm thanm self-assigned this Nov 8, 2021
@thanm
Copy link
Contributor

thanm commented Nov 8, 2021

Looks like I missed a testpoint (x/tools builder is still having issues on aix). Sent another CL to fix: https://go-review.googlesource.com/c/tools/+/362434.

@Helflym
Copy link
Contributor

Helflym commented Nov 9, 2021

I'll try to add XCOFF support for that once I'll have time. It doesn't seem really different from main repo.
Meanwhile, skipping these tests looks good to me.

@thanm
Copy link
Contributor

thanm commented Nov 12, 2021

Closing this out since the aix buildre is green now for x/tools.

@thanm thanm closed this as completed Nov 12, 2021
@rsc rsc unassigned thanm Jun 23, 2022
@golang golang locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-AIX Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants