From owner-freebsd-stable@FreeBSD.ORG Wed May 30 14:43:50 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 97F061065679 for ; Wed, 30 May 2012 14:43:50 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 168BE8FC15 for ; Wed, 30 May 2012 14:43:49 +0000 (UTC) Received: by lbon10 with SMTP id n10so56563lbo.13 for ; Wed, 30 May 2012 07:43:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=zVSb2Yb1j1/x+Z7ytohFvkC/SEBKFnCOCUGklwrtq5s=; b=UQAM3lKZ2z1T1gCJVhDNbhzGCSXUCVN/eQPuWZukmpoBT+CTmnuYf9Yt1i8aiAogZg taUO/GXRpZkO+i5nC6tA3VWISFlngoXmHVLG4GpKE4z6W2xlh/d6COHp3dEuyp20uirP n4LxKwCCwTpSnrmnX9ped6HcipiogJ/7kjVD7sorcQkfW1uWT8BL7BsrkBFiK7jjSpfB dV0TQ+8hsqQFWyfAyu13NlLu4L+9/zjUVyCtRSXDMX2PhFQclcYdgS/wrfD8Kyi41gmR no3V5zJi8yTWBdzvsmesthgQxCW+4O7besD8ukryA3KbFgJalPPO9pbk5F5sMivKPy7O EWVQ== MIME-Version: 1.0 Received: by 10.152.48.6 with SMTP id h6mr15947281lan.30.1338389028910; Wed, 30 May 2012 07:43:48 -0700 (PDT) Received: by 10.112.95.18 with HTTP; Wed, 30 May 2012 07:43:48 -0700 (PDT) In-Reply-To: References: <4FC62DDD.6060503@protected-networks.net> Date: Wed, 30 May 2012 16:43:48 +0200 Message-ID: From: Olivier Smedts To: Zhihao Yuan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQl/Pwx25gc1/YtvwVC3u6y3Dfs/pe1l2RXggXxwUl1Kb0tLwGWe7sby2664lRq1fjn08j9z 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:43:50 -0000 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/pmmintri= n.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 > =A0 =A0 =A0instruction set not enabled" > #error "SSE3 instruction set not enabled" > =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. --=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."