From owner-freebsd-current@FreeBSD.ORG Sun Apr 15 07:48:03 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D4E4106566B for ; Sun, 15 Apr 2012 07:48:03 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from fmailer.gwdg.de (fmailer.gwdg.de [134.76.11.16]) by mx1.freebsd.org (Postfix) with ESMTP id DD0678FC12 for ; Sun, 15 Apr 2012 07:48:02 +0000 (UTC) Received: from p5dc3f072.dip.t-dialin.net ([93.195.240.114] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SJKBS-00021d-DL; Sun, 15 Apr 2012 09:47:42 +0200 Message-ID: <4F8A7D1A.8090307@gwdg.de> Date: Sun, 15 Apr 2012 09:47:38 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120317 Thunderbird/10.0.3 MIME-Version: 1.0 To: AN References: <4F889381.6090808@zedat.fu-berlin.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie 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: Sun, 15 Apr 2012 07:48:03 -0000 On 15.04.2012 00:01 (UTC+1), AN wrote: > > > On Fri, 13 Apr 2012, O. Hartmann wrote: > >> Am 04/13/12 00:21, schrieb AN: >>> At Thu Apr 12 17:52:05 EDT 2012: >>> >>> [root@FBSD10 /usr/src]# svn up >>> Updating '.': >>> At revision 234196. >>> >>> Trying to build the kernel I get the following failure: >>> >>> time make -j8 buildkernel KERNCONF=MYKERNEL >>> >>> >>> >>> ===> 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=8000 --param inline-unit-growth=100 --param >>> large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer >>> -I/usr/obj/usr/src/sys/MYKERNEL -mcmodel=kernel -mno-red-zone -mno-mmx >>> -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding >>> -fstack-protector -std=iso9899: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.c >>> 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=zlib.ko.symbols zlib.ko.debug >>> zlib.ko >>> 1 error >>> *** [buildkernel] Error code 2 >>> 1 error >>> *** [buildkernel] Error code 2 >>> 1 error >>> >>> real 8m20.095s >>> user 12m37.161s >>> sys 6m59.844s >>> >>> 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? >>> >>> Also, I tried without -j8, and it fails with the following: >>> >>> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -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=8000 --param >>> inline-unit-growth=100 --param large-function-growth=1000 >>> -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >>> -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 of >>> 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 >>> >>> Stop in /usr/obj/usr/src/sys/MYKERNEL. >>> *** [buildkernel] Error code 1 >>> >>> Stop in /usr/src. >>> *** [buildkernel] Error code 1 >>> >>> Stop in /usr/src. >>> >>> real 5m19.701s >>> user 4m33.051s >>> sys 0m51.466s >>> >>> >>> >>> Here is /etc/make.conf >>> >>> # cat /etc/make.conf >>> OVERRIDE_LINUX_BASE_PORT=f10 >>> QT4_OPTIONS= QGTKSTYLE >>> WITH_OPENSSL_PORT=yes >>> # added by use.perl 2012-04-04 01:11:13 >>> PERL_VERSION=5.14.2 >>> >>> The kernel previously built without problems with this same >>> configuration. >>> _______________________________________________ >> >> >> clang -c -O2 -pipe -pipe -O3 -fno-strict-aliasing -march=native -std=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=kernel -mno-red-zone >> -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables >> -ffreestanding -fstack-protector -Werror >> /usr/src/sys/kern/subr_turnstile.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 >> >> > > I updated source with svn within the last hour, and rebuilt world and > kernel. When I tried to boot to single-user mode to installworld the > machine panicked and rebooted. I needed to boot kernel.old to get > machine back. Is anyone else seeing a problem with the kernel? It seems > it is still broken for me. Same problem here with revision 234306. I am not able to boot the new kernel. It panics with: Fatal trap 18: integer divide fault while in kernel mode cpuid = 3; apic id = 03 instruction pointer = 0x20:0xffffffff803b9d34 stack pointer = 0x28:0xffffff80002a9a10 frame pointer = 0x28:0xffffff80002a9a60 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 13 (g_event) trap number = 18 panic: Integer divide fault cpuid = 3