Date: Mon, 29 Aug 2016 11:11:26 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com> Cc: Li-Wen Hsu <lwhsu@FreeBSD.org>, "jenkins-admin@freebsd.org" <jenkins-admin@freebsd.org>, "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, Dimitry Andric <dim@FreeBSD.org> Subject: Re: Jenkins build is still unstable: FreeBSD_HEAD #564 Message-ID: <5daeb282-d39e-d5e3-df81-41ed1eab9026@FreeBSD.org> In-Reply-To: <3B60A57F-778C-4E7C-B081-098C0F6E92D2@gmail.com> References: <1491374121.44.1472440150670.JavaMail.jenkins@jenkins-9.freebsd.org> <166099893.51.1472451061454.JavaMail.jenkins@jenkins-9.freebsd.org> <CAG=rPVdZp171Egp=OHWDc3qCgcJDE3HQ0rv-j=i%2BO1LHcfH%2BJQ@mail.gmail.com> <CFA236ED-7DE0-4BE1-B944-52284E2FB6E0@FreeBSD.org> <6E443BB8-0269-4812-A2F4-40AA303E69C6@FreeBSD.org> <CAG=rPVdfgoF0mts-edHATUaefD7YuGtNu5ZTJOa8efUn2W4QuA@mail.gmail.com> <8058052E-A09A-403E-828A-74B51ED4BBF4@FreeBSD.org> <20160829163911.GA51650@FreeBSD.cs.nctu.edu.tw> <E73154DF-6A88-457D-B1FF-6B7F7610C37F@FreeBSD.org> <4b8980f0-1a90-40d7-45b3-9569b321d1c6@FreeBSD.org> <20160829175247.GA10263@FreeBSD.cs.nctu.edu.tw> <CAA41D00-2451-42EC-B9FD-3E31F42F9CF6@gmail.com> <31f11ba3-ca29-0f85-f1c1-6a3cd467bb57@FreeBSD.org> <67E84707-3267-49F3-8DB6-13CBD05B1690@gmail.com> <B014DD06-4BB2-4503-8908-C78EFEE0FCA2@gmail.com> <3B60A57F-778C-4E7C-B081-098C0F6E92D2@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GfsUNhHv2MNkksRP0ixiohr2rMIQ3XcMF Content-Type: multipart/mixed; boundary="LqnN2wIwWiOtCVXRNhsqUr6iIMdm4qLsu" From: Bryan Drewery <bdrewery@FreeBSD.org> To: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com> Cc: Li-Wen Hsu <lwhsu@FreeBSD.org>, "jenkins-admin@freebsd.org" <jenkins-admin@freebsd.org>, "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, Dimitry Andric <dim@FreeBSD.org> 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> <CAG=rPVdZp171Egp=OHWDc3qCgcJDE3HQ0rv-j=i+O1LHcfH+JQ@mail.gmail.com> <CFA236ED-7DE0-4BE1-B944-52284E2FB6E0@FreeBSD.org> <6E443BB8-0269-4812-A2F4-40AA303E69C6@FreeBSD.org> <CAG=rPVdfgoF0mts-edHATUaefD7YuGtNu5ZTJOa8efUn2W4QuA@mail.gmail.com> <8058052E-A09A-403E-828A-74B51ED4BBF4@FreeBSD.org> <20160829163911.GA51650@FreeBSD.cs.nctu.edu.tw> <E73154DF-6A88-457D-B1FF-6B7F7610C37F@FreeBSD.org> <4b8980f0-1a90-40d7-45b3-9569b321d1c6@FreeBSD.org> <20160829175247.GA10263@FreeBSD.cs.nctu.edu.tw> <CAA41D00-2451-42EC-B9FD-3E31F42F9CF6@gmail.com> <31f11ba3-ca29-0f85-f1c1-6a3cd467bb57@FreeBSD.org> <67E84707-3267-49F3-8DB6-13CBD05B1690@gmail.com> <B014DD06-4BB2-4503-8908-C78EFEE0FCA2@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) <yaneurabeya@gmai= l.com> wrote: >> >>> >>> On Aug 29, 2016, at 11:02, Ngie Cooper (yaneurabeya) <yaneurabeya@gma= il.com> wrote: >>> >>>> >>>> On Aug 29, 2016, at 11:00, Bryan Drewery <bdrewery@FreeBSD.org> wrot= e: >>>> >>>> On 8/29/2016 10:58 AM, Ngie Cooper (yaneurabeya) wrote: >>>>> (-bdrewery) >>>>> >>>>>> On Aug 29, 2016, at 10:52, Li-Wen Hsu <lwhsu@FreeBSD.org> 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 <path> to all compiler invocations for --sysroot=3D<path>= =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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5daeb282-d39e-d5e3-df81-41ed1eab9026>