servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.54k stars 198 forks source link

Build fails on x32 #511

Open alexanderkjall opened 2 years ago

alexanderkjall commented 2 years ago

Fails with these errors:

error[E0432]: unresolved import `std::arch::x86`
  --> src/x86/mod.rs:17:16
   |
17 | use std::arch::x86::{__m128, __m128i};
   |                ^^^ could not find `x86` in `arch`

error[E0432]: unresolved import `std::arch::x86`
  --> src/x86/mod.rs:19:5
   |
19 | use std::arch::x86;
   |     ^^^^^^^^^^^^^^ no `x86` in `arch`

error[E0432]: unresolved import `std::arch::x86`
  --> src/x86/swizzle_f32x4.rs:14:5
   |
14 | use std::arch::x86;
   |     ^^^^^^^^^^^^^^ no `x86` in `arch`

error[E0432]: unresolved import `std::arch::x86`
  --> src/x86/swizzle_i32x4.rs:14:5
   |
14 | use std::arch::x86;
   |     ^^^^^^^^^^^^^^ no `x86` in `arch`

Complete log here: https://buildd.debian.org/status/fetch.php?pkg=rust-pathfinder-simd&arch=x32&ver=0.5.1-1&stamp=1647460848&raw=0

s3bk commented 2 years ago

try enabling the pf-no-simd feature in pathfinder-simd.

alexanderkjall commented 2 years ago

Sorry, this was a horrible bug report, I shouldn't write those while tired.

The background for the bug report is that the Debian build system for rust builds all the different features, and also no features, and that makes the build of this crate fail for x32 in Debian.

Your suggestion about pf-no-simd is an excellent place to start digging into this problem, I will try to write a patch for it.