From owner-freebsd-stable@FreeBSD.ORG Wed Feb 20 17:17:50 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA8E416A401 for ; Wed, 20 Feb 2008 17:17:50 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 25CF113C468 for ; Wed, 20 Feb 2008 17:17:49 +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 m1KHHgge098089; Wed, 20 Feb 2008 18:17:48 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m1KHHfQv098088; Wed, 20 Feb 2008 18:17:41 +0100 (CET) (envelope-from olli) Date: Wed, 20 Feb 2008 18:17:41 +0100 (CET) Message-Id: <200802201717.m1KHHfQv098088@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, blackdragon@highveldmail.co.za In-Reply-To: X-Newsgroups: list.freebsd-stable 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, 20 Feb 2008 18:17:49 +0100 (CET) Cc: Subject: Re: tmpfs: strange behaviour X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, blackdragon@highveldmail.co.za List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2008 17:17:50 -0000 David Naylor wrote: > Oliver Fromme wrote: > > What is the exact CFLAGS setting that you use? > > Do you use -O2 (or -Os) without -fno-strict-aliasing? > > I have managed to isolate the problem and it is definitely tmpfs > related. If the directory that I'm installing into is tmpfs then it > will fail, if it is ufs then it works. > > I recompiled tmpfs module (and reloaded) with CFLAGS='' with the same result. > > As an aside I have found that the default CFLAGS for src are: -O2 > -fno-strict-aliasing -pipe. For most parts of src, but some override it. > Would -fstrict-aliasing break anything in base/sys? I think src/sys is clean with regards to aliasing, but I'm not 100% sure. Someone please correct me if I'm wrong. I recommend not to put a CFLAGS line in /etc/make.conf at all. So far I haven't seen an example of a really useful CFLAGS line in this thread, but several examples that could possibly cause damage. It's best not to override the default (which is there for a reason). If you want better optimization, a appropriate CPUTYPE=... line is probably a better idea. Best regards Oliver -- 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 "We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing."         -- Mother Teresa