From owner-freebsd-questions@FreeBSD.ORG Fri Mar 16 16:33:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B9E5416A407 for ; Fri, 16 Mar 2007 16:33:20 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 9150A13C468 for ; Fri, 16 Mar 2007 16:33:20 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 16A2C519DB; Fri, 16 Mar 2007 12:33:18 -0400 (EDT) Date: Fri, 16 Mar 2007 16:33:15 +0000 From: RW To: freebsd-questions@freebsd.org, Jeffrey Goldberg Message-ID: <20070316163315.0201f326@gumby.homeunix.com> In-Reply-To: References: <682271DA-A9C3-48E0-A18E-8546A7725864@goldmark.org> <20070315084846.GA15959@epia-2.farid-hajji.net> <499c70c0703150316x67bd1783g53ad5f7d04ed2682@mail.gmail.com> X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.11; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 16:33:20 -0000 On Thu, 15 Mar 2007 14:39:00 -0500 Jeffrey Goldberg wrote: > I've had two responses telling me that the make.conf defaults are > just fine, and two (one off list) recommending i686/pentiumpro. One > for pentiumpro and the other for i686, but as Andreas Rudish > helpfully pointed out, those two are probably the same thing. No > one suggested using c3. In fact, cpghost emphatically stated not to > use C3 in make.conf > > Adbullah Ibn Hamad Al-Marri also helpfully directed me for > information about safe CFLAGS to > > http://gentoo-wiki.com/Safe_Cflags > > where the entry for the Via Nehemiah says: > > ============================================================== > Nehemiah (C5XL)/C5P (Via) > > CHOST="i686-pc-linux-gnu" > CFLAGS="-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer" > CXXFLAGS="${CFLAGS}" > > note: The more recent versions of the C3 do support the cmov > instruction and hence -march=i686. If you must be compatible with > all VIA C3 versions, do not use the settings in this section. > > note: it is also possible to use "-march=c3-2". <-- Comment to this: > I got a problem "compiler can't create executables" with this setting. From: /usr/share/mk/bsd.cpu.mk . elif ${CPUTYPE} == "c3" MACHINE_CPU = 3dnow mmx i586 i486 i386 . elif ${CPUTYPE} == "c3-2" MACHINE_CPU = sse mmx i586 i486 i386 If you look at the screenshot of the CPUID window from the review linked by Garrett, it says the Nehemiah has sse but not 3dnow, which matches the c3-2 settings above. I would recommend that you comment out C[XX]FLAGS and try again with CPUTYPE=c3-2 FreeBSD isn't Gentoo, and using Gentoo's settings may cause trouble in the long-term. If you set CPUTYPE properly, FreeBSD will normally come-up with sensible optimizations.