servo / servo

Servo, the embeddable, independent, memory-safe, modular, parallel web rendering engine

Home Page:https://servo.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I cannot build Servo on Debian 12 on AMD Ryzen 3 5425U

veer66 opened this issue · comments

Describe the bug:
I got follow error messages:

  cargo:rustc-link-lib=stdc++

  --- stderr
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2228:19: error: use of undeclared identifier '__builtin_ia32_paddsb128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2250:19: error: use of undeclared identifier '__builtin_ia32_paddsw128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2271:19: error: use of undeclared identifier '__builtin_ia32_paddusb128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2292:19: error: use of undeclared identifier '__builtin_ia32_paddusw128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2670:19: error: use of undeclared identifier '__builtin_ia32_psubsb128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2691:19: error: use of undeclared identifier '__builtin_ia32_psubsw128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2711:19: error: use of undeclared identifier '__builtin_ia32_psubusb128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2731:19: error: use of undeclared identifier '__builtin_ia32_psubusw128'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:95:19: error: use of undeclared identifier '__builtin_ia32_paddsb256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:101:19: error: use of undeclared identifier '__builtin_ia32_paddsw256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:107:19: error: use of undeclared identifier '__builtin_ia32_paddusb256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:113:19: error: use of undeclared identifier '__builtin_ia32_paddusw256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:631:19: error: use of undeclared identifier '__builtin_ia32_psubsb256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:637:19: error: use of undeclared identifier '__builtin_ia32_psubsw256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:643:19: error: use of undeclared identifier '__builtin_ia32_psubusb256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:649:19: error: use of undeclared identifier '__builtin_ia32_psubusw256'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx512fintrin.h:9319:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx512fintrin.h:9323:10: error: use of undeclared identifier '__builtin_ia32_reduce_mul_q512'
  /usr/lib/llvm-14/lib/clang/14.0.6/include/avx512fintrin.h:9337:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  thread 'main' panicked at /home/vee/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mozangle-0.5.1/build.rs:358:10:
  Should generate shader bindings: ClangDiagnostic("/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2228:19: error: use of undeclared identifier '__builtin_ia32_paddsb128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2250:19: error: use of undeclared identifier '__builtin_ia32_paddsw128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2271:19: error: use of undeclared identifier '__builtin_ia32_paddusb128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2292:19: error: use of undeclared identifier '__builtin_ia32_paddusw128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2670:19: error: use of undeclared identifier '__builtin_ia32_psubsb128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2691:19: error: use of undeclared identifier '__builtin_ia32_psubsw128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2711:19: error: use of undeclared identifier '__builtin_ia32_psubusb128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2731:19: error: use of undeclared identifier '__builtin_ia32_psubusw128'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:95:19: error: use of undeclared identifier '__builtin_ia32_paddsb256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:101:19: error: use of undeclared identifier '__builtin_ia32_paddsw256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:107:19: error: use of undeclared identifier '__builtin_ia32_paddusb256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:113:19: error: use of undeclared identifier '__builtin_ia32_paddusw256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:631:19: error: use of undeclared identifier '__builtin_ia32_psubsb256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:637:19: error: use of undeclared identifier '__builtin_ia32_psubsw256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:643:19: error: use of undeclared identifier '__builtin_ia32_psubusb256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx2intrin.h:649:19: error: use of undeclared identifier '__builtin_ia32_psubusw256'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx512fintrin.h:9319:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx512fintrin.h:9323:10: error: use of undeclared identifier '__builtin_ia32_reduce_mul_q512'\n/usr/lib/llvm-14/lib/clang/14.0.6/include/avx512fintrin.h:9337:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\n")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
      Timing report saved to /home/vee/Develop/free/servo/target/cargo-timings/cargo-timing-20240404T030638Z.html
Failed in 0:06:11

To Reproduce:

  1. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. sudo apt install python3-pip python3-venv
  3. ./mach bootstrap
  4. ./mach build --dev

Platform:

  • Debian 12
  • AMD Ryzen 3 5425U

This looks like servo/mozangle#76. Do you have multiple versions of clang installed?

This looks like servo/mozangle#76. Do you have multiple versions of clang installed?

After removing all clang packages, and reruning mach bootstrap, now it works. Thank you.