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/link: error on windows/arm64 with clang/lld 13.0.1 #51903
Comments
That error message appears to come from go/src/cmd/link/internal/ld/pe.go Line 690 in 4aa1efe
|
Change https://go.dev/cl/395215 mentions this issue: |
I don't have a way to test it. Could you try if CL https://go-review.googlesource.com/c/go/+/395215 fixes it? Thanks! |
I applied that patch to go 1.18, rebuilt go, and then built librclone. It successfully built the DLL, but trying to load it gives an error that it's not a valid Win32 application. I don't know if that's the same bug as this or not though. |
That patch did however result in a successful and functional hugo.exe built with |
I haven't been able to figure out what's wrong with the DLL that Windows won't load it. I'm attaching it in case somebody has some idea of what to look for. |
Thanks for testing. It seems the CL does fix the immediate issue.
This looks like something different. How do you load the DLL? |
I created a new issue to discuss the invalid DLL |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWindows 11 ARM64, running MSYS2's package of clang/llvm/lld 13.0.1.
What did you do?
Download and extract https://downloads.rclone.org/v1.58.0/rclone-v1.58.0.tar.gz
What did you expect to see?
Successful build.
What did you see instead?
I have also seen this same error with hugo, but in that case the error only occurred when
-ldflags=-linkmode=external
was used and went away without that option.The text was updated successfully, but these errors were encountered: