From owner-freebsd-stable@FreeBSD.ORG Wed May 30 14:29:32 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 280511065670 for ; Wed, 30 May 2012 14:29:32 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D5AF08FC08 for ; Wed, 30 May 2012 14:29:31 +0000 (UTC) Received: by yenl8 with SMTP id l8so3775562yen.13 for ; Wed, 30 May 2012 07:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=OsItFSXV62XvqL4XKsHc2qcCresGVuxMqoJHx3+SseM=; b=l8VyIsAokEFF9BbWbxGFPFZjuMOeCrsuauD3NIoONynNnFnCgHJOmY5Oxcz3MqaKpB vs7ldjQ/6rIt+eGWqdae7RvntnErRLml8Y7SaNL9hJva1SE4a9oxaibzqUVYZpaEjBuc vlYmulRMJSpuZyZTR0uDpnXhdfgio6TP5MgmfmaTtNn4djQOnA0W/1VdUDfH0051mugL Dai4LqV6+E1pjY1qOOyUG17Nhq9ZqaY8yTIoNvs3CUwCVCOI6q17H0qqq6NUh1MR6ra0 SpWXHx32zKRij8JBPVHxi9Y/OxrmS7rbA91Wc0f/RNrs3St+xGmxKH2wAyHXYgNFlEef Fpqg== MIME-Version: 1.0 Received: by 10.50.158.129 with SMTP id wu1mr10877365igb.33.1338388170627; Wed, 30 May 2012 07:29:30 -0700 (PDT) Received: by 10.231.188.230 with HTTP; Wed, 30 May 2012 07:29:30 -0700 (PDT) In-Reply-To: <4FC62DDD.6060503@protected-networks.net> References: <4FC62DDD.6060503@protected-networks.net> Date: Wed, 30 May 2012 09:29:30 -0500 Message-ID: From: Zhihao Yuan To: Michael Butler Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD-STABLE Mailing List Subject: Re: Different features on different CPU cores?! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2012 14:29:32 -0000 On Wed, May 30, 2012 at 9:25 AM, Michael Butler wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 05/30/12 10:15, Zhihao Yuan wrote: >> Hi, >> >> Today I want to compile the latest www/chromium, and I found that I >> encountered some SSSE3 problems, with either gcc46/clang, and I found >> that this new version requires (S)SSE3 support. >> >> My CPU is a Intel i5 M 520, which suppose to support these. But when >> I'm checking the CPU features, I see: >> >> CPU: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz (2394.02-MHz K8-class CPU) >> Origin =3D "GenuineIntel" Id =3D 0x20652 Family =3D 6 Model =3D 25 Stepp= ing =3D 2 >> Features=3D0xbfebfbff> OV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> >> Features2=3D0x298e3ff> ,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AESNI> >> >> What? Different features on different cores? Is it my CPU's problem or >> FreeBSD's problem? >> > You are misreading this .. they ran out of bits in one word to describe > the available features so they added another word 'features2' to > describe the rest. These capabilities apply to both cores, OK... I see what happened: ~> cc a.c ~> gcc46 a.c In file included from a.c:1:0: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd8.3/4.6.3/include/pmmintrin.= h:32:3: error: #error "SSE3 instruction set not enabled" ~> clang a.c In file included from a.c:1: /usr/local/bin/../lib/clang/3.1/include/pmmintrin.h:28:2: error: "SSE3 instruction set not enabled" #error "SSE3 instruction set not enabled" ^ 1 error generated. ~> gcc46 -msse3 a.c ~> clang -msse3 a.c ~> So the chromium port does not define -msse3/-mssse3 explicitly, so it does not work with gcc46/clang. > > =C2=A0 =C2=A0imb > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (FreeBSD) > > iEYEARECAAYFAk/GLdwACgkQQv9rrgRC1JI9vgCdHoHEdEV8V+SawdSI+iD8TFc5 > XyoAniiyJ6kkZZ/AjFhgTgXLrvJvdB/k > =3Dy05w > -----END PGP SIGNATURE----- > --=20 Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/