Date: Wed, 30 May 2012 16:43:48 +0200 From: Olivier Smedts <olivier@gid0.org> To: Zhihao Yuan <lichray@gmail.com> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: Different features on different CPU cores?! Message-ID: <CABzXLYPNwQoHnjBTkWQi%2Bqz0kce9-5fbV8uhhzRpd_Xc6acf5w@mail.gmail.com> In-Reply-To: <CAGsORuCdZWmDhYHdiDirpSBzXtv7%2BW2rVcfiXFBFzHgWxY1S7g@mail.gmail.com> References: <CAGsORuBGpwuuozvob8TqnfPsAxaZYGpy4FPeGX2c9-K1RF3Qaw@mail.gmail.com> <4FC62DDD.6060503@protected-networks.net> <CAGsORuCdZWmDhYHdiDirpSBzXtv7%2BW2rVcfiXFBFzHgWxY1S7g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYPNwQoHnjBTkWQi%2Bqz0kce9-5fbV8uhhzRpd_Xc6acf5w>