From owner-freebsd-stable@FreeBSD.ORG Wed May 30 15:05:52 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BC6A106566C for ; Wed, 30 May 2012 15:05:52 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 419EA8FC0C for ; Wed, 30 May 2012 15:05:52 +0000 (UTC) Received: by ggnm2 with SMTP id m2so4384827ggn.13 for ; Wed, 30 May 2012 08:05:50 -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=69PmUT+jOm4remi0Da4iBcDsjonhB0otPdQtNSxoox8=; b=LUTPLW2btQHSnfM0bWEU9i6KqCjvIJbHOLEpIxFfJdJ2GBnTETIm20FjsWwn/u7i1Q FN4Lktmh6pG4sTYs5MZXFbvnbaiWOql7QG+nQmXjuO052Ra8lrHtZ9IL3ZVeMZUISZ6d XHo8D0gQzwMh5A+hwtll1gZpkc+EBc0NIZgHlE0MqxuELuyqzk8X/Y3/J/wEUsabzz2m jIuj94pxvxpoS7zihjrTxdnvSmJy/du4MYrhYAt8zbisbfxZ9gnkg1M5VXhxgSNuWx/2 Scooby4qrYKQU6DxydkGbwwUTnK2hgPDlIOhDf7fYKqfNLZaH9EgA65c+1yS3th+kOCR XBaQ== MIME-Version: 1.0 Received: by 10.50.41.196 with SMTP id h4mr11038145igl.33.1338390349561; Wed, 30 May 2012 08:05:49 -0700 (PDT) Received: by 10.231.188.230 with HTTP; Wed, 30 May 2012 08:05:49 -0700 (PDT) In-Reply-To: References: <4FC62DDD.6060503@protected-networks.net> Date: Wed, 30 May 2012 10:05:49 -0500 Message-ID: From: Zhihao Yuan To: Olivier Smedts 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 15:05:52 -0000 On Wed, May 30, 2012 at 9:43 AM, Olivier Smedts wrote: > 2012/5/30 Zhihao Yuan : >> 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/pmmintr= in.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 >> =C2=A0 =C2=A0 =C2=A0instruction set not enabled" >> #error "SSE3 instruction set not enabled" >> =C2=A0^ >> 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. > > Isn't it /usr/share/mk/bsd.cpu.mk's job ? > # make -V CPUTYPE > core2 > # make -V MACHINE_CPU > ssse3 sse3 amd64 sse2 sse mmx > > I don't know if that's for the base system solely or if it works for > ports too, but at least on this computer I can compile chromium > 19.0.1084.52. Maybe you use CPUTYPE?=3Dnative, which is unsupported by > bsd.cpu.mk. Err, I put nothing on CPUTYPE. Long time ago, this variable only affects base. Thanks. > > -- > Olivier Smedts=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 _ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ASCII ri= bbon campaign ( ) > e-mail: olivier@gid0.org=C2=A0 =C2=A0 =C2=A0 =C2=A0 - against HTML email = & vCards=C2=A0 X > www: http://www.gid0.org=C2=A0 =C2=A0 - against proprietary attachments /= \ > > =C2=A0 "Il y a seulement 10 sortes de gens dans le monde : > =C2=A0 ceux qui comprennent le binaire, > =C2=A0 et ceux qui ne le comprennent pas." --=20 Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/