Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Dec 2020 23:55:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 251590] textproc/ripgrep: fails to build with CPUTYPE=haswell (avx)
Message-ID:  <bug-251590-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251590

            Bug ID: 251590
           Summary: textproc/ripgrep: fails to build with CPUTYPE=3Dhaswell
                    (avx)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: greg@unrelenting.technology
                CC: petteri.valkonen@iki.fi
             Flags: maintainer-feedback?(petteri.valkonen@iki.fi)
                CC: petteri.valkonen@iki.fi

With CPUTYPE=3Dhaswell and SIMD=3Don, the build fails:

error[E0432]: unresolved import `crate::arch::x86_64::_mm_shuffle_pi8`
   -->
/wrkdirs/usr/ports/textproc/ripgrep/work/ripgrep-12.1.1/cargo-crates/packed=
_simd-0.3.3/src/codegen/shuffle1_dyn.rs:40:29
    |
40  |                         use crate::arch::x86_64::_mm_shuffle_pi8;
    |                             ^^^^^^^^^^^^^^^^^^^^^---------------
    |                             |                    |
    |                             |                    help: a similar name
exists in the module: `_mm_shuffle_epi8`
    |                             no `_mm_shuffle_pi8` in `arch::x86_64`
...
297 | impl_shuffle1_dyn!(u8x8);
    | ------------------------- in this macro invocation
    |
    =3D note: this error originates in a macro (in Nightly builds, run with=
 -Z
macro-backtrace for more info)

A workaround is to do

_CPUCFLAGS:=3D

in the port.. (maybe we need some less hacky way to do the same thing in the
framework, like a CPUTYPE_UNSAFE=3Dyes or something)

--=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-251590-7788>