Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2022-07-18 Thread hiter adole
Sorry for confusing, but I got something wrong: gollvm still does not work under root. It seems problems related with split-stack, but I do not know how to fix it yet. 在2022年7月17日星期日 UTC+8 22:59:14 写道: > Hi khanh: > > I met that problem too, and I thought I somehow fix it. I located the >

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2022-07-17 Thread hiter adole
Hi khanh: I met that problem too, and I thought I somehow fix it. I located the source code and found that when caller function is compiled with "fsplit-stack" and callee function is compiled with "fno-split-stack", the address of caller functions has to be relocated. However it remains me

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2022-04-24 Thread Ian Lance Taylor
On Sun, Apr 24, 2022 at 10:17 PM hohoho syncxxx wrote: > > Hi, I meet that error in ubuntu too. And here is my env: > LLVM: 2c5590adfe09 > > gollvm: f17ba8c7708356ef447525e05cd6f2770845c7d7 > > gofrontend: e3bfc0889237a5bb8aa7ae30e1cff14f90a5f941 > > libffi:

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2022-04-24 Thread hohoho syncxxx
Hi, I meet that error in ubuntu too. And here is my env: *LLVM: 2c5590adfe09gollvm: f17ba8c7708356ef447525e05cd6f2770845c7d7gofrontend: e3bfc0889237a5bb8aa7ae30e1cff14f90a5f941libffi: 0f2dd369cd5edcefad29b3fca4e1d08cb34f8f19libbacktrace: d0f5e95a87a4d3e0a1ed6c069b5dae7cbab3ed2a* When

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-15 Thread Khanh TN
Hi Ian, This problem is somewhat resolved for me now. Gollvm works perfectly in my fresh installed Debian. Maybe Go and Gollvm has some conflicts in my previous build or Ubuntu got some problem. Thanks a lot for your help. Khanh On Tuesday, March 16, 2021 at 7:53:34 AM UTC+8 Ian Lance Taylor

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-15 Thread Ian Lance Taylor
On Sat, Mar 13, 2021 at 4:51 PM Khanh TN 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!")

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-13 Thread Khanh TN
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

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-13 Thread Khanh TN
Hi Ian, "gold --version" gives me "GNU gold (GNU Binutils for Ubuntu 2.34) 1.16" "go list -m all" does list the module golang.org/x/sys. Does it help with the case? Thanks for your help. Khanh On Wednesday, March 10, 2021 at 11:14:19 AM UTC+8 Ian Lance Taylor wrote: > I'm not sure. What

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-09 Thread Khanh TN
Ah, thanks. I see. Let me investigate my case further. I will report back later, eh, if I remember to. 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 wrote: > > > > Thanks a lot for the fix! > > I tried git pull all

Re: [go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-09 Thread Ian Lance Taylor
On Tue, Mar 9, 2021 at 6:29 PM Khanh TN 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

[go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-09 Thread Khanh TN
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:

[go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-09 Thread Khanh TN
To clarify, I got an error on step "Using an installed copy of gollvm" of page https://go.googlesource.com/gollvm On Wednesday, March 10, 2021 at 1:21:46 AM UTC+8 Khanh TN wrote: > Hi, I'm a newbie. > I built and installed gollvm with instructions from > https://go.googlesource.com/gollvm >

[go-nuts] Re: Error running gollvm on Ubuntu 20.04

2021-03-09 Thread Khanh TN
Looks like the same error as this one https://github.com/golang/go/issues/44861 . I'm just looking at their first comment on github, ignoring the lengthy bug report. On Wednesday, March 10, 2021 at 1:21:46 AM UTC+8 Khanh TN wrote: > Hi, I'm a newbie. > I built and installed gollvm with