Open luoliwoshang opened 3 months ago
Try llgo run -v .
to see if there is any output.
Try
llgo run -v .
to see if there is any output.
There is no output.
llgo/_demo/hello
❯ llgo run -v .
^C^C^C^C^C
When I execute it directly in the source program, it works, but once I execute go install. /.
After that, use llgo run. It will get stuck.
llgo/cmd/llgo on main
❯ go run llgo.go run /Users/zhangzhiyang/Documents/Code/goplus/llgo/_demo/hello/hello.go
# command-line-arguments
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm@17/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm@17/17.0.6/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
Hello world
When I use 1.19 go, it can be installed and used normally.
llgo/_demo/hello
❯ llgo run .
Hello world
update
The Go versions 1.21 and 1.22 installed via brew can run normally. The following tests are all based on the Go versions downloaded and installed from the official Go website: https://go.dev/dl/
main content
After testing, currently 1.19 and 1.20 go can run demo
This is where the version with the bug is counted
go 1.19
go 1.20
go 1.21
ld warning like this
Bug Report
When I followed the install process to install llgo, when I ran the first Demo, it got stuck, and I couldn't kill the program using control + c https://github.com/goplus/llgo?tab=readme-ov-file#how-to-install
When I executed Demo, he got stuck.
When I execute it directly in the source program, it works, but once I execute go install. /. After that, use llgo run. It will get stuck.
Environment
mac version: MacOS 14.2 M3 MacBook Pro (2023)
go version
clang version
In versions 1.19 and 1.20 of Go, the installed llgo works normally