From owner-freebsd-current@freebsd.org Fri Apr 21 18:42:25 2017 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 2633FD49AFB for ; Fri, 21 Apr 2017 18:42:25 +0000 (UTC) (envelope-from fehrist@codeghar.com) Received: from mail-ua0-x234.google.com (mail-ua0-x234.google.com [IPv6:2607:f8b0:400c:c08::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD2887D4 for ; Fri, 21 Apr 2017 18:42:24 +0000 (UTC) (envelope-from fehrist@codeghar.com) Received: by mail-ua0-x234.google.com with SMTP id a1so86697901uaf.3 for ; Fri, 21 Apr 2017 11:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeghar-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=yZaFbqvYFss2tCIPjXmKiiod1KOdTE5FOTv/dkBDLY4=; b=quB/xRAQP/7tHXJon+AoJf+uNobE+HI05a05LrjrpJU2eocrd34m4dAH8aGyapIki9 ykKALVO1Ar0JRkjPOe7GhfFucpXA4zwLFRj2VCwHaLS+ZzBaQjfiAh0WZsSMxhWnS6pE tSp4EpE/2YMW0ZZOOezKGkF02T25SNekXJw//DBgjkfXe+nsMhwleUvhlIYHN0mvuI9f Lok8GvI2YHRa8xbvLoHM93oTr/+Br3UtahbBwLXMSmaVXAqVp4QD3sEeiz1tCQLKglqH 7eZsUQFC3CnWBj1eP9PrHeTOCa9XtIr/DpdPxRSMKsWJSNOsMSn+c1jb84G3u6C/x6j5 gHig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yZaFbqvYFss2tCIPjXmKiiod1KOdTE5FOTv/dkBDLY4=; b=RHsR5j9QHFRu2SODpA3lupBmD7ojzrvlIZjhuvMA9p8AN9asrY4j8fbUolVfU3+OTV O3L3p2LKgKidDFoC4FobsGLihFhHJLixm8e0VyJdxeoLVEtPukc7adMQHyVoyKZwWrO+ JqB52BJKcu1D9t6CzAhbsWJFnKFjiIiKjq5mEyG8FYf1tPnAVOHN5QRpo96Cw114cecE JrSGSEfZO2GO05bTD8eecMEuKRqdMxgLnxgTns13YkdpuQe7bNcTQegfiqLbLCjd0zKV nKpHnLVzKwRHz6ttemBpTL0ZYFR03j+3P66fAERZQN2x+r9TKMd4Pe0NVirNOyNsS/P/ VVUw== X-Gm-Message-State: AN3rC/73dVZeRaNRxmaWBQRx4j56yK7fDuKxJd9Yl8MndQ8M4oJszAde XX2+6p5t4XVIc+7R5h9l8GxvfHOW3C1t/co= X-Received: by 10.176.70.26 with SMTP id m26mr5829873uaa.167.1492800143747; Fri, 21 Apr 2017 11:42:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.35.7 with HTTP; Fri, 21 Apr 2017 11:42:23 -0700 (PDT) From: Hamza Sheikh Date: Fri, 21 Apr 2017 11:42:23 -0700 Message-ID: Subject: buildworld fails with warning in usr.bin/diff/diffreg.c To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Fri, 21 Apr 2017 19:24:38 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 21 Apr 2017 18:42:25 -0000 The error is: --- all_subdir_usr.bin --- cc1: warnings being treated as errors /home/vagrant/src/usr.bin/diff/diffreg.c: In function 'change': /home/vagrant/src/usr.bin/diff/diffreg.c:1085: warning: 'i' may be used uninitialized in this function --- all_subdir_share --- --- ucred.9.gz --- gzip -cn /home/vagrant/src/share/man/man9/ucred.9 > ucred.9.gz --- uidinfo.9.gz --- gzip -cn /home/vagrant/src/share/man/man9/uidinfo.9 > uidinfo.9.gz --- uio.9.gz --- gzip -cn /home/vagrant/src/share/man/man9/uio.9 > uio.9.gz --- all_subdir_usr.bin --- *** [diffreg.o] Error code 1 make[4]: stopped in /home/vagrant/src/usr.bin/diff 1 error make[4]: stopped in /home/vagrant/src/usr.bin/diff --- all_subdir_share --- A failure has been detected in another branch of the parallel make make[5]: stopped in /home/vagrant/src/share/man/man9 --- all_subdir_usr.bin --- *** [all_subdir_usr.bin/diff] Error code 2 make[3]: stopped in /home/vagrant/src/usr.bin 1 error --- all_subdir_share --- *** [all_subdir_share/man/man9] Error code 2 make[4]: stopped in /home/vagrant/src/share/man 1 error make[4]: stopped in /home/vagrant/src/share/man *** [all_subdir_share/man] Error code 2 make[3]: stopped in /home/vagrant/src/share 1 error make[3]: stopped in /home/vagrant/src/share --- all_subdir_usr.bin --- make[3]: stopped in /home/vagrant/src/usr.bin --- all_subdir_share --- *** [all_subdir_share] Error code 2 make[2]: stopped in /home/vagrant/src --- all_subdir_usr.bin --- *** [all_subdir_usr.bin] Error code 2 make[2]: stopped in /home/vagrant/src --- all_subdir_lib --- A failure has been detected in another branch of the parallel make make[8]: stopped in /home/vagrant/src/lib/libcasper/services/cap_grp/tests *** [grp_test] Error code 2 make[7]: stopped in /home/vagrant/src/lib/libcasper/services/cap_grp/tests 1 error make[7]: stopped in /home/vagrant/src/lib/libcasper/services/cap_grp/tests *** [all_subdir_lib/libcasper/services/cap_grp/tests] Error code 2 make[6]: stopped in /home/vagrant/src/lib/libcasper/services/cap_grp 1 error make[6]: stopped in /home/vagrant/src/lib/libcasper/services/cap_grp *** [all_subdir_lib/libcasper/services/cap_grp] Error code 2 make[5]: stopped in /home/vagrant/src/lib/libcasper/services 1 error make[5]: stopped in /home/vagrant/src/lib/libcasper/services *** [all_subdir_lib/libcasper/services] Error code 2 make[4]: stopped in /home/vagrant/src/lib/libcasper 1 error make[4]: stopped in /home/vagrant/src/lib/libcasper *** [all_subdir_lib/libcasper] Error code 2 make[3]: stopped in /home/vagrant/src/lib 1 error make[3]: stopped in /home/vagrant/src/lib *** [all_subdir_lib] Error code 2 make[2]: stopped in /home/vagrant/src --- all_subdir_usr.sbin --- A failure has been detected in another branch of the parallel make make[4]: stopped in /home/vagrant/src/usr.sbin/ctld *** [all_subdir_usr.sbin/ctld] Error code 2 make[3]: stopped in /home/vagrant/src/usr.sbin 1 error make[3]: stopped in /home/vagrant/src/usr.sbin *** [all_subdir_usr.sbin] Error code 2 make[2]: stopped in /home/vagrant/src 4 errors make[2]: stopped in /home/vagrant/src *** [everything] Error code 2 make[1]: stopped in /home/vagrant/src 1 error make[1]: stopped in /home/vagrant/src *** [buildworld] Error code 2 make: stopped in /home/vagrant/src 1 error make: stopped in /home/vagrant/src Command exit status: 2 ++++++++++++++++++++++++++++ This is what the code snippet in the file looks like when error is encountered: vagrant@freebsd12current:~/src/usr.bin/diff % awk 'NR>=1080&&NR<=1090' diffreg.c change(char *file1, FILE *f1, char *file2, FILE *f2, int a, int b, int c, int d, int *pflags) { static size_t max_context = 64; long curpos; int i, nc; const char *walk; restart: if ((diff_format != D_IFDEF || diff_format == D_GFORMAT) && a > b && c > d) ++++++++++++++++++++++++++++ The following snippet removes the error during build: vagrant@freebsd12current:~/src/usr.bin/diff % awk 'NR>=1080&&NR<=1091' diffreg.c change(char *file1, FILE *f1, char *file2, FILE *f2, int a, int b, int c, int d, int *pflags) { static size_t max_context = 64; long curpos; int i, nc; int 0; const char *walk; restart: if ((diff_format != D_IFDEF || diff_format == D_GFORMAT) && a > b && c > d) ++++++++++++++++++++++++++++ vagrant@freebsd12current:~/src % svnlite info Path: . Working Copy Root Path: /home/vagrant/src URL: svn://svn.freebsd.org/base/head Relative URL: ^/head Repository Root: svn://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 317257 Node Kind: directory Schedule: normal Last Changed Author: bde Last Changed Rev: 317256 Last Changed Date: 2017-04-21 15:12:43 +0000 (Fri, 21 Apr 2017)