[Bug 223300] www/firefox (56+) fails to build using lang/rust (1.21+) built with PORT_LLVM=on: error[E0432]: unresolved import `x86::sse2`

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 15 14:06:06 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223300

Mikhail T. <mi at ALDAN.algebra.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mi at ALDAN.algebra.com

--- Comment #36 from Mikhail T. <mi at ALDAN.algebra.com> ---
(In reply to commit-hook from comment #32)

The commit changes gecko.mk to derive the target-cpu setting given to rustc
from the CFLAGS. This is a very elegant solution and would've been perfect, if
not for the common case of "-march=native".

Because, sadly, "native" to rustc currently means "generic", instead of "check
the features of the currently-used processor and enable them all". And
"generic" means "no SSE2".

And, because it means generic, the firefox build fails with that same error
about SSE2, when CPUTYPE is set to "native".

I'm not sure, how to fix it correctly, but a warning advising user to set
CPUTYPE explicitly may be helpful.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gecko mailing list