From owner-freebsd-questions@FreeBSD.ORG Fri Mar 16 03:41:56 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 BA20316A401 for ; Fri, 16 Mar 2007 03:41:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 9621F13C468 for ; Fri, 16 Mar 2007 03:41:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2G3fu4l009644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Mar 2007 20:41:56 -0700 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2G3ftS7022123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 15 Mar 2007 20:41:55 -0700 Message-ID: <45FA1202.6010405@u.washington.edu> Date: Thu, 15 Mar 2007 20:41:54 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <682271DA-A9C3-48E0-A18E-8546A7725864@goldmark.org> <20070315084846.GA15959@epia-2.farid-hajji.net> <499c70c0703150316x67bd1783g53ad5f7d04ed2682@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.15.202934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' 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 03:41:56 -0000 Jeffrey Goldberg wrote: > [mailed, posted and bcc'ed to off list respondents] > > > First let me quote my original query: > >> I have one of these >> >> CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU) >> Origin = "CentaurHauls" Id = 0x691 Stepping = 1 >> Features=0x380b035 >> >> http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=81 >> >> >> And 6.2-RELEASE p2 >> >> When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just >> fine, but (at least) gcc ended up broken. Most compiling attempts >> after that ended up with gcc reporting an internal error. >> >> Now that I've entered the FreeBSD world and am building everything >> from source, I would like to take advantage of that by compiling for >> my system. >> >> Does anyone have a similar system? And what CPUTYPE or local tuning >> do you recommend? >> >> A dmesg for the system is available at >> >> http://ntp0.goldmark.org/temp/dmesg > > 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. > > note: I had much better luck with -Os than with -O2. The cache on the > nehemiah chips is really small, so making the executables small helps > more than anything else. > ============================================================== > > The off list response added > > >> - Setting CPUTYPE to pentium, or pentiumpro both work fine. IIRC, >> the C3 designation is Linux-specific and doesn't exist for >> FreeBSD. >> > > If everybody agrees that the c3 designation is unwise to use, then > probably the distributed > > /usr/share/examples/etc/make.conf > > The off list responded gave extremely helpful and detailed information > about trimming the kernel for a similar box. I've already done most of > what that recommends. > > In sum, don't use the c3 specification in /etc/make.conf even though the > example would suggested otherwise. > > Thanks all for your help > > -j Indeed. After reading a mock up of the processor is appears that it's an Intel 686 clone. See: (it's a bit old for an article, so I hope you don't mind the dust :)..). -Garrett