On Sun, Mar 28, 2021 at 9:28 AM 张嘉熙 <f0110v...@gmail.com> wrote: > > For s2-geojson, I meet: > ``` > # github.com/pantrif/s2-geojson/cmd/s2-geojson > /home/jx/.cache/go-build/6b/6bd003c99eb0a9e7c6ea6d372307b292ec615c75c28f9b1f696896ae2fb4272b-d(_go_.o):gomodule:function > github_0com_1ugorji_1go_1codec.intf2impls.intf2impl: error: undefined > reference to 'reflect.unsafe_New' > /home/jx/.cache/go-build/6b/6bd003c99eb0a9e7c6ea6d372307b292ec615c75c28f9b1f696896ae2fb4272b-d(_go_.o):gomodule:function > github_0com_1ugorji_1go_1codec.Decoder.interfaceExtConvertAndDecode: error: > undefined reference to 'reflect.unsafe_New' > decode.go:509: error: undefined reference to 'reflect.unsafe_New' > decode.go:14935: error: undefined reference to 'reflect.unsafe_New'
This is a problem with github.com/ugorji/go. The file code/helper_unsafe.go uses go:linkname to refer directly to functions that are defined but not exported by the standard library. This is not supported and is likely to break with any new release. It evidently breaks with GoLLVM. Ian -- 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/CAOyqgcU6VDXs02NQwooJY63GLC3794%2BBdX__UOaTnBj5KbhX2Q%40mail.gmail.com.