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?

Khanh
On Wednesday, March 10, 2021 at 11:14:19 AM UTC+8 Ian Lance Taylor wrote:

> On Tue, Mar 9, 2021 at 6:29 PM Khanh TN <tnkh...@gmail.com> wrote:
> >
> > Thanks a lot for the fix!
> > I tried git pull all the repos and reinstalled gollvm and I can run "go" 
> now.
> >
> > However there are still problems.
> > I am trying "go build" on some of my go code. Some build just fine.
> > But there is one piece of code that "go build" gives this error:
> > "/usr/bin/ld.gold: error: $WORK/b076/_pkg_.a(gccgo_c.o): failed to match 
> split-stack sequence at section 1 offset 0
> > /usr/bin/ld.gold: error: $WORK/b076/_pkg_.a(gccgo_c.o): failed to match 
> split-stack sequence at section 1 offset a6"
> >
> > On this piece, if I run "go build" using normal Go, not gollvm, it 
> builds just fine.
> > Is there still a bug or is it on my end?
>
> I'm not sure. What version of gold are you using? Do you happen to
> know if the program you are building imports golang.org/x/sys/unix? I
> ask that to try to figure out which gccgo_c file is involved here.
>
> 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/28984b31-abab-4300-b64a-6b71d2866d24n%40googlegroups.com.

Reply via email to