Date: Mon, 29 Aug 2016 11:10:15 -0700 From: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com> To: Bryan Drewery <bdrewery@FreeBSD.org> 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: <3B60A57F-778C-4E7C-B081-098C0F6E92D2@gmail.com> In-Reply-To: <B014DD06-4BB2-4503-8908-C78EFEE0FCA2@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_29A52004-7276-4550-8B34-84659516B07E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 29, 2016, at 11:04, Ngie Cooper (yaneurabeya) = <yaneurabeya@gmail.com> wrote: >=20 >>=20 >> On Aug 29, 2016, at 11:02, Ngie Cooper (yaneurabeya) = <yaneurabeya@gmail.com> wrote: >>=20 >>>=20 >>> On Aug 29, 2016, at 11:00, Bryan Drewery <bdrewery@FreeBSD.org> = wrote: >>>=20 >>> On 8/29/2016 10:58 AM, Ngie Cooper (yaneurabeya) wrote: >>>> (-bdrewery) >>>>=20 >>>>> On Aug 29, 2016, at 10:52, Li-Wen Hsu <lwhsu@FreeBSD.org> wrote: >>>>>=20 >>>>> 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 = stuff >>>>> under /usr/tests/lib/atf/libatf-c++ are all binary files. >>>>>=20 >>>>> 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 = test >>>>> 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. >>>>=20 >>>> 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. >>>>=20 >>>> It=E2=80=99s not a cross-compiler problem =E2=80=94 something = changed 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.. >>>>=20 >>>=20 >>> What changed recently is that buildworld now always uses --sysroot = for >>> Clang, and --sysroot,-isystem,-B,-L for GCC. >>=20 >> Ok. I=E2=80=99m not fully convinced that that=E2=80=99s the problem = yet. Will drill down into the issue in the next half hour and will post = a bug with my findings. >=20 > Oh wait. Damn=E2=80=A6 I see the --sysroot line in the compilation = output from the test. Crap=E2=80=A6 that=E2=80=99s not going to work. Ok, found a likely culprit: = lib/clang/include/clang/Config/config.h. DEFAULT_SYSROOT=E2=80=99s = probably being stored in the compiler, somehow=E2=80=A6 Cheers, -Ngie 24 /* Default <path> to all compiler invocations for --sysroot=3D<path>. = */ 25 /* #undef DEFAULT_SYSROOT */ $ 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_PREFIX}\=E2=80=9D $ cc -print-search-dirs programs: =3D/usr/bin libraries: =3D/usr/bin/../lib/clang/3.8.0:/usr/lib --Apple-Mail=_29A52004-7276-4550-8B34-84659516B07E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXxHqHAAoJEPWDqSZpMIYVAHUQALFaizMdN+1j0/tw6n6wbCNY ESJBuT/kGOUltB8nlTrMHGXlmlK8cMkgkJSd7Tfg2NjOC4INFbOlMheo6fN2HXAb gn7oeUSHscrkEyn010JaxWIDxpjge63pWpXRZqFXu0j8XauTzQjpi6OpZYnSIhTJ svrs1ZYu/+X0kAtiMZsBEId0PZDA+n/+gbPuYZ8Ew0zY7aCZRx26XBtSCWO3T1Tf Eo1fGhu78kgcptGAUgazule6SHrcaVU2vKuMeQZ8G86LPDKExpLW6rMRZRXns1gw AVceN568OAtgt06nPFIqKg8J8DnRfrwt03u6sb9ayBujWuc1ENeho/8DfiWIjn0f x2WIeSSrNt1t7L8hUJSAk+jpSDremvFdBQkOqLfY7+21/BafYknccARcmFfxFdLV R7UT6xaH+9EjK6czpM+dCgIhGLF3QgJsHfWFN6tzfJpkhB78GzFAobAQ6gqqwhth YoXVeBcudUi3CbHPoCt4cBy3sWpVtSFAqSFhWnSMnC0psPZ8QDMYYFXu48PwC9Cs zXhPHLdzQCs1bxIu0ZPUfW9VWnLJduE9OVofjvEV5AwbegjF+p61fIIpIk6eJPP7 HhcLCVemveHelvQGBeWAzEsdgVZ7m8JyT1cbwcyKJX8lieDttV95Nu/qkd1Z6BT/ af5j4XOpv4cflnyz2fcF =cgVn -----END PGP SIGNATURE----- --Apple-Mail=_29A52004-7276-4550-8B34-84659516B07E--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B60A57F-778C-4E7C-B081-098C0F6E92D2>