Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2013 06:28:14 -0600
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Kenta Suzumoto <kentas@hush.com>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: pkg won't built in jail
Message-ID:  <528CAADE.7040909@FreeBSD.org>
In-Reply-To: <20131120093318.GY12196@ithaqua.etoilebsd.net>
References:  <528A6A0C.5080805@gmail.com> <20131118200746.E7D0720111@smtp.hushmail.com> <528B5973.3000906@gmail.com> <20131119160453.B9DCD20112@smtp.hushmail.com> <528B94CD.2000902@gmail.com> <20131119170733.8E86D20111@smtp.hushmail.com> <528BA027.8060501@gmail.com> <20131119173913.5EC8B20111@smtp.hushmail.com> <528BA4D0.4060509@gmail.com> <20131120075803.CC83C20111@smtp.hushmail.com> <20131120093318.GY12196@ithaqua.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--PQ48TsXQ1BEAaoJ82Jx1pvjmWhOeN9cro
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 11/20/2013 3:33 AM, Baptiste Daroussin wrote:
> On Wed, Nov 20, 2013 at 02:58:03AM -0500, Kenta Suzumoto wrote:
>> pkg builds fine on the host with the exact same settings, but won't co=
mpile in my jail. 9.2 i386, latest ports tree.
>>
>>
>> clang -O2 -pipe -Qunused-parameter -Qunused-arguments -march=3Dnative =
-fno-strict-aliasing  -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1=
=2E1.4/pkg/../libpkg  -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1=
=2E1.4/pkg/../external/uthash -std=3Dgnu99 -Qunused-arguments -fstack-pro=
tector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para=
meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-t=
ype -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wca=
st-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -W=
old-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-i=
nt -c convert.c
>> clang -O2 -pipe -Qunused-parameter -Qunused-arguments -march=3Dnative =
-fno-strict-aliasing  -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1=
=2E1.4/pkg/../libpkg  -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1=
=2E1.4/pkg/../external/uthash -std=3Dgnu99 -Qunused-arguments -fstack-pro=
tector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para=
meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-t=
ype -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wca=
st-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -W=
old-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-i=
nt -c create.c
>> clean.c:373:25: error: equality comparison with extraneous parentheses=
 [-Werror,-Wparentheses-equality]
>>  if (((&dl)->stqh_first =3D=3D ((void *)0))) {
>>       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
>> clean.c:373:25: note: remove extraneous parentheses around the compari=
son to silence this warning
>>  if (((&dl)->stqh_first =3D=3D ((void *)0))) {
>>      ~                  ^             ~
>> clean.c:373:25: note: use '=3D' to turn this equality comparison into =
an assignment
>>  if (((&dl)->stqh_first =3D=3D ((void *)0))) {
>>                         ^~
>>                         =3D
>> 1 error generated.
>> *** [clean.o] Error code 1
>> 1 error
>> *** [all] Error code 2
>> 1 error
>> =3D=3D=3D> Compilation failed unexpectedly.
>> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the fai=
lure to
>> the maintainer.
>> *** [do-build] Error code 1
>>
>> Stop in /basejail/usr/ports/ports-mgmt/pkg.
>> *** [/ram/basejail/usr/ports/ports-mgmt/pkg/work/.build_done.pkg._usr_=
local] Error code 1
>>
>> Stop in /basejail/usr/ports/ports-mgmt/pkg.
>>
>> =3D=3D=3D>>> make failed for ports-mgmt/pkg
>> =3D=3D=3D>>> Aborting update
>>
>> =3D=3D=3D>>> Update for pkg-1.1.4_9 failed
>> =3D=3D=3D>>> Aborting update
>>
>=20
> You are using ccache without using the famework provided by the ports t=
ree
> aren't you?
>=20
> because this looks like a ccache + clang failure
>=20
> regards,
> Bapt
>=20

Well even with WITH_CCACHE_BUILD it will try to use when using clang. I
suggest not using WITH_CCACHE_BUILD or ccache if the compiler is clang,
or for this specific case add CCACHE_CPP2=3D1 in your jail's env or make.=
conf.

--=20
Regards,
Bryan Drewery


--PQ48TsXQ1BEAaoJ82Jx1pvjmWhOeN9cro
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSjKreAAoJEDXXcbtuRpfPkxAH/01gvkHcmHs3ZRFungDRu1Mw
5OF5FaxLe8zw8rP3f0eDii80vn7NK6fX80lnqTjdS7pNkH10X9yV5N05OcetrfK9
q7GTGrwbtw19tVes8TlsrbUXYF5ek+O6oaHcn2ZpEMguzvrk88LwcIZ6CMnlheBT
jnDFpjzVvYIhc9zH0h70dG2xyIUzcjXD6vAncSWPA1t06OPmnrLOpBFNV8GZ9jfn
fEBo8haTF7XikE+YxU5/Kxjic+ewp2GtuDXr3rpzR/0Jhmpwo8cib7l6g1OYwcpp
F4pSKxBEnNYuBHc+bBvhek2fyv0EXP0snOHhHvuq26ceL42rgUDqEEBuTnMdVYg=
=O2Xq
-----END PGP SIGNATURE-----

--PQ48TsXQ1BEAaoJ82Jx1pvjmWhOeN9cro--



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