From owner-freebsd-current@freebsd.org Mon Apr 4 12:38:04 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8370B0278D for ; Mon, 4 Apr 2016 12:38:04 +0000 (UTC) (envelope-from lwhsu@FreeBSD.cs.nctu.edu.tw) Received: from FreeBSD.cs.nctu.edu.tw (freebsd2.cs.nctu.edu.tw [140.113.17.206]) by mx1.freebsd.org (Postfix) with ESMTP id B4B2C10C2; Mon, 4 Apr 2016 12:38:04 +0000 (UTC) (envelope-from lwhsu@FreeBSD.cs.nctu.edu.tw) Received: by FreeBSD.cs.nctu.edu.tw (Postfix, from userid 1058) id A98FA2F50; Mon, 4 Apr 2016 20:38:03 +0800 (CST) Date: Mon, 4 Apr 2016 20:38:03 +0800 From: Li-Wen Hsu To: Baptiste Daroussin Cc: Dimitry Andric , Andriy Gapon , freebsd-current@freebsd.org Subject: Re: FreeBSD_HEAD_amd64_gcc - Build #1144 - Failure Message-ID: <20160404123803.GA99836@FreeBSD.cs.nctu.edu.tw> References: <2034599654.182.1459676383628.JavaMail.jenkins@jenkins-9.freebsd.org> <57015089.4010700@FreeBSD.org> <19A774FF-773C-4F29-8DF1-E72BBED81DA9@FreeBSD.org> <20160403225014.GH5214@ivaldir.etoilebsd.net> <20160404103859.GA27648@FreeBSD.cs.nctu.edu.tw> <20160404105316.GA49864@ivaldir.etoilebsd.net> <20160404122539.GA14905@FreeBSD.cs.nctu.edu.tw> <20160404123234.GC49864@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <20160404123234.GC49864@ivaldir.etoilebsd.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2016 12:38:05 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 04, 2016 at 14:32:35 +0200, Baptiste Daroussin wrote: > On Mon, Apr 04, 2016 at 08:25:39PM +0800, Li-Wen Hsu wrote: > > On Mon, Apr 04, 2016 at 12:53:16 +0200, Baptiste Daroussin wrote: > > > On Mon, Apr 04, 2016 at 06:39:00PM +0800, Li-Wen Hsu wrote: > > > > On Mon, Apr 04, 2016 at 00:50:14 +0200, Baptiste Daroussin wrote: > > > > > On Mon, Apr 04, 2016 at 04:41:47AM +0800, Li-Wen Hsu wrote: > > > > > > I've checked this a little more, I found the return code of > > > > > > "installing a installed package" has been changed. > > > > > >=20 > > > > > > For pkg 1.6.4_1, it returns 0, but 1.7.1 returns 70, thus jenki= ns > > > > > > consider the build script execution failure. > > > > > >=20 > > > > > >=20 > > > > > It shoudl not return 70 if it returns 70 then there is a bug I ca= n fix, I need > > > > > to know more about what is failing to be able to fix > > > >=20 > > > > What else information do you need? My experiment is as following: > > > >=20 > > > > On a machine uses quarterly branch, where pkg is 1.6.4_1, install a > > > > installed package. I choose rsync here, then echo $?, it returns 0. > > > >=20 > > > > And I switch to latest branch, also use `pkg install -y rsync`, but= this > > > > time $? is 70. > > > >=20 > > > > Jenkins "Execute shell" build step checks return value of each comm= and > > > > in the shell script, if it is non-zero, it aborts the build and > > > > considers if failure. > > >=20 > > > Return 70 means an error occured. if I look at the log I can see that > > > powerpc64-gcc is not installed for sure, hence the error 70 > > >=20 > > > What is strange it that no "error message is shown" > >=20 > > Very strange, no further error message is shown, even -d provided. > >=20 > > root@jenkins10a:~ # pkg -d install -y devel/amd64-xtoolchain-gcc > > DBG(1)[44393]> pkg initialized > > Updating FreeBSD repository catalogue... > > DBG(1)[44393]> PkgRepo: verifying update for FreeBSD > > DBG(1)[44393]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlit= e' > > DBG(1)[44393]> Fetch: fetching from: http://pkgmir.pkg.freebsd.org/Free= BSD:10:amd64/latest/meta.txz with opts "i" > > DBG(1)[44393]> Fetch: fetching from: http://pkgmir.pkg.freebsd.org/Free= BSD:10:amd64/latest/packagesite.txz with opts "i" > > FreeBSD repository is up-to-date. > > All repositories are up-to-date. > > DBG(1)[44393]> want to get an advisory lock on a database > > DBG(1)[44393]> release an advisory lock on a database > > root@jenkins10a:~ # echo $? > > 70 > >=20 > > Is there anything I can help on debugging this? > >=20 > pkg info amd64-xtoolchain-gcc please root@jenkins10a:~ # pkg -d info amd64-xtoolchain-gcc DBG(1)[44644]> pkg initialized amd64-xtoolchain-gcc-0.1 Name : amd64-xtoolchain-gcc Version : 0.1 Installed on : Tue Mar 3 07:32:25 2015 UTC Origin : devel/amd64-xtoolchain-gcc Architecture : freebsd:10:x86:64 Prefix : /usr/local Categories : devel Licenses : Maintainer : bapt@FreeBSD.org WWW : UNKNOWN Comment : Pre seeded toolchain to cross build FreeBSD base Annotations : repo_type : binary repository : FreeBSD Flat size : 225B Description : Pre seeded cross toolchain definition to cross build FreeBSD base --=20 Li-Wen Hsu https://lwhsu.org --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQJ8BAEBCgBmBQJXAmAqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxMDdENTNGNjUyMTUzMzVCNzA5NDNGODQ2 NzI3RTc3Qzg4NjJCNjU2AAoJEGcn53yIYrZWK+wQAJo+sp726xIXuHlQcQw7kOSm HWjoIPrwF1C1usKf9GI+7LuFGg7EvnsDboD49VsXIKBETZ850UV3Il1LUlrmKf22 S6MXOEaCU7Yi3PqiU/oXkby93Sb4yGyBsXhAj9pXSdtb1He9P1DubOHIYeXKk8jM a2GN8z6iN0i5Oy+5DrhH7W3JRyUtwdi5k72rBr6Y7ygcx5Jl9h4emOieEE+UDw3U FypgMXDyJVDj/Ca0ECZX6gh59kKwA98+CE5lv3j2cXCcnzV+IlkddR3YGX6KqUxj YdVh6Jdskhi8biRelbChoUo7WiLw5Et1cb4Xs9fouEb0s7uHrinfXqIRrNkuDku5 hTKmuy+sXJ56TBEsHRnOgYavcJB2NKthz+T0lhxOCyfBCKVjHhdn97a0EAGDn6l0 hDXDQ3/hrl4+0EvEkMVo2QdxwpsBicNqB0YzuiJ4OGNL4H1uSvFQJjIVVY7XJ4+h fgPHUi6S0mbt69xNK/jAy6QDjKtuGC7PR89Eph/a35fQJ4cJkh4ili5rNDfsNOaF 1g7w3HxysxerAfc+7RBKhlGKsG4zvCrJelkQhdUomz0g8TNrIXMpPBBt078qSkb2 rnNk2b3WE+mtppkmnfiOfB5QdEJlqos5ZNPd9icoCTlFs9SQbleC43UtH5ufLGdm dytMpQ2bUEEPnbWixkjK =2f4Q -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--