[gollvm] package plugin is not in GOROOT (/usr/local/go/src/plugin)

246 views
Skip to first unread message

hohoho syncxxx

unread,
Apr 25, 2022, 1:17:22 AM4/25/22
to golang-nuts
Hello, I compile gollvm with:
```
/bin/bash -c cd /llvm-project && git checkout 96b0b9a5e && cd llvm/tools/gollvm && git checkout d30fc0bf && cd gofrontend && git checkout ae20684902 && git apply /tmp/gollvm.patch && cd ../libgo/libffi && git checkout 8111cd0692 && cd ../libbacktrace && git checkout f24e9f4
```

Then, I compile some project code by golang (my purpose is to compile this project to LLVM IR):

go build -gccgoflags -static-libgo -work -x mypackage.go

But I met an error when type this command in my terminal :

../go/pkg/mod/github.com/emitter-io/con...@v1.0.0/config.go:15:2: package plugin is not in GOROOT (/usr/local/go/src/plugin)

gollvm dont support that `plugin` package or my environment is wrong? 

Ian Lance Taylor

unread,
Apr 25, 2022, 1:52:55 AM4/25/22
to hohoho syncxxx, golang-nuts
GoLLVM does not support the plugin package. This is
https://go.dev/issue/36403. As far as I know nobody is working on
this. Sorry.

Ian
Reply all
Reply to author
Forward
0 new messages