From owner-freebsd-ports@freebsd.org Thu Apr 26 23:04:42 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF38AFBAE6A for ; Thu, 26 Apr 2018 23:04:41 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2492183490 for ; Thu, 26 Apr 2018 23:04:40 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wm0-x229.google.com with SMTP id w2so1256138wmw.1 for ; Thu, 26 Apr 2018 16:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=VSUv+qlchcGHp0qkDj2BcvWT737DyQU2gkm5gLFeoFQ=; b=ZLg02JmTKkD78MJn/K+XGMLbOmhtneKcU22iQW8i9rgUh3PR+SA49PcIxoiBEFpqkl z41BzHthYyzdHCEHtKIzXTYFFRgJRM+W2060GEFNkQBl6e+s5S0xiHV89s33SYqAMd/P 5hbndrkgBZnJT9O6CuVON4vetyKxoXLU684hdNAV8dYz7J+i5zKLEGmjH8DAGc5vsG7e ApFnqzIJwLMIr6kVA+8DUt1EgojP5ugLSeGRxj1vg7XDDcf6PPDrRUZUgkrHIS+XwoIp vS+e5aFejG2/u8LgNLd9Oso/10iTAWleuaxSwxW1KR2UnBhKAshn9T7k7Jq7C8GnOLey tE1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=VSUv+qlchcGHp0qkDj2BcvWT737DyQU2gkm5gLFeoFQ=; b=nOITmQR+TArEzjpUXrDFkvcC5H4EfD5rI7CZCXVOtIx0z406bqYxSfynW9S9wREAJQ MzuY19dNWQvL2bIKOzdlc6P5Uij+aK3pr1ZavT2aJd6i49viZrNLU9wGDN9lPedKWjDV uz14dmdCl8/lHK6oo/hpZDc1bbxNVG3cbazJDHmabOvqxCRPTOI3jfwPQ8vxPzye/n7E P/5m2Q2mUXZIzT/J6BJG5XzfA49RD+WS044aI7ud/LO8aqVhfRl934mLAsHU1kd48vLP cy61KgQap4m0xkiAkn93sVuUPzQiztfSlPvZXUybF63MNc0KI90wNZIywAMZw3XrX5C5 GZwg== X-Gm-Message-State: ALQs6tA74VzrWH+Y9LCyuilWvdEkuehrA59gXCreXlBkiW9zuJTpzHIN K+40PfdiGHt3NbFmS1AjrmYjGDXV3rM= X-Google-Smtp-Source: AB8JxZq7IeDVDbS5Phlvn3RlNxdoX4KMnlqgrCefFbFy5VVfEavWF26Q2O+4WG7HI3YuyYDSl5EQ1w== X-Received: by 10.28.137.129 with SMTP id l123mr207221wmd.160.1524783879179; Thu, 26 Apr 2018 16:04:39 -0700 (PDT) Received: from [10.10.1.111] ([185.97.61.1]) by smtp.gmail.com with ESMTPSA id a129sm742475wme.3.2018.04.26.16.04.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 16:04:37 -0700 (PDT) Subject: Re: lang/go failes to build with poudriere, since 2018-04-05 To: Bjarne , "Derek (freebsd lists)" <482254ac@razorfever.net>, freebsd-ports@freebsd.org References: <405cd11b-48c4-2b82-561e-ae9cada253bb@darco.dk> <8859afde-29a5-79d6-9b00-6b97df687b94@multiplay.co.uk> <874d92d2-55bc-6dc1-5f6e-f57dc5ab5381@razorfever.net> <348668e3-fff4-1f6a-47a2-9066f059cf21@multiplay.co.uk> <0b5e2eb2-8bfd-f60e-abd1-2c01021b2b47@darco.dk> From: Steven Hartland Message-ID: Date: Fri, 27 Apr 2018 00:04:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <0b5e2eb2-8bfd-f60e-abd1-2c01021b2b47@darco.dk> Content-Type: multipart/mixed; boundary="------------D1BEC807D3D1AD720D415AD5" Content-Language: en-US X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2018 23:04:42 -0000 This is a multi-part message in MIME format. --------------D1BEC807D3D1AD720D415AD5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Thanks for the information, next question is what it the host machine? As your currently unable to build go we may have to get a binary dist on the machine to start debugging, I can provide that if needed. Once you have a working go installs you can try building and running the following: The attached golang patch can be used to add new debug syscall, if you can build go from ports (try outside of poudriere). Then you can compile main.go from a directory named test using "go build" and then from the same directory run the test.sh and lets see what you get?     Regards     Steve On 26/04/2018 19:23, Bjarne wrote: > Hi Steven > > Thanks for getting back on this. > > The os is 11.1-RELEASE-p9  and the ports tree is HEAD. > The build machine is a virtual server , > 5120 M RAM > 4 cpu > on top of  xen : > release                : 4.4.104-39-default > version                : #1 SMP Thu Jan 4 08:11:03 UTC 2018 (7db1912) > > > It seems I have a reliable test environment. I have just reconfigured > to 4 cpus and tested a rebuild and got same error as before. > Anything i can do to assist in debugging? > > Bear in mind I dont know anything of lang/go and am still a beginner > regading poudriere. > I have frozen the build machine so it wont download new versions of > anything. > > > > On 26-04-2018 01:31, Steven Hartland wrote: >> That happens very rarely, so rarely its been really hard to make any >> progress debugging it. >> >> If you believe you have reliable reproduction case I'd be very >> interested in it. >> >> One thing I noticed when re-reading your original post is that you >> say you tested on 11.1 but then your output mentions HEAD, are you >> running 11.1-RELEASE or 11-STABLE, if so what revision? >> >> Also of interest is the hardware and related configuration? >> >>     Regards >>     Steve >> >> On 25/04/2018 22: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 >>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> freebsd-ports@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-ports >>>> To unsubscribe, send any mail to >>>> "freebsd-ports-unsubscribe@freebsd.org" >>>> >>> >> > > -- > mvh, > Bjarne --------------D1BEC807D3D1AD720D415AD5 Content-Type: text/plain; charset=UTF-8; name="patch-src_syscall_exec_bsd_debug.go" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-src_syscall_exec_bsd_debug.go" LS0tIC9kZXYvbnVsbAkyMDE3LTAzLTI0IDE2OjQ0OjAwLjAwMDAwMDAwMCArMDAwMAorKysg c3JjL3N5c2NhbGwvZXhlY19ic2RfZGVidWcuZ28JMjAxNy0wMy0xNSAxNjoyODo1NS4wMDAw MDAwMDAgKzAwMDAKQEAgLTAsMCArMSw0MSBAQAorLy8gK2J1aWxkIGRhcndpbiBkcmFnb25m bHkgZnJlZWJzZCBuZXRic2Qgb3BlbmJzZAorCitwYWNrYWdlIHN5c2NhbGwKKworZnVuYyBG b3JrT25seUJTRFRlc3QoKSAoZXJyIGVycm9yKSB7CisJdmFyIHIxIHVpbnRwdHIKKwl2YXIg cGlkIGludAorCXZhciBlcnIxIEVycm5vCisJdmFyIHdzdGF0dXMgV2FpdFN0YXR1cworCisJ Rm9ya0xvY2suTG9jaygpCisJcnVudGltZV9CZWZvcmVGb3JrKCkKKworCXIxLCBfLCBlcnIx ID0gUmF3U3lzY2FsbChTWVNfRk9SSywgMCwgMCwgMCkKKwlpZiBlcnIxICE9IDAgeworCQly dW50aW1lX0FmdGVyRm9yaygpCisJCUZvcmtMb2NrLlVubG9jaygpCisJCXJldHVybiBlcnIx CisJfQorCisJaWYgcjEgPT0gMCB7CisJCS8vIGluIGNoaWxkLCBkaWUgZGllIGRpZSBteSBk YXJsaW5nCisJCWZvciB7CisJCQlSYXdTeXNjYWxsKFNZU19FWElULCAyNTMsIDAsIDApCisJ CX0KKwl9CisKKwlydW50aW1lX0FmdGVyRm9yaygpCisJRm9ya0xvY2suVW5sb2NrKCkKKwor CXBpZCA9IGludChyMSkKKworCS8vIFByaW1lIGRpcmVjdGl2ZSwgZXh0ZXJtaW5hdGUKKwkv LyBXaGF0ZXZlciBzdGFuZHMgbGVmdAorCV8sIGVyciA9IFdhaXQ0KHBpZCwgJndzdGF0dXMs IDAsIG5pbCkKKwlmb3IgZXJyID09IEVJTlRSIHsKKwkJXywgZXJyID0gV2FpdDQocGlkLCAm d3N0YXR1cywgMCwgbmlsKQorCX0KKworCXJldHVybgorfQo= --------------D1BEC807D3D1AD720D415AD5 Content-Type: text/plain; charset=UTF-8; name="test.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.sh" IyEvYmluL3NoCgpybSAtZiB0ZXN0LmxvZwp3aGlsZSB0cnVlOyBkbyAKCWVjaG8gIj09PT0g TkVXIFJVTiAkKGRhdGUpID09PT0iCgllY2hvCgkjdGltZSBzaCAtYyAnZXhwb3J0IEdPR0M9 NTsgZXhwb3J0IEdPREVCVUc9Z2N0cmFjZT0yLHNjaGVkdHJhY2U9MTAwOyAuL3Rlc3QnCgkj dGltZSBzaCAtYyAnZXhwb3J0IEdPR0M9NTsgLi90ZXN0JwoJI3RpbWUgc2ggLWMgJ2V4cG9y dCBHT0dDPTU7IGV4cG9ydCBHT0RFQlVHPWdjc3RhY2tiYXJyaWVyYWxsPTE7IC4vdGVzdCcK CSN0aW1lIHNoIC1jICdleHBvcnQgR09HQz1vZmY7IGV4cG9ydCBHT1RSQUNFQkFDSz1jcmFz aDsgLi90ZXN0JwoJI3RpbWUgc2ggLWMgJ2V4cG9ydCBHT0dDPW9mZjsgZXhwb3J0IEdPVFJB Q0VCQUNLPWNyYXNoOyBleHBvcnQgR09NQVhQUk9DUz0yNDsga3RyYWNlIC1pIC1mIGt0cmFj ZS10ZXN0Lm91dCAuL3Rlc3QgJwoJI3RpbWUg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GVzdC5sb2cuJGR0 IgpleGl0IDEK --------------D1BEC807D3D1AD720D415AD5 Content-Type: text/plain; charset=UTF-8; name="main.go" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="main.go" cGFja2FnZSBtYWluCgppbXBvcnQgKAoJImxvZyIKCSJydW50aW1lIgoJInN5c2NhbGwiCikK CnZhciAoCglmb3JrUm91dGluZXMgPSAyNAopCgpmdW5jIHJ1bigpIHsKCWZvciB7CgkJaWYg ZXJyIDo9IHN5c2NhbGwuRm9ya09ubHlCU0RUZXN0KCk7IGVyciAhPSBuaWwgewoJCQlsb2cu RmF0YWwoZXJyKQoJCX0KCX0KfQoKZnVuYyBtYWluKCkgewoJbG9nLlByaW50ZigiU3RhcnRp bmcgJXYgZm9ya2luZyBnb3JvdXRpbmVzLi4uXG4iLCBmb3JrUm91dGluZXMpCglsb2cuUHJp bnRsbigiR09NQVhQUk9DUzoiLCBydW50aW1lLkdPTUFYUFJPQ1MoMCkpCgoJZm9yIGkgOj0g MDsgaSA8IGZvcmtSb3V0aW5lczsgaSsrIHsKCQlnbyBydW4oKQoJfQoKCS8vIEJsb2NrIGZv cmV2ZXIKCTwtbWFrZShjaGFuIHN0cnVjdHt9KQp9Cg== --------------D1BEC807D3D1AD720D415AD5--