[Bug 223342] lang/rust: unbreak cfg_target_feature for PORT_LLVM=on

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 31 15:04:14 UTC 2017


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

            Bug ID: 223342
           Summary: lang/rust: unbreak cfg_target_feature for PORT_LLVM=on
           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 at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
                CC: brooks at FreeBSD.org, rust at FreeBSD.org
            Blocks: 223300, 223314
 Attachment #187613 maintainer-approval?(rust at FreeBSD.org),
             Flags: maintainer-approval?(brooks at FreeBSD.org)
             Flags: maintainer-feedback?(rust at FreeBSD.org)
          Assignee: rust at FreeBSD.org
                CC: brooks at FreeBSD.org, rust at FreeBSD.org

Created attachment 187613
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187613&action=edit
v0

Rust 1.21+ regressed cfg_target_feature[1] by taking advantage of API specific
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 and
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=223300
[Bug 223300] www/firefox (56+) fails to build using lang/rust (1.21+) built
with PORT_LLVM=on: error[E0432]: unresolved import `x86::sse2`
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223314
[Bug 223314] textproc/ripgrep: expose SIMD options
-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list