-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ld: warning: ignoring duplicate libraries: '-lobjc' #4502
Comments
Same here using macOS Sonoma 14.2.1 (23C71) go version go1.21.5 darwin/arm64 using Fyne develop |
This seems to be related to Go 1.21 not Sonoma (as it does not happen with 1.20 or earlier) |
I am having the same issue on MacOS 14.3.1, Go version 1.22 and Fyne version 2.4.4. I found this thread and this post that said it's a MacOS Sonoma linker change, and this one that lists it as a possible homebrew issue, but neither the linker flags or reinstalling every brew package on my system was able to get my Fyne project to build. Edit: I was able to finally build properly using the following:
It's no longer throwing errors and I was able to start my Fyne project. |
It is just a warning and will not have stopped your project from building (that's partly why it's not been a high priority). |
Same issue here on my Apple M2 Pro: MacOS Version: Go Version: Fyne Version: |
Just confirming - for you too it is just a warning and does not break the compilation or any functionality? |
Correct, just an unnerving warning that doesn't prevent me from using Fyne :) |
I replicated and you were right, it looks unrelated to my previous issue which was caused by another package's update. My bad! The message here persists without the flags posted above, though. |
Same issue here on my Apple M3 Pro: MacOS Version: Go Version: Fyne Version: |
But I hate the error message when I compile the project.😵💫 |
Agreed, but I think the issue is in the Go compiler, so not sure what we can do. |
Checklist
Describe the bug
Running through the latest Fyne "Hello World" example I noticed this warning during build:
How to reproduce
go build .
Screenshots
Example code
Fyne version
2.4.3
Go compiler version
1.21.4
Operating system and version
macOS Ventura 13.6.1
Additional Information
No response
The text was updated successfully, but these errors were encountered: