From owner-freebsd-current Sun Jun 18 16:17:39 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with SMTP id 108F437BAEF for ; Sun, 18 Jun 2000 16:17:35 -0700 (PDT) (envelope-from dmmiller@cvzoom.net) Received: (qmail 32651 invoked from network); 18 Jun 2000 23:17:27 -0000 Received: from lc210.cvzoom.net (HELO cvzoom.net) (208.226.154.210) by ns.cvzoom.net with SMTP; 18 Jun 2000 23:17:27 -0000 Message-ID: <394D5886.F736F395@cvzoom.net> Date: Sun, 18 Jun 2000 19:17:26 -0400 From: Donn Miller X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: current@freebsd.org Subject: compiling kernel with -Os or -O2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Anyone try to compile the kernel with an optimization higher than -O, such as -Os or -O2? For example, when I compile my kernel with -Os, I get a "fatal trap 12: page fault in supervisor mode" right after I see this on my screen while the kernel is booting: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #0: Sun Jun 18 19:06:34 EDT 2000 dmmiller@lc210.cvzoom.net:/usr/src/sys/compile/CUSTOM Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P55C (166.45-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x543 Stepping = 3 Features=0x8001bf real memory = 62914560 (61440K bytes) This is all the further the boot gets before the page fault. Of course, as David O'Brien pointed out, optimization levels beyond -O aren't supported. But, I'm curious as to what the cause of this is, as it may reveal a deeper problem someplace. For example, is the problem with binutils, the kernel source code, or both? Hopefully, we'll find out after the binutils upgrade is complete. I should point out that using -O to compile the kernel gives no problems booting; it's just -Os that causes the problems for me. - Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message