From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 21 13:07:16 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9DEF10656A8; Sat, 21 Aug 2010 13:07:16 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 723508FC14; Sat, 21 Aug 2010 13:07:16 +0000 (UTC) Received: by iwn36 with SMTP id 36so4549468iwn.13 for ; Sat, 21 Aug 2010 06:07:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.161.16 with SMTP id p16mr3474273ibx.61.1282394516047; Sat, 21 Aug 2010 05:41:56 -0700 (PDT) Received: by 10.231.176.140 with HTTP; Sat, 21 Aug 2010 05:41:55 -0700 (PDT) In-Reply-To: References: <1008211213030.2000@smasher> Date: Sat, 21 Aug 2010 14:41:56 +0200 Message-ID: From: Olivier Smedts To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Atom Smasher Subject: Re: intel i5 - core? or core2? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2010 13:07:16 -0000 2010/8/21 Garrett Cooper : > On Fri, Aug 20, 2010 at 5:19 PM, Atom Smasher 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."