Build from 9.3-RELEASE to 11.0-CURRENT fails for i386 (-Wsign-compare issues with gcc)

From: NGie Cooper <yaneurabeya_at_gmail.com>
Date: Sat, 19 Dec 2015 13:05:36 -0800
Hi John,
	I tried bootstrapping 9.3-RELEASE to 11.0-CURRENT with i386 and ran into the -Wsign-compare issue below when running make libraries with buildworld, because it’s building libkvm with gcc 4.2.1 :/… I’ve tried bootstrapping with clang/clang37, but haven’t been able to yet. I’ll try installing 10.2-RELEASE via freebsd-update so I can use clang instead of gcc.
Thanks!
-NGie

% git log --show-notes --grep svn -n 1
commit 69774947bfffd5e16d26b60a82d880aa659abbf2
Author: imp <imp_at_FreeBSD.org>
Date:   Sat Dec 19 19:20:48 2015 +0000

    Move some MIPS specific flags to be more congruent with other
    architectures.

Notes:
    svn path=/head/; revision=292474

% make buildworld

--- lib/libkvm__L ---
--- kvm_i386.o ---
cc   -O2 -pipe -O2 -pipe -DLIBC_SCCS -I/usr/src/git/lib/libkvm   -MD -MP -MF.depend.kvm_i386.o -MTkvm_i386.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign   -c /usr/src/git/lib/libkvm/kvm_i386.c -o kvm_i386.o
--- lib/libnv__L ---
--- obj ---
--- lib/libkvm__L ---
cc1: warnings being treated as errors
In file included from /usr/src/git/lib/libkvm/kvm_i386.c:63:
/usr/src/git/lib/libkvm/kvm_i386.h:73: warning: comparison between signed and unsigned
*** [kvm_i386.So] Error code 1

bmake[3]: stopped in /usr/src/git/lib/libkvm
1 error

bmake[3]: stopped in /usr/src/git/lib/libkvm
*** [lib/libkvm__L] Error code 2

bmake[2]: stopped in /usr/src/git
--- lib/libmd__L ---
A failure has been detected in another branch of the parallel make

bmake[3]: stopped in /usr/src/git/lib/libmd
*** [lib/libmd__L] Error code 2

bmake[2]: stopped in /usr/src/git
2 errors

bmake[2]: stopped in /usr/src/git
*** [libraries] Error code 2
…
% cc --version
cc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%
Received on Sat Dec 19 2015 - 20:05:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC