From owner-freebsd-testing@freebsd.org Mon Aug 29 18:11:30 2016 Return-Path: Delivered-To: freebsd-testing@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 DC295BC7343 for ; Mon, 29 Aug 2016 18:11:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B24B87C9; Mon, 29 Aug 2016 18:11:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id A68C81D1F; Mon, 29 Aug 2016 18:11:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 795EC1A99B; Mon, 29 Aug 2016 18:11:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id ygs8Q1fF_zWO; Mon, 29 Aug 2016 18:11:26 +0000 (UTC) Subject: Re: Jenkins build is still unstable: FreeBSD_HEAD #564 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 727181A995 To: "Ngie Cooper (yaneurabeya)" References: <1491374121.44.1472440150670.JavaMail.jenkins@jenkins-9.freebsd.org> <166099893.51.1472451061454.JavaMail.jenkins@jenkins-9.freebsd.org> <6E443BB8-0269-4812-A2F4-40AA303E69C6@FreeBSD.org> <8058052E-A09A-403E-828A-74B51ED4BBF4@FreeBSD.org> <20160829163911.GA51650@FreeBSD.cs.nctu.edu.tw> <4b8980f0-1a90-40d7-45b3-9569b321d1c6@FreeBSD.org> <20160829175247.GA10263@FreeBSD.cs.nctu.edu.tw> <31f11ba3-ca29-0f85-f1c1-6a3cd467bb57@FreeBSD.org> <67E84707-3267-49F3-8DB6-13CBD05B1690@gmail.com> <3B60A57F-778C-4E7C-B081-098C0F6E92D2@gmail.com> Cc: Li-Wen Hsu , "jenkins-admin@freebsd.org" , "freebsd-testing@freebsd.org" , Dimitry Andric From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <5daeb282-d39e-d5e3-df81-41ed1eab9026@FreeBSD.org> Date: Mon, 29 Aug 2016 11:11:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <3B60A57F-778C-4E7C-B081-098C0F6E92D2@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GfsUNhHv2MNkksRP0ixiohr2rMIQ3XcMF" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 18:11:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GfsUNhHv2MNkksRP0ixiohr2rMIQ3XcMF Content-Type: multipart/mixed; boundary="LqnN2wIwWiOtCVXRNhsqUr6iIMdm4qLsu" From: Bryan Drewery To: "Ngie Cooper (yaneurabeya)" Cc: Li-Wen Hsu , "jenkins-admin@freebsd.org" , "freebsd-testing@freebsd.org" , Dimitry Andric Message-ID: <5daeb282-d39e-d5e3-df81-41ed1eab9026@FreeBSD.org> Subject: Re: Jenkins build is still unstable: FreeBSD_HEAD #564 References: <1491374121.44.1472440150670.JavaMail.jenkins@jenkins-9.freebsd.org> <166099893.51.1472451061454.JavaMail.jenkins@jenkins-9.freebsd.org> <6E443BB8-0269-4812-A2F4-40AA303E69C6@FreeBSD.org> <8058052E-A09A-403E-828A-74B51ED4BBF4@FreeBSD.org> <20160829163911.GA51650@FreeBSD.cs.nctu.edu.tw> <4b8980f0-1a90-40d7-45b3-9569b321d1c6@FreeBSD.org> <20160829175247.GA10263@FreeBSD.cs.nctu.edu.tw> <31f11ba3-ca29-0f85-f1c1-6a3cd467bb57@FreeBSD.org> <67E84707-3267-49F3-8DB6-13CBD05B1690@gmail.com> <3B60A57F-778C-4E7C-B081-098C0F6E92D2@gmail.com> In-Reply-To: <3B60A57F-778C-4E7C-B081-098C0F6E92D2@gmail.com> --LqnN2wIwWiOtCVXRNhsqUr6iIMdm4qLsu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 8/29/2016 11:10 AM, Ngie Cooper (yaneurabeya) wrote: >=20 >> On Aug 29, 2016, at 11:04, Ngie Cooper (yaneurabeya) wrote: >> >>> >>> On Aug 29, 2016, at 11:02, Ngie Cooper (yaneurabeya) wrote: >>> >>>> >>>> On Aug 29, 2016, at 11:00, Bryan Drewery wrot= e: >>>> >>>> On 8/29/2016 10:58 AM, Ngie Cooper (yaneurabeya) wrote: >>>>> (-bdrewery) >>>>> >>>>>> On Aug 29, 2016, at 10:52, Li-Wen Hsu wrote: >>>>>> >>>>>> I guess the quickest way is boot that VM, cd to >>>>>> /usr/tests/lib/atf/libatf-c++ and run `kyua test atf_c++_test` >>>>>> However I am not sure this provides enough information because stu= ff >>>>>> under /usr/tests/lib/atf/libatf-c++ are all binary files. >>>>>> >>>>>> FWIW, I would like to know, should these -target, --sysroot and -B= flages be >>>>>> given when compiling a normal program in a normal time? In this t= est >>>>>> case, kyua just wanted to compile test.cpp which includes sstream,= it's >>>>>> not during buildworld/buildkernel time, so files under /usr/obj >>>>>> should not be used. >>>>> >>>>> I=E2=80=99m actively working on this right now. If I can=E2=80=99t = resolve it soon, I=E2=80=99ll file a bug, mark it as an expected failure,= and we can work on fixing the issue with a bit more leisure. >>>>> >>>>> It=E2=80=99s not a cross-compiler problem =E2=80=94 something chang= ed recently (likely in clang/libc++) that=E2=80=99s causing this problem,= and it might just be an existing bug that was triggered by that change..= >>>>> >>>> >>>> What changed recently is that buildworld now always uses --sysroot f= or >>>> Clang, and --sysroot,-isystem,-B,-L for GCC. >>> >>> Ok. I=E2=80=99m not fully convinced that that=E2=80=99s the problem y= et. Will drill down into the issue in the next half hour and will post a = bug with my findings. >> >> Oh wait. Damn=E2=80=A6 I see the --sysroot line in the compilation out= put from the test. Crap=E2=80=A6 that=E2=80=99s not going to work. >=20 > Ok, found a likely culprit: lib/clang/include/clang/Config/config.h. D= EFAULT_SYSROOT=E2=80=99s probably being stored in the compiler, somehow=E2= =80=A6 > Cheers, > -Ngie >=20 > 24 /* Default to all compiler invocations for --sysroot=3D= =2E */ > 25 /* #undef DEFAULT_SYSROOT */ >=20 > $ grep -r DEFAULT_SYSROOT lib/clang/ > lib/clang/include/clang/Config/config.h:/* #undef DEFAULT_SYSROOT */ > lib/clang/clang.build.mk: -DDEFAULT_SYSROOT=3D\"${TOOLS_P= REFIX}\=E2=80=9D > $ cc -print-search-dirs > programs: =3D/usr/bin > libraries: =3D/usr/bin/../lib/clang/3.8.0:/usr/lib >=20 No, that's only used for the bootstrap compiler. The target compiler doesn't get it. None of that logic changed. --=20 Regards, Bryan Drewery --LqnN2wIwWiOtCVXRNhsqUr6iIMdm4qLsu-- --GfsUNhHv2MNkksRP0ixiohr2rMIQ3XcMF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXxHrOAAoJEDXXcbtuRpfP0wkIAMA0JyBVOQ53Bd3gPTP5ZZYI SfXYTuZdcpb2glnM2xRi9kzKQd++YcNs7bFeIbDrU1VUURZMmiVM6pZqExbfGJ3S 6becwKtpHe7KePFRumWOTx3BPYqA6W1JIYmNBItBdaDi7V7US6GSDo/WMwQ8CykW jMoNkLxNlVVStoxLo9swkNkL3+CFyLIxXM/tmwDEunEVPtHZohn84E63krYT0q85 4shWlp3HbC+Sqr2K28fb2cbd56cYRfPNjUM+LZrhl9eibEp/nz3RULDbA45CMpMU 1HC4JsMFv8WeuzWgrjyz5G8bgl9GlTP4h/Auzx2mO97z2ZCGarN9Iq0tHyMzh+4= =Zyww -----END PGP SIGNATURE----- --GfsUNhHv2MNkksRP0ixiohr2rMIQ3XcMF--