From owner-freebsd-stable@freebsd.org Thu May 10 15:27:55 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77369FCD998 for ; Thu, 10 May 2018 15:27:55 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F200473083 for ; Thu, 10 May 2018 15:27:54 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: bd90951f-5466-11e8-b234-5d9545c6b53f X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id bd90951f-5466-11e8-b234-5d9545c6b53f; Thu, 10 May 2018 15:28:08 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w4AFRoYx064311; Thu, 10 May 2018 09:27:50 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1525966070.35372.60.camel@freebsd.org> Subject: Re: lint errors in stable/11 From: Ian Lepore To: Rick Miller , Dimitry Andric Cc: "freebsd-stable@freebsd.org" Date: Thu, 10 May 2018 09:27:50 -0600 In-Reply-To: References: <4AC438CE-A49C-458E-A989-B145A4FBAA15@FreeBSD.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2018 15:27:55 -0000 On Thu, 2018-05-10 at 14:40 +0000, Rick Miller wrote: > On Thu, May 10, 2018 at 8:23 AM Dimitry Andric wrote: > > > > > On 10 May 2018, at 12:47, Rick Miller wrote: > > > > > > > > > On Thu, May 10, 2018 at 6:35 AM Rick Miller wrote: > > ... > > > > > > > > > > > Performing a release build via release/release.sh in r331337 of > > stable/11 > > > > > > > > > > > errors citing the lack of lint. It’s understood lint was removed from > > > > stable/11 so src.conf includes WITHOUT_LINT, but errors persist. As the > > > > code review alludes to[1], lint is irrelevant here. It seems > > WITHOUT_LINT > > > > > > > > > > > may not be the only thing I’m looking for. What is the best approach for > > > > mitigating these errors? > > > > > > > > > > > Here’s the error w/o email munging: > > > > > > ===> 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. > > > > > > ===> 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 build > system doesn’t include ‘lint’: > > # 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’t seem to > contain a suitable replacement however. Can lint still be installed on the > 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’t depending on the option. > > This all seems to originate with llib’s dependency on lint as described in > the email thread. It is in building llib where the error occurs. > > [1] https://reviews.freebsd.org/D13799 > > -Rick Releng/11.1 is cast in stone; as I understand it, only security fixes can get merged into release branches, so the fix I did that added WITH/WITHOUT_LINT isn't on that branch and never will be. That means lint has to exist on the build system. If your build system is 11- stable, then add WITH_LINT=yes to your /etc/src.conf, build and install world, then that 11-stable system should be able to build the releng branch. Unfortunately, no such option exists for people trying to build on 12, because lint was removed completely (although it might be possible to install a lint port, I'm not sure about that). -- Ian