Hi, I'm building a tool to analyze the LLVM bitcode of some Go code with 
gollvm.
We are currently running LLVM10. We will migrate to LLVM11/12 but not sure 
when.
I followed Than's instruction to build LLVM10-compatible gollvm from 
https://groups.google.com/g/golang-nuts/c/dMZ7vk_Rjzw/m/b1zYDOxLAAAJ

It worked out great until recently. Code that imports golang.org/x/sys/unix 
will cause errors when "go build". I looked around and found out the error 
message is the same as in https://github.com/mainflux/coap-cli/issues/3 to 
the line number of gccgo.go.

A suggested fix is getting CGO_ENABLED=1 but "go env" shows CGO_ENABLED=1 
and "set CGO_ENABLED=1" does not help.

The latest gollvm commit works fine though but it requires LLVM13.

Is there any known fix or workaround for my situation? Should I set 
CGO_ENABLED somewhere else?

Thanks,
Khanh

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a92eb44d-73c6-43dd-9f1a-551b06589a78n%40googlegroups.com.

Reply via email to