Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2016 00:57:25 +0800
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Craig Rodrigues <rodrigc@freebsd.org>, "jenkins-admin@freebsd.org" <jenkins-admin@freebsd.org>, "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, Bryan Drewery <bdrewery@FreeBSD.org>
Subject:   Re: Jenkins build is still unstable: FreeBSD_HEAD #564
Message-ID:  <20160829165725.GA11270@FreeBSD.cs.nctu.edu.tw>
In-Reply-To: <E73154DF-6A88-457D-B1FF-6B7F7610C37F@FreeBSD.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--u3/rZRmxL6MmkK24
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

No, /usr/obj is empty while running kyua test.  My VM is installed from
base.txz & kernel.txz .

Li-Wen

On Mon, Aug 29, 2016 at 18:50:42 +0200, Dimitry Andric wrote:
> Yes, I've also seen the --sysroot options being added recently.  I'm reas=
onably sure that this is the cause of the error.  Bryan did most of the res=
tructuring for external toolchains, which also adds the --sysroot option.
>=20
> Is there an usr/include/c++/v1 under the --sysroot?
>=20
> -Dimitry
>=20
> > On 29 Aug 2016, at 18:39, Li-Wen Hsu <lwhsu@FreeBSD.org> wrote:
> >=20
> > Dimitry, are you talking about case lib.atf.libatf-c++.atf_c++_test.inc=
lude ?
> >=20
> > I happen to have a r304986 VM here:
> >=20
> > https://people.freebsd.org/~lwhsu/tmp/disk-test.img.xz
> >=20
> > (it starts kyua test in /etc/rc.local, just use ctrl-c to interrupt it)
> >=20
> > And there is a /usr/include/c++/v1 directory with sstream in it.
> >=20
> >=20
> > BTW, I am not sure removing -I/usr/include is the right solution,  I
> > think this case is checking for "normal" compiling would work, not
> > during buildworld.  When this case was passing, it uses following
> > command:
> >=20
> > c++ -O2 -pipe -DHAVE_CONFIG_H -I/usr/include -Wall -Werror -o test.o -c=
 test.cpp
> >=20
> > and now it uses:
> >=20
> > c++ -target x86_64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp=
 -B/usr/obj/usr/src/tmp/usr/bin -O2 -pipe -DHAVE_CONFIG_H -I/usr/include -W=
all -Werror -o test.o -c test.cpp
> >=20
> > This changed between r304555 and r304698.
> >=20
> >=20
> > Also, does anyone know where is "-I/usr/include" coming from?  Is this
> > one?
> > https://svnweb.freebsd.org/base/head/contrib/atf/atf-c%2B%2B/detail/tes=
t_helpers.cpp?view=3Dmarkup#l56
> >=20
> >=20
> > Li-Wen
> >=20
> > On Mon, Aug 29, 2016 at 16:02:42 +0200, Dimitry Andric wrote:
> >> Do you have an /usr/include/c++/v1 directory?  And is there a file cal=
led "sstream" in it?
> >>=20
> >> If it is there, I think the problem is due to the -I/usr/include optio=
n in the command line for the test program.  If you remove that, I think th=
e compilation will work correctly.
> >>=20
> >> -Dimitry
> >>=20
> >>> On 29 Aug 2016, at 14:55, Craig Rodrigues <rodrigc@freebsd.org> wrote:
> >>>=20
> >>> Dimitry,
> >>>=20
> >>> During the Jenkins job, I use installworld/installkernel to build a f=
ully bootable bhyve virtual machine.
> >>> After the virtual machine boots, ssh into it, and do:
> >>>=20
> >>> cd /usr/tests
> >>> kyua test
> >>> kyua report --verbose
> >>>=20
> >>>=20
> >>> So I am suspecting that maybe something didn't get installed properly?
> >>> --
> >>> Craig
> >>>=20
> >>>=20
> >>> On Mon, Aug 29, 2016 at 4:13 AM, Dimitry Andric <dim@freebsd.org> wro=
te:
> >>> I just found the separate "test results" link in Jenkins.  As far as =
I can see, one of those failing tests is run as:
> >>>=20
> >>> c++ -target x86_64-unknown-freebsd12.0 --sysroot=3D/builds/workspace/=
FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/tmp -B/builds/workspace/=
FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/tmp/usr/bin -O2 -pipe -D=
HAVE_CONFIG_H -I/usr/include -Wall -Werror -o test.o -c test.cpp
> >>>=20
> >>> So are the libc++ headers installed in the /builds/workspace/FreeBSD_=
HEAD/obj/builds/workspace/FreeBSD_HEAD/src/tmp sysroot?  The compiler error=
 message appears to indicate it is getting its headers from /usr/include in=
