From owner-freebsd-current@freebsd.org Mon Dec 21 19:49:33 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 704AEA4F4A8 for ; Mon, 21 Dec 2015 19:49:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5215B134C for ; Mon, 21 Dec 2015 19:49:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 5EBB8B983; Mon, 21 Dec 2015 14:49:32 -0500 (EST) From: John Baldwin To: NGie Cooper Cc: FreeBSD CURRENT Subject: Re: Build from 9.3-RELEASE to 11.0-CURRENT fails for i386 (-Wsign-compare issues with gcc) Date: Mon, 21 Dec 2015 11:01:36 -0800 Message-ID: <3659799.xE9v788p8Q@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <8E98A82D-C36F-4863-8BE4-81288735F3A1@gmail.com> References: <8E98A82D-C36F-4863-8BE4-81288735F3A1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 21 Dec 2015 14:49:32 -0500 (EST) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2015 19:49:33 -0000 On Saturday, December 19, 2015 01:05:36 PM NGie Cooper wrote: > Hi John, > =09I tried bootstrapping 9.3-RELEASE to 11.0-CURRENT with i386 and ra= n into the -Wsign-compare issue below when running make libraries with = buildworld, because it=E2=80=99s building libkvm with gcc 4.2.1 :/=E2=80= =A6 I=E2=80=99ve tried bootstrapping with clang/clang37, but haven=E2=80= =99t been able to yet. I=E2=80=99ll try installing 10.2-RELEASE via fre= ebsd-update so I can use clang instead of gcc. > Thanks! > -NGie We don't actually support going from 9 to 11. However, these constants= should probably be explicitly unsigned anyway. I haven't tested this a= t all, but something like this: Index: head/lib/libkvm/kvm_i386.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head/lib/libkvm/kvm_i386.h (revision 292553) +++ head/lib/libkvm/kvm_i386.h (working copy) @@ -57,8 +57,8 @@ #define I386_PG_PS 0x080 #define I386_PG_FRAME_PAE (0x000ffffffffff000ull) #define I386_PG_PS_FRAME_PAE (0x000fffffffe00000ull) -#define I386_PG_FRAME (0xfffff000) -#define I386_PG_PS_FRAME (0xffc00000) +#define I386_PG_FRAME (0xfffff000u) +#define I386_PG_PS_FRAME (0xffc00000u) =20 #ifdef __i386__ _Static_assert(PAGE_SHIFT =3D=3D I386_PAGE_SHIFT, "PAGE_SHIFT mismatch= "); --=20 John Baldwin