From owner-freebsd-current@FreeBSD.ORG Fri Apr 13 20:58:50 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C9D5106566C for ; Fri, 13 Apr 2012 20:58:50 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id B14E88FC1A for ; Fri, 13 Apr 2012 20:58:49 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1SInZw-0001nr-A4>; Fri, 13 Apr 2012 22:58:48 +0200 Received: from e178041147.adsl.alicedsl.de ([85.178.41.147] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1SInZw-0001IJ-3N>; Fri, 13 Apr 2012 22:58:48 +0200 Message-ID: <4F889381.6090808@zedat.fu-berlin.de> Date: Fri, 13 Apr 2012 22:58:41 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: AN References: In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig797D15B0B817E67021842F7B" X-Originating-IP: 85.178.41.147 Cc: freebsd-current@freebsd.org Subject: Re: kernel build failure X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 13 Apr 2012 20:58:50 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig797D15B0B817E67021842F7B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 04/13/12 00:21, schrieb AN: > At Thu Apr 12 17:52:05 EDT 2012: >=20 > [root@FBSD10 /usr/src]# svn up > Updating '.': > At revision 234196. >=20 > Trying to build the kernel I get the following failure: >=20 > time make -j8 buildkernel KERNCONF=3DMYKERNEL >=20 > >=20 > =3D=3D=3D> zlib (all) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE > -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/MYKERNEL/opt_global.h -I. -I@ -I@/contrib/altq > -finline-limit=3D8000 --param inline-unit-growth=3D100 --param > large-function-growth=3D1000 -fno-common -g -fno-omit-frame-pointer > -I/usr/obj/usr/src/sys/MYKERNEL -mcmodel=3Dkernel -mno-red-zone -mno-m= mx > -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -fstack-protector -std=3Diso9899:1999 -fstack-protector -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -c /usr/src/sys/modules/zlib/../../net/zlib= =2Ec > ld -d -warn-common -r -d -o zlib.ko.debug zlib.o > :> export_syms > awk -f /usr/src/sys/conf/kmod_syms.awk zlib.ko.debug export_syms | > xargs -J% objcopy % zlib.ko.debug > objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols > objcopy --strip-debug --add-gnu-debuglink=3Dzlib.ko.symbols zlib.ko.deb= ug > zlib.ko > 1 error > *** [buildkernel] Error code 2 > 1 error > *** [buildkernel] Error code 2 > 1 error >=20 > real 8m20.095s > user 12m37.161s > sys 6m59.844s >=20 > I tried this 4 times, twice with MYKERNEL and twice with GENERIC. It > failed in the same spot every time. Is anyone else seeing this? >=20 > Also, I tried without -j8, and it fails with the following: >=20 > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=3Dc99 -g > -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS > -include opt_global.h -fno-common -finline-limit=3D8000 --param > inline-unit-growth=3D100 --param large-function-growth=3D1000 > -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-s= se > -msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -fstack-protector -Werror /usr/src/sys/kern/subr_turnstile.c > cc1: warnings being treated as errors > /usr/src/sys/kern/subr_turnstile.c: In function 'propagate_priority': > /usr/src/sys/kern/subr_turnstile.c:220: warning: implicit declaration o= f > function 'kdb_backtrace_thread' > /usr/src/sys/kern/subr_turnstile.c:220: warning: nested extern > declaration of 'kdb_backtrace_thread' [-Wnested-externs] > *** [subr_turnstile.o] Error code 1 >=20 > Stop in /usr/obj/usr/src/sys/MYKERNEL. > *** [buildkernel] Error code 1 >=20 > Stop in /usr/src. > *** [buildkernel] Error code 1 >=20 > Stop in /usr/src. >=20 > real 5m19.701s > user 4m33.051s > sys 0m51.466s >=20 >=20 >=20 > Here is /etc/make.conf >=20 > # cat /etc/make.conf > OVERRIDE_LINUX_BASE_PORT=3Df10 > QT4_OPTIONS=3D QGTKSTYLE > WITH_OPENSSL_PORT=3Dyes > # added by use.perl 2012-04-04 01:11:13 > PERL_VERSION=3D5.14.2 >=20 > The kernel previously built without problems with this same configurati= on. > _______________________________________________ clang -c -O2 -pipe -pipe -O3 -fno-strict-aliasing -march=3Dnative -std=3D= c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=3Dkernel -mno-red-zone= -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror /usr/src/sys/kern/subr_turnstil= e.c /usr/src/sys/kern/subr_turnstile.c:220:4: error: implicit declaration of function 'kdb_backtrace_thread' is invalid in C99 [-Werror,-Wimplicit-function-declaration] kdb_backtrace_thread(td); ^ 1 error generated. *** [subr_turnstile.o] Error code 1 1 error *** [buildkernel] Error code 2 1 error *** [buildkernel] Error code 2 1 error I still get this error on one of my boxes. Another, with almost the same setup and config, build fine! All systems build with CLANG. They share the same /etc/src.conf and have the same /etc/make.conf. Before building kernel/world, I cleanup/delete /usr/obj. But the error still persists. Regards, Oliver --------------enig797D15B0B817E67021842F7B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJPiJOHAAoJEOgBcD7A/5N8Ep4H/ipXElLO2696Zyxn7ocnigjA 1KabmXKgpOyYU51Mgt6cSZnxM+WnGf3G/Qw34Vn48svo6lIWozLTw2Ekn/hKH3Yg 6ipZ/8iMSdDBYsi07DgvS0nmecgwnX9Q9J+y7WeZS0HffB0dwmdtUV57H5zH41UP pne/PB8BES0zSar+jQcB21TgcVxq1fZNKzouAAPTs/RVLETL+duuLFErQ33vgj88 oYgWGrlBP49y2AQ8M2MhkxD3ovy6qSC2xhB7Vzqjw1AyAtBvFyvJjyJ6E3ocX40s 8uDm4aKNoAFQTLaxI8DukiZa9Umg+VQQNTIGKY8j2Dt8Uw+K2/9fhPwYgqL/6IE= =HJbw -----END PGP SIGNATURE----- --------------enig797D15B0B817E67021842F7B--