-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot properly build a simple sqlite application #1279
Comments
What version of Go are you using? What version of this library are you using? What version of which C compiler are you using? Are you saying that go build itself hangs, or the binary that it produces hangs? |
Versions:
gcc -v 668ms
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin24.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin The produced binary hangs when trying to start it. |
Your crash report suggests it is getting killed because the code was not signed. That seems like a macos configuration issue of some kind? |
+1 |
No workaround unfortunately. |
And I am also being able to build the app without the import being in it, so I don't think it's MacOS configuration issue. |
I encountered a similar issue and resolved it temporarily by manually code signing with |
I had this same problem (specifically, binaries where I had included I ended up resolving it by uninstalling and reinstalling go from brew ( That's an unfortunately superstitious thing to have to do, but I haven't had this since. Given what feels like a recent spike in these reports for mac users here, I wonder if there's something weird that happened to brew installs of go and clang interacting with each other. |
I recently updated to Mac OS 15.0.1 Sequoia and started experience this issue as well. Running I did not install Switching to using Homebrew go resolved the issue. |
Hey everyone!
I must first state that I have never used this package before, but I had some experience with SQLite in other languages.
I am working on my MacOS (Sequoia - M3 Pro), using VsCode. Everything is up to date, always.
I wrote my very simple code:
I am unable to debug my app in VsCode with the following
lauch.json
:I went and tried to debug manually, but then I had issues when trying to create an executable from it 😢
I am able to run this code with the
go run ./cmd/hello
command, however, I have difficulties when I try to create executable from it. I tried the following commands:None of that seems to result an executable that works.
If I try to run the executable from the vs-code integrated command line, the executable hangs, won't respond to
ctrl+c
, in separate terminals, the executable crashes.Crash report attached.
I think i will have other issues once I need to dockerize my app, but that's for another day I think (cross platform builds for amd64/arm64 linux).
Do you have any good tips on this?
crashreport.txt
The text was updated successfully, but these errors were encountered: