plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.91k stars 280 forks source link

[BUG] Mac m1 invalid monomorphization of `simd_shuffle` intrinsic: simd_shuffle index must be a SIMD vector of `u32`, got `[u32; 4]` #650

Closed Liberxue closed 1 month ago

Liberxue commented 1 month ago

Describe the bug

error[E0511]: invalid monomorphization of `simd_shuffle` intrinsic: simd_shuffle index must be a SIMD vector of `u32`, got `[u32; 2]`
   --> /Users/liber/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pathfinder_simd-0.5.4/src/arm/mod.rs:348:24
    |
348 |         unsafe { F32x2(simd_shuffle2!(self.0, self.0, [2, 3])) }
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `simd_shuffle2` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0511`.

To Reproduce Some minimal reproduce code is highly recommended

Version Information

rustc --version
rustc 1.83.0-nightly (363ae4188 2024-09-24)

plotters = "0.3.7"

freetype 2.13.3 

fontconfig 2.15.0 

pathfinder BUG

andrewgazelka commented 1 month ago

how was this completed @Liberxue ?

Liberxue commented 1 month ago

how was this completed @Liberxue ?

hey @andrewgazelka this's https://github.com/servo/pathfinder/issues/571 pathfinder_geometry issue , I have solved this problem.