stead.
> >>>=20
> >>> I can't look on the actual test system, but my guess would be that ei=
ther the --sysroot flag is incorrect, or the libc++ headers are not correct=
ly installed on the target system.
> >>>=20
> >>> -Dimitry
> >>>=20
> >>>> On 29 Aug 2016, at 12:56, Dimitry Andric <dim@FreeBSD.org> wrote:
> >>>>=20
> >>>> Hi Craig,
> >>>>=20
> >>>> I find it very hard to parse these extremely verbose logs.  Can you =
point out the location and contents of the exact error you are seeing?
> >>>>=20
> >>>> -Dimitry
> >>>>=20
> >>>>> On 29 Aug 2016, at 08:59, Craig Rodrigues <rodrigc@FreeBSD.org> wro=
te:
> >>>>>=20
> >>>>> Dimitry,
> >>>>>=20
> >>>>> Can you take a look at this?
> >>>>> I'm not sure why, but after recent changes, one of the tests is
> >>>>> complaining that the C++ header <sstream> is missing.
> >>>>>=20
> >>>>> --
> >>>>> Craig
> >>>>>=20
> >>>>>=20
> >>>>> On Sun, Aug 28, 2016 at 11:11 PM, <jenkins-admin@freebsd.org> wrote:
> >>>>> See <https://jenkins.FreeBSD.org/job/FreeBSD_HEAD/564/>;
> >>>>>=20
> >>>>>=20
> >>>>=20
> >>>=20
> >>>=20
> >>=20
> >=20
> >=20
> >=20
> > --
> > Li-Wen Hsu <lwhsu@FreeBSD.org>
> > https://lwhsu.org
>=20



--=20
Li-Wen Hsu <lwhsu@FreeBSD.org>
https://lwhsu.org

--u3/rZRmxL6MmkK24
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJXxGl0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxMDdENTNGNjUyMTUzMzVCNzA5NDNGODQ2
NzI3RTc3Qzg4NjJCNjU2AAoJEGcn53yIYrZWLUIQAK02oDaLyQ4pM1DED55X5uU6
nA1PzqXPeY4Y3Ok1ujgCg+ofUyjBjfI3WJrVLahwKxqmhjpjvZ6PozM0Yyz9KgdH
oOZlRADuKUngEM2OzWQJpgMn1aOzSaaqYbO66MuDmVzaLkYGZlagaj4Itx64inBN
zOqb6on+X0NRsBPL5qZOwJkMwjoTb2dqiCcYiC2qVRx2N5vrtzW2//LH2cnmLoY0
ie5349FD/deU4p2oshDjSIDEkLCfF3rDEFaZYU7IQushZdg0O+NIJKMeoDoB3M4T
E6396PPbXjqWJIw1LuYZHrDVTMznDW+M4Z5jXLZKIYvDFlVnV6K0TFIGEoLDnRIK
ZcivwVTim+k1JE4Mva0nR6XqOKQTp6lfOo6VQs55qeV+9QZa/u7RWtNsHHiU6f03
oE+MOsjNPXk+fB0DQ7CK9bfNm3j9R0Fh1G2SSYV4XhFuitkrmntiuJG6fFIXHfD1
+Sq0RSHSppRa0MmyoYLMS2m62gmx2oYvWKgUKrbFIq+cXi5m1hDNT4jbzwZSy3Uy
uFp2xSV8c4XFcVOC0oVU87hIMRBiUUhWEUgGmHLr9PJEqtk1P+ABigk8Js9Cjm6l
pXD1U7MzB6RO+2wYt5VpXnkXdUmNWLEl28IYV6kzv6FqxgjxUkxuvJ8YufnniUYf
4SITIs5Cr92RUbEiH0TK
=Fi+F
-----END PGP SIGNATURE-----

--u3/rZRmxL6MmkK24--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160829165725.GA11270>