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: >> 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinvJDCmUe0NrJe4=qk5kL1s4bCF89mX2cJeSY-=>
