From owner-freebsd-current@FreeBSD.ORG Thu Nov 1 07:26:37 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 7945616A46B for ; Thu, 1 Nov 2007 07:26:37 +0000 (UTC) (envelope-from yaraghchi@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.225]) by mx1.freebsd.org (Postfix) with ESMTP id 0968D13C491 for ; Thu, 1 Nov 2007 07:26:36 +0000 (UTC) (envelope-from yaraghchi@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so306467nzf for ; Thu, 01 Nov 2007 00:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=8yHP+NV2IpDyjfE6qaDGFdtzZU4Rlco4DWWInNRgY98=; b=eviaQj5AP5/nCG5e1xAQjwHweRUkc4LaJWKVenyt9bmK/4KKxxWduTrDtICutCqkVzMmUHs3H+3vDfsd3cLvuk+UUScXcCsy0Wq7MJZ1Se7aq2efXnkzY3pz4XFrdM+4GUn0J51qftVtHRe4k+uIAbEklV3MC6bhA8qsIofB+NQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=NDPUIpmR00u2XPhr11qoGh/Kavrrn57M0PANo0hbyM3NYaNgyz7WPY2LOMVAlJVbqeYWbaBqUvM86dGLJvmEAp/sXw+LZnYvfJXOots9TeVuAEElgvWgPUugu3QBfk7KemVStd+LIh0k8WmnF7ahT1uVSfHmdAJuLs2YTou1OqY= Received: by 10.142.225.11 with SMTP id x11mr26029wfg.1193901589916; Thu, 01 Nov 2007 00:19:49 -0700 (PDT) Received: by 10.143.158.18 with HTTP; Thu, 1 Nov 2007 00:19:49 -0700 (PDT) Message-ID: <25f52a3d0711010019v76aef126q6ccae27682f14568@mail.gmail.com> Date: Thu, 1 Nov 2007 08:19:49 +0100 From: "Stephan F. Yaraghchi" Sender: yaraghchi@gmail.com To: freebsd-current@freebsd.org, stephan@yaraghchi.org In-Reply-To: <200710311452.l9VEq33u040716@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <25f52a3d0710300732x425f0c45vde1a29361096c018@mail.gmail.com> <200710311452.l9VEq33u040716@lurza.secnetix.de> X-Google-Sender-Auth: ee99d7c35472d378 Cc: Subject: Re: loader breaks with -O2 optimizations 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: Thu, 01 Nov 2007 07:26:37 -0000 On 10/31/07, Oliver Fromme wrote: > 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=3D -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=E4ftsfuehrun= g: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M=FC= n- > chen, HRB 125758, Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf Geb= hart > > 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > Hi Oliver, I added -O2 -fno-strict-aliasing -pipe to the make.conf and it worked too! Jeremy came up with a post by Josh that points out that the size of the binary seems to be the problem: http://www.nabble.com/buildworld-failure-(boot2.ld-too-big-when-CFLAGS-set-= in-make.conf)-t4674137.html Using the default CFLAGS the resulting loader binary is 290816 Bytes, with -O1 -funroll-loops -pipe it's 319488 Bytes and after adding -funroll-loops to the defaults the binary becames 323584 Bytes... --=20 Stephan www.deine-stimme-gegen-armut.de