RW fbsd06 at
Fri Mar 16 16:33:20 UTC 2007

On Thu, 15 Mar 2007 14:39:00 -0500
Jeffrey Goldberg <jeffrey at> 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
> 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"
> 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/ 

.  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. 

More information about the freebsd-questions mailing list