pkg won't built in jail
Bryan Drewery
bdrewery at FreeBSD.org
Wed Nov 20 12:28:22 UTC 2013
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 compile in my jail. 9.2 i386, latest ports tree.
>>
>>
>> clang -O2 -pipe -Qunused-parameter -Qunused-arguments -march=native -fno-strict-aliasing -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/pkg/../libpkg -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/pkg/../external/uthash -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c convert.c
>> clang -O2 -pipe -Qunused-parameter -Qunused-arguments -march=native -fno-strict-aliasing -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/pkg/../libpkg -I/ram/basejail/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/pkg/../external/uthash -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c create.c
>> clean.c:373:25: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
>> if (((&dl)->stqh_first == ((void *)0))) {
>> ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
>> clean.c:373:25: note: remove extraneous parentheses around the comparison to silence this warning
>> if (((&dl)->stqh_first == ((void *)0))) {
>> ~ ^ ~
>> clean.c:373:25: note: use '=' to turn this equality comparison into an assignment
>> if (((&dl)->stqh_first == ((void *)0))) {
>> ^~
>> =
>> 1 error generated.
>> *** [clean.o] Error code 1
>> 1 error
>> *** [all] Error code 2
>> 1 error
>> ===> Compilation failed unexpectedly.
>> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure 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.
>>
>> ===>>> make failed for ports-mgmt/pkg
>> ===>>> Aborting update
>>
>> ===>>> Update for pkg-1.1.4_9 failed
>> ===>>> Aborting update
>>
>
> You are using ccache without using the famework provided by the ports tree
> aren't you?
>
> because this looks like a ccache + clang failure
>
> regards,
> Bapt
>
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=1 in your jail's env or make.conf.
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20131120/607fbc32/attachment.sig>
More information about the freebsd-pkg
mailing list