On Wed, May 30, 2012 at 9:43 AM, Olivier Smedts <oliv...@gid0.org> wrote: > 2012/5/30 Zhihao Yuan <lich...@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/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. > > 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?=native, which is unsupported by > bsd.cpu.mk.
Err, I put nothing on CPUTYPE. Long time ago, this variable only affects base. Thanks. > > -- > Olivier Smedts _ > ASCII ribbon campaign ( ) > e-mail: oliv...@gid0.org - against HTML email & vCards X > www: http://www.gid0.org - against proprietary attachments / \ > > "Il y a seulement 10 sortes de gens dans le monde : > ceux qui comprennent le binaire, > et ceux qui ne le comprennent pas." -- Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/ _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"