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
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"