intel i5 - core? or core2?
Olivier Smedts
olivier at gid0.org
Sat Aug 21 13:07:16 UTC 2010
2010/8/21 Garrett Cooper <gcooper at freebsd.org>:
> On Fri, Aug 20, 2010 at 5:19 PM, Atom Smasher <atom at smasher.org> wrote:
>> hardware:
>> MACH: x86_64 (LENOVO, 4313CTO, ThinkPad T510)
>> CPU: x86_64 (Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz)
>>
>> FreeBSD 8.1-RELEASE #0 (amd64)
>>
>> in "/etc/make.conf" i tried setting "CPUTYPE=core" but as soon as i start
>> building things, lang/perl5.10 fails, complaining about "core" not being
>> right.
>>
>> when i change the setting to "CPUTYPE=core2" it builds fine.
>>
>> is something wrong? i thought the i5 was "core", not "core2"...?
>
> I thought our base gcc didn't support core/core2 (IIRC gcc 4.4+
> supports core/core2). Maybe this is a documentation bug with
> .../share/examples/etc/make.conf ?
CPYTYPE is make.conf and -march in gcc are different things.
After a lot of reading (/usr/share/examples/etc/make.conf and man gcc)
and testing, here is what I use for my core2 :
CPUTYPE=core2
CFLAGS=-O2 -pipe -march=native
NO_CPU_CFLAGS=yes
COPTFLAGS=-O2 -pipe -march=native
NO_CPU_COPTFLAGS=yes
I think you can use the same for your i5.
> Thanks,
> -Garrett
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
--
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: olivier at gid0.org - against HTML email & vCards X
www: http://www.gid0.org - against proprietary attachments / \
"Il y a seulement 10 sortes de gens dans le monde :
ceux qui comprennent le binaire,
et ceux qui ne le comprennent pas."
More information about the freebsd-hackers
mailing list