Date: Tue, 31 Oct 2017 15:03:57 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223342] lang/rust: unbreak cfg_target_feature for PORT_LLVM=on Message-ID: <bug-223342-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223342 Bug ID: 223342 Summary: lang/rust: unbreak cfg_target_feature for PORT_LLVM=3Don Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch, regression Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: rust@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: brooks@FreeBSD.org, rust@FreeBSD.org Blocks: 223300, 223314 Attachment #187613 maintainer-approval?(rust@FreeBSD.org), Flags: maintainer-approval?(brooks@FreeBSD.org) Flags: maintainer-feedback?(rust@FreeBSD.org) Assignee: rust@FreeBSD.org CC: brooks@FreeBSD.org, rust@FreeBSD.org Created attachment 187613 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187613&action= =3Dedit v0 Rust 1.21+ regressed cfg_target_feature[1] by taking advantage of API speci= fic to bundled LLVM. We can either apply a simple patch to devel/llvm* ports or drop LLVM_PORT option. So far this only affects simd crate in www/firefox a= nd textproc/ripgrep. [1] https://github.com/rust-lang/rust/issues/29717 Before: $ rustc --print target-cpus Target CPU help is not supported by this LLVM version. $ rustc --print target-features Target features help is not supported by this LLVM version. After: $ rustc --print target-cpus Available CPUs for this target: amdfam10 - Select the amdfam10 processor. athlon - Select the athlon processor. athlon-4 - Select the athlon-4 processor. athlon-fx - Select the athlon-fx processor. [...] $ rustc --print target-features Available features for this target: 16bit-mode - 16-bit mode (i8086). 32bit-mode - 32-bit mode (80386). 3dnow - Enable 3DNow! instructions. 3dnowa - Enable 3DNow! Athlon instructions. 64bit - Support 64-bit instructions. 64bit-mode - 64-bit mode (x86_64). [...] Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223300 [Bug 223300] www/firefox (56+) fails to build using lang/rust (1.21+) built with PORT_LLVM=3Don: error[E0432]: unresolved import `x86::sse2` https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223314 [Bug 223314] textproc/ripgrep: expose SIMD options --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223342-13>