Setting CPUTYPE=native, fails to set MACHINE_CPU correctly.
Maxim Khitrov
mkhitrov at gmail.com
Tue Aug 28 07:34:14 PDT 2007
On 8/28/07, Scot Hetzel <swhetzel at gmail.com> wrote:
> Gcc 4.2 has a new cpu_type (native) for x86 and amd64 systems. This
> cpu_type is to allow gcc to automatically detect the processor type
> that gcc is running on.
>
> The problem is that setting CPUTYPE?=native in either src.conf or
> make.conf will cause MACHINE_CPU to be set to the wrong value for the
> native cpu.
There is actually another problem with using CPUTYPE=native, as I
found out yesterday. Certain ports may fail to build with it. For
example, I was trying to build openoffice.org-2 and it was failing at
gcc-ooo with the message "cannot compute suffix of object files."
Since it was using the older compiler version, -march=native caused it
to fail. There should probably be an additional note somewhere telling
people to be careful with this setting.
- Max
More information about the freebsd-current
mailing list