From owner-freebsd-ports-bugs@freebsd.org Tue Oct 31 15:04:14 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 123E8E5C3EB for ; Tue, 31 Oct 2017 15:04:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED5657D705 for ; Tue, 31 Oct 2017 15:04:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9VF4CC8036922 for ; Tue, 31 Oct 2017 15:04:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223342] lang/rust: unbreak cfg_target_feature for PORT_LLVM=on Date: Tue, 31 Oct 2017 15:03:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rust@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc blocked flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2017 15:04:14 -0000 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.=