Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2012 10:05:49 -0500
From:      Zhihao Yuan <lichray@gmail.com>
To:        Olivier Smedts <olivier@gid0.org>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Different features on different CPU cores?!
Message-ID:  <CAGsORuBMOy3V5K=H=kM6ATBdK9sFgO7neLiBKsZy1%2BoLf5wOzQ@mail.gmail.com>
In-Reply-To: <CABzXLYPNwQoHnjBTkWQi%2Bqz0kce9-5fbV8uhhzRpd_Xc6acf5w@mail.gmail.com>
References:  <CAGsORuBGpwuuozvob8TqnfPsAxaZYGpy4FPeGX2c9-K1RF3Qaw@mail.gmail.com> <4FC62DDD.6060503@protected-networks.net> <CAGsORuCdZWmDhYHdiDirpSBzXtv7%2BW2rVcfiXFBFzHgWxY1S7g@mail.gmail.com> <CABzXLYPNwQoHnjBTkWQi%2Bqz0kce9-5fbV8uhhzRpd_Xc6acf5w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 30, 2012 at 9:43 AM, Olivier Smedts <olivier@gid0.org> wrote:
> 2012/5/30 Zhihao Yuan <lichray@gmail.com>:
>> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGsORuBMOy3V5K=H=kM6ATBdK9sFgO7neLiBKsZy1%2BoLf5wOzQ>