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 the

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:

Re: [go-nuts] Endlessly increasing CPU usage problem

2021-03-09 Thread Uli Kunitz
Ian, I recommend to use a newer version. go 1.0.3 has been released in September 2012. On Thursday, January 31, 2013 at 2:57:33 AM UTC+1 ian.ra...@gmail.com wrote: > Thanks Dave, those look like great suggestions. I'm running Go 1.0.3 on > Ubuntu: > > # go version

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

2021-03-09 Thread 'Than McIntosh' via golang-nuts
Thanks Ian, yes, that seems likely. I will look into sending a patch. Than On Tue, Mar 9, 2021 at 1:23 PM Ian Lance Taylor wrote: > On Tue, Mar 9, 2021 at 9:21 AM Khanh TN wrote: > > > > Hi, I'm a newbie. > > I built and installed gollvm with instructions from > https://go.googlesource.com/go

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

2021-03-09 Thread Ian Lance Taylor
On Tue, Mar 9, 2021 at 9:21 AM Khanh TN wrote: > > Hi, I'm a newbie. > I built and installed gollvm with instructions from > https://go.googlesource.com/gollvm > The build/installation was successful but it cannot run after installing. > The step on the page "Using an installed copy of gollvm" is

[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 > The

[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 instruct

[go-nuts] Error running gollvm on Ubuntu 20.04

2021-03-09 Thread Khanh TN
Hi, I'm a newbie. I built and installed gollvm with instructions from https://go.googlesource.com/gollvm The build/installation was successful but it cannot run after installing. The step on the page "Using an installed copy of gollvm" is where the error happens. Running "go" gives me this error:

[go-nuts] Windows Event logs

2021-03-09 Thread Karan Modi
Hello, can anyone help please help me with fetching windows Event logs in golang or maybe you can refer something. It would really help full Thanks in advance -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

[go-nuts] [ANN] New german translations

2021-03-09 Thread HaWe
Just finished german translation of the two new tutorials: https://bitloeffel.de/DOC/golang/getting-started_de.html https://bitloeffel.de/DOC/golang/create-module_de.html Maybe that helps some newcomers. In the menu you'll find all the other Go documents I translated over the years. I tried to

Re: [go-nuts] "go build" records the GOROOT info of the machine the result binary is produced on?

2021-03-09 Thread tapi...@gmail.com
On Tuesday, March 9, 2021 at 7:04:17 AM UTC-5 axel.wa...@googlemail.com wrote: > On Tue, Mar 9, 2021 at 12:39 PM tapi...@gmail.com > wrote: > >> But isn't assuming GOROOT exists almost equivalent to assuming "go" >> command exists? >> > > Maybe. As I said, it might have been possible to try

Re: [go-nuts] "go build" records the GOROOT info of the machine the result binary is produced on?

2021-03-09 Thread 'Axel Wagner' via golang-nuts
On Tue, Mar 9, 2021 at 12:39 PM tapi...@gmail.com wrote: > But isn't assuming GOROOT exists almost equivalent to assuming "go" > command exists? > Maybe. As I said, it might have been possible to try `go env GOROOT` instead or in addition to looking at $GOROOT. It might even be possible to chang

Re: [go-nuts] "go build" records the GOROOT info of the machine the result binary is produced on?

2021-03-09 Thread tapi...@gmail.com
On Tuesday, March 9, 2021 at 5:02:34 AM UTC-5 axel.wa...@googlemail.com wrote: > On Tue, Mar 9, 2021 at 10:09 AM tapi...@gmail.com > wrote: > >> 1. By the document, it looks it should check the result of `go env >> GOROOT` firstly, but it doesn't. >> > > I don't think that's true. The docume

Re: [go-nuts] "go build" records the GOROOT info of the machine the result binary is produced on?

2021-03-09 Thread 'Axel Wagner' via golang-nuts
On Tue, Mar 9, 2021 at 10:09 AM tapi...@gmail.com wrote: > 1. By the document, it looks it should check the result of `go env GOROOT` > firstly, but it doesn't. > I don't think that's true. The documentation says, it looks in $GOROOT and if that's not set, in the GOROOT of the go binary it was b

Re: [go-nuts] "go build" records the GOROOT info of the machine the result binary is produced on?

2021-03-09 Thread tapi...@gmail.com
I see two problems here. 1. By the document, it looks it should check the result of `go env GOROOT` firstly, but it doesn't. 2. It exposes some personal privacy to make the last attempt work. By the document, it looks some personal privacy will be always record in the binary file, even if the