From owner-svn-src-head@freebsd.org Thu Jul 21 18:01:21 2016 Return-Path: Delivered-To: svn-src-head@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 E7114BA1652; Thu, 21 Jul 2016 18:01:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::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 9110B1373; Thu, 21 Jul 2016 18:01:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u6LI1BCN031870 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 21 Jul 2016 21:01:11 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u6LI1BCN031870 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u6LI1BIs031869; Thu, 21 Jul 2016 21:01:11 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 21 Jul 2016 21:01:11 +0300 From: Konstantin Belousov To: Ruslan Bukin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r303151 - in head/sys: dev/pty kern sys Message-ID: <20160721180111.GH38613@kib.kiev.ua> References: <201607211634.u6LGYvIH038339@repo.freebsd.org> <20160721175225.GA84153@bsdpad.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20160721175225.GA84153@bsdpad.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 18:01:22 -0000 On Thu, Jul 21, 2016 at 06:52:25PM +0100, Ruslan Bukin wrote: > Hi, >=20 > I get the issues below with GCC 6.1 >=20 > [...] > =3D=3D=3D> lib/libsbuf (obj,all,install) > /home/rb743/opt/new17/bin/riscv64-unknown-freebsd11.0-gcc -isystem /home/= rb743/obj//riscv.riscv64/home/rb743/dev/freebsd-riscv/tmp/usr/include -L/ho= me/rb743/obj//riscv.riscv64/home/rb743/dev/freebsd-riscv/tmp/usr/lib --sysr= oot=3D/home/rb743/obj//riscv.riscv64/home/rb743/dev/freebsd-riscv/tmp -B/ho= me/rb743/obj//riscv.riscv64/home/rb743/dev/freebsd-riscv/tmp/usr/bin -O2 -= pipe -msoft-float -MD -MF.depend.subr_prf.o -MTsubr_prf.o -std=3Dgnu99 -= fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -= Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-ari= th -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-par= ameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant= -decls -Wold-style-definition -Wno-pointer-sign -Wno-error=3Dunused-functio= n -Wno-error=3Denum-compare -Wno-error=3Dlogical-not-parentheses -Wno-error= =3Dbool-compare -Wno-error=3Duninitialized -Wno-error=3Darray-bounds -Wno-e= rror=3Dclobbered -Wno-error=3Dcast-align -Wno-error=3Dextra -Wno-error=3Dat= tributes -Wno-error=3Dinline -Wno-error=3Dunused-but-set-variable -Wno-erro= r=3Dunused-value -Wno-error=3Dstrict-aliasing -Wno-error=3Daddress -Wno-err= or=3Dunused-const-variable=3D -Wno-error=3Dnonnull-compare -Wno-error=3Dshi= ft-negative-value -Wno-error=3Dmisleading-indentation -Wno-error=3Dtautolog= ical-compare -c /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/ker= n/subr_prf.c -o subr_prf.o > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1200:= 1: error: no previous prototype for 'counted_warning' [-Werror=3Dmissing-pr= ototypes] > counted_warning(unsigned *counter, const char *msg) > ^~~~~~~~~~~~~~~ > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c: In f= unction 'counted_warning': > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1209:= 7: error: implicit declaration of function 'atomic_cmpset_int' [-Werror=3Di= mplicit-function-declaration] > if (atomic_cmpset_int(counter, c, c - 1)) { > ^~~~~~~~~~~~~~~~~ > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1209:= 3: error: nested extern declaration of 'atomic_cmpset_int' [-Werror=3Dneste= d-externs] > if (atomic_cmpset_int(counter, c, c - 1)) { > ^~ > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1210:= 9: error: 'curthread' undeclared (first use in this function) > td =3D curthread; > ^~~~~~~~~ > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1210:= 9: note: each undeclared identifier is reported only once for each function= it appears in > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1211:= 4: error: implicit declaration of function 'log' [-Werror=3Dimplicit-functi= on-declaration] > log(LOG_INFO, "pid %d (%s) %s%s\n", > ^~~ > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1211:= 4: error: incompatible implicit declaration of built-in function 'log' [-We= rror] > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1211:= 4: note: include '' or provide a declaration of 'log' > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1211:= 8: error: 'LOG_INFO' undeclared (first use in this function) > log(LOG_INFO, "pid %d (%s) %s%s\n", > ^~~~~~~~ > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1212:= 10: error: dereferencing pointer to incomplete type 'struct thread' > td->td_proc->p_pid, td->td_name, msg, > ^~ > /home/rb743/dev/freebsd-riscv/lib/libsbuf/../../sys/kern/subr_prf.c:1211:= 4: error: too many arguments to function 'log' > log(LOG_INFO, "pid %d (%s) %s%s\n", > ^~~ > cc1: all warnings being treated as errors > *** [subr_prf.o] Error code 1 >=20 > bmake[4]: stopped in /home/rb743/dev/freebsd-riscv/lib/libsbuf > 1 error >=20 > bmake[4]: stopped in /home/rb743/dev/freebsd-riscv/lib/libsbuf > *** [lib/libsbuf__L] Error code 2 >=20 > bmake[3]: stopped in /home/rb743/dev/freebsd-riscv > 1 error >=20 > bmake[3]: stopped in /home/rb743/dev/freebsd-riscv > *** [libraries] Error code 2 >=20 > bmake[2]: stopped in /home/rb743/dev/freebsd-riscv > 1 error >=20 > bmake[2]: stopped in /home/rb743/dev/freebsd-riscv > *** [_libraries] Error code 2 >=20 > bmake[1]: stopped in /home/rb743/dev/freebsd-riscv > 1 error >=20 > bmake[1]: stopped in /home/rb743/dev/freebsd-riscv > *** [buildworld] Error code 2 >=20 > make: stopped in /home/rb743/dev/freebsd-riscv >=20 > make: stopped in /home/rb743/dev/freebsd-riscv This should be fixed with r303155.