From owner-freebsd-current@FreeBSD.ORG Wed Oct 31 14:52:11 2007 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 851E316A418 for ; Wed, 31 Oct 2007 14:52:11 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2001:1b20:1:3::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0058B13C494 for ; Wed, 31 Oct 2007 14:52:10 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id l9VEq3oO040717; Wed, 31 Oct 2007 15:52:09 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id l9VEq33u040716; Wed, 31 Oct 2007 15:52:03 +0100 (CET) (envelope-from olli) Date: Wed, 31 Oct 2007 15:52:03 +0100 (CET) Message-Id: <200710311452.l9VEq33u040716@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, stephan@yaraghchi.org In-Reply-To: <25f52a3d0710300732x425f0c45vde1a29361096c018@mail.gmail.com> X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 31 Oct 2007 15:52:09 +0100 (CET) X-Mailman-Approved-At: Wed, 31 Oct 2007 14:54:28 +0000 Cc: Subject: Re: loader breaks with -O2 optimizations X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-current@FreeBSD.ORG, stephan@yaraghchi.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 14:52:11 -0000 Stephan F. Yaraghchi wrote: > After making world on a freshly installed 7.0-BETA1 > the system does not boot anymore due to a broken loader: > [...] > I found out that the following line in my make.conf causes > the problem: > > CFLAGS= -O2 -funroll-loops -pipe > > After changing down to -O1 and making /usr/src/sys/boot again > the systems behaves properly at boot. Have you tried with the default flags? i.e. simply remove the CFLAGS line from your make.conf. Does the loader still break? Best regards Oliver PS: The default flags are: -O2 -fno-strict-aliasing -pipe (see /usr/share/mk/sys.mk) -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure." -- Eric Allman