On Sat, Mar 13, 2021 at 4:51 PM Khanh TN <tnkha...@gmail.com> wrote:
>
> Hi, Ian,
> It does look like importing golang.org/x/sys/unix causes the problem
> A simple go program like
>
> package main
>
> import (
>          "fmt"
>          "golang.org/x/sys/unix"
> )
>
> func main() {
>    fmt.Println("Hello, World!")
>    fmt.Println(unix.Getpagesize())
> }
>
> does cause the same error as before. This file builds and runs fine with my 
> normal Go but gives that error with Gollvm. If I do not include unix, Gollvm 
> does work though.
> What do you suggest?

This sounds like a bug somewhere between LLVM and gold.  You should
probably file a bug report against gold (at
https://sourceware.org/bugzilla).  I don't know why nobody else has
reported this.

You may be able to make progress by using lld.  I don't know; I've
never tried it myself.

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/CAOyqgcVm2mu3CNgxAVOV9ivuET%3DiutYJ_CBo%2BeQ4wVgk2eH-CQ%40mail.gmail.com.

Reply via email to