Open BahaaBBM opened 1 month ago
please print your go version?
go version
go1.22.5 linux/amd64
Please provide the output of:
llgo version
(or simply tell us how it was installed, especially if it prints something like llgo (devel) linux/amd64
)go env
uname -a
cat /etc/os-release
llgo v0.9.4 linux/amd64
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/smart/.cache/go-build'
GOENV='/home/smart/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/smart/Go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/smart/Go/'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/smart/Programs/go/'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/smart/Programs/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.5'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3919813185=/tmp/go-build -gno-record-gcc-switches'
Linux smart-Latitude-E6400 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
NAME="Linux Mint"
VERSION="21.2 (Victoria)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.2"
VERSION_ID="21.2"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=victoria
UBUNTU_CODENAME=jammy
Please provide the output of:
* `llgo version` (or simply tell us how it was installed, especially if it prints something like `llgo (devel) linux/amd64`) * `go env` * `uname -a` * `cat /etc/os-release`
I tried to install it in both ways, using go install -v github.com/goplus/llgo/cmd/llgo@latest
and downloading the binary release, both didn't work.
Do you add require github.com/goplus/llgo v0.9.4
in your go.mod
file?
Do you add
require github.com/goplus/llgo v0.9.4
in yourgo.mod
file?
Thanks, I didn't know that I have to do that, I just tried it on a simple filellgo build main.go
. But now I ran into another error:
ld.lld: error: undefined symbol: syscall.WaitStatus.TrapCause
>>> referenced by os
>>> /tmp/8143fa2412f629088bf8c54fcae3e8558113ac1c841b81acd18731f59d7554fc-d-1a6e55.o:(os.(*ProcessState).String)
>>> referenced by os
>>> /tmp/8143fa2412f629088bf8c54fcae3e8558113ac1c841b81acd18731f59d7554fc-d-1a6e55.o:(os.(*ProcessState).String)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I think the problem is related to the fmt
package? Removing the fmt
package resolved the issue.
Thanks, I didn't know that I have to do that, I just tried it on a simple file
llgo build main.go
.
Will do this automatically in the future.
Hello, this is my first time using llgo. I'm encountering a panic when trying to compile a simple 'Hello, World' program.