Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2010 14:41:56 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        Garrett Cooper <gcooper@freebsd.org>
Cc:        freebsd-hackers@freebsd.org, Atom Smasher <atom@smasher.org>
Subject:   Re: intel i5 - core? or core2?
Message-ID:  <AANLkTinvJDCmUe0NrJe4=qk5kL1s4bCF89mX2cJeSY-=@mail.gmail.com>
In-Reply-To: <AANLkTikz8eO9=u2=yQJLo9ujjoQHAKFDG6xYmYUj_d=w@mail.gmail.com>
References:  <1008211213030.2000@smasher> <AANLkTikz8eO9=u2=yQJLo9ujjoQHAKFDG6xYmYUj_d=w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/8/21 Garrett Cooper <gcooper@freebsd.org>:
> On Fri, Aug 20, 2010 at 5:19 PM, Atom Smasher <atom@smasher.org> wrote:
>> hardware:
>> =A0MACH: =A0x86_64 (LENOVO, 4313CTO, ThinkPad T510)
>> =A0CPU: =A0 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=3Dcore" but as soon as i st=
art
>> building things, lang/perl5.10 fails, complaining about "core" not being
>> right.
>>
>> when i change the setting to "CPUTYPE=3Dcore2" it builds fine.
>>
>> is something wrong? i thought the i5 was "core", not "core2"...?
>
> =A0 =A0I 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=3Dcore2
CFLAGS=3D-O2 -pipe -march=3Dnative
NO_CPU_CFLAGS=3Dyes
COPTFLAGS=3D-O2 -pipe -march=3Dnative
NO_CPU_COPTFLAGS=3Dyes

I think you can use the same for your i5.

> Thanks,
> -Garrett
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"
>



--=20
Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 ASCII ribbon campaign ( )
e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X
www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \

=A0 "Il y a seulement 10 sortes de gens dans le monde :
=A0 ceux qui comprennent le binaire,
=A0 et ceux qui ne le comprennent pas."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinvJDCmUe0NrJe4=qk5kL1s4bCF89mX2cJeSY-=>