Date: Thu, 10 May 2018 18:34:43 +0200 From: Oliver Pinter <oliver.pinter@hardenedbsd.org> To: Rick Miller <vrwmiller@gmail.com> Cc: Dimitry Andric <dim@freebsd.org>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org> Subject: Re: lint errors in stable/11 Message-ID: <CAPQ4fftL1_AUyQnLGRK0VLdXMPkp-huMHf8W8Obx592xF9fp-Q@mail.gmail.com> In-Reply-To: <CAHzLAVG8x-adGgnFdC%2BjDecDjhwo=R8wjHKv=MAgR-JqceCxRw@mail.gmail.com> References: <CAHzLAVEhGwPmYYgSVG0z1Uf7nCFWj5sUpxmek2WLsJCdAJd5MQ@mail.gmail.com> <CAHzLAVHPn0-tUca3CcJjmz2ZdpeVAiHR-5nMHarNijXd_uYhJg@mail.gmail.com> <4AC438CE-A49C-458E-A989-B145A4FBAA15@FreeBSD.org> <CAHzLAVG8x-adGgnFdC%2BjDecDjhwo=R8wjHKv=MAgR-JqceCxRw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
pro tip: as workaround, create a symlink to lint from /bin/true ;) On 5/10/18, Rick Miller <vrwmiller@gmail.com> wrote: > On Thu, May 10, 2018 at 8:23 AM Dimitry Andric <dim@freebsd.org> wrote: > >> On 10 May 2018, at 12:47, Rick Miller <vrwmiller@gmail.com> wrote: >> > >> > On Thu, May 10, 2018 at 6:35 AM Rick Miller <vrwmiller@gmail.com> wrot= e: >> ... >> >> Performing a release build via release/release.sh in r331337 of >> stable/11 >> >> errors citing the lack of lint. It=E2=80=99s understood lint was remo= ved from >> >> stable/11 so src.conf includes WITHOUT_LINT, but errors persist. As t= he >> >> code review alludes to[1], lint is irrelevant here. It seems >> WITHOUT_LINT >> >> may not be the only thing I=E2=80=99m looking for. What is the best a= pproach >> >> for >> >> mitigating these errors? >> >> >> >> >> > Here=E2=80=99s the error w/o email munging: >> > >> > =3D=3D=3D> usr.bin/xlint/xlint (all) >> > /data/dists/11.1.9.0-amd64-md/usr/src/contrib/apr/atomic/uni >> > x/builtins.c:71:53: >> > warning: passing 'const void *' to parameter of type 'volatile void *' >> > discards >> > qualifiers [-Wincompatible-pointer-types-discards-qualifiers] >> > >> > return (void*) __sync_val_compare_and_swap(mem, cmp, with); >> > >> > ^~~ >> > >> > 1 warning generated. >> > >> > =3D=3D=3D> usr.bin/xlint/llib (all) >> > >> > sh: lint: not found >> >> Are you building on a -CURRENT host? If so, see the previous mail >> thread about this: >> >> >> https://lists.freebsd.org/pipermail/freebsd-stable/2017-November/088092.= html >> >> and https://bugs.freebsd.org/223892. >> >> No, the build system is stable/11 r331337 building releng/11.1. The buil= d > system doesn=E2=80=99t include =E2=80=98lint=E2=80=99: > > # echo $PATH > /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin > # which lint > lint: Command not found. > > The mail thread and bug refer to building stable/11 on current where this > case is building releng/11.1 on stable/11. They also do not appear to > provide actionable information on mitigating errors though the code > commit[1] suggests installing a lint will resolve. Ports doesn=E2=80=99t = seem to > contain a suitable replacement however. Can lint still be installed on th= e > build system from the stable/11 source? If so, how is that accomplished? > > Do WITH/WITHOUT_LINT have any impact here? The source has been built with > WITH_LINT and WITHOUT_LINT to the same result except that xlint either > builds or doesn=E2=80=99t depending on the option. > > This all seems to originate with llib=E2=80=99s dependency on lint as des= cribed in > the email thread. It is in building llib where the error occurs. > > [1] https://reviews.freebsd.org/D13799=EF=BB=BF > > -Rick > -- > Take care > Rick Miller > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4fftL1_AUyQnLGRK0VLdXMPkp-huMHf8W8Obx592xF9fp-Q>