Date: Thu, 26 Apr 2018 17:19:08 +0100 From: Steven Hartland <killing@multiplay.co.uk> To: Bjarne <bjb@darco.dk>, "Derek (freebsd lists)" <482254ac@razorfever.net>, freebsd-ports@freebsd.org Subject: Re: lang/go failes to build with poudriere, since 2018-04-05 Message-ID: <e5d61001-0af0-2d9b-006c-73f5d64f0a5b@multiplay.co.uk> In-Reply-To: <d34e3940-1cdb-ee5c-9056-0d7a92e42f0e@darco.dk> References: <405cd11b-48c4-2b82-561e-ae9cada253bb@darco.dk> <8859afde-29a5-79d6-9b00-6b97df687b94@multiplay.co.uk> <874d92d2-55bc-6dc1-5f6e-f57dc5ab5381@razorfever.net> <d34e3940-1cdb-ee5c-9056-0d7a92e42f0e@darco.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
That will just slow things down, its not a fix. If you want to try its just an environment variable that needs to set before you run the app e.g. setenv GOMAXPROCS 1 ./my-go-app If you could have a look at my other reply and answer the questions there that would be appreciated. Regards Steve On 26/04/2018 17:08, Bjarne wrote: > Hi Derek > > Thank you very much for replying. it seems you hit it right on target! > > Unfortunately I dont know anything about go, but it is a requirement > of sysutils/beats. > <http://portsmon.freebsd.org/portoverview.py?category=sysutils&portname=beats> > > Googling around i can see GOMAXPROCS is something with max number of > cpu's used. > Since i dont know where to set that parameter and the fact i am > working with a virtual environment, I reduced the numbe of cpu's from > 4 to 1 on the build machine. > Now go is building and all is well again. > > Where would I set GOMAXPROCS=1? > I might want to go back to 4 cpu's again. > > > > On 25-04-2018 23:09, Derek (freebsd lists) wrote: >> Ah, you'll note: fork/exec implicated here. >> >> Looks like this guy strikes again: >> https://github.com/golang/go/issues/15658 >> >> It pains me to say but Go on FreeBSD is (and has always been) >> broken. Should be fine if you don't exec. Something that might >> help, is setting GOMAXPROCS=1. >> >> Derek >> >> On 18-04-25 07:45 AM, Steven Hartland wrote: >>> Builds fine on 11.1-RELEASE-p6 here: >>> >>> [00:04:02] Committing packages to repository >>> [00:04:02] Removing old packages >>> [00:04:02] Built ports: lang/go >>> [ports11-1-multiplay] [2018-04-25_11h37m16s] [committing:] Queued: 1 >>> Built: 1 Failed: 0 Skipped: 0 Ignored: 0 Tobuild: 0 Time: 00:04:01 >>> [00:04:02] Logs: >>> /usr/local/poudriere/data/logs/bulk/ports11-1-multiplay/2018-04-25_11h37m16s >>> >>> [00:04:02] Cleaning up >>> >>> svn info >>> Path: . >>> Working Copy Root Path: /usr/local/poudriere/ports/multiplay >>> URL: https://svn.freebsd.org/ports/head >>> Relative URL: ^/head >>> Repository Root: https://svn.freebsd.org/ports >>> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 >>> Revision: 468275 >>> Node Kind: directory >>> Schedule: normal >>> Last Changed Author: tobik >>> Last Changed Rev: 468275 >>> Last Changed Date: 2018-04-25 11:08:41 +0000 (Wed, 25 Apr 2018) >>> >>> >>> Regards >>> Steve >>> >>> On 25/04/2018 12:07, Bjarne wrote: >>>> I got a job to rebuild all packages every night, but since >>>> 2018-04-05 building /usr/ports/lang/go is failing. >>>> >>>> Apparently 2018-04-05 some major changed was introduced, since 331 >>>> pakackes was rebuilt. Not sure what it was, I saw nothing in UPATING. >>>> >>>> Top of logfile: >>>> >>>>>> Building lang/go >>>> :snip >> > > -- > mvh, > Bjarne
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e5d61001-0af0-2d9b-006c-73f5d64f0a5b>