Skip to content

Fails to compile cssparser 0.25.9 #1101

Closed
dtolnay/proc-macro2
#303
@jyn514

Description

@jyn514

This is cg_clif built from rust-lang/rust#78624 using codegen-backends = ["cranelift"], so I think 8063c37.

$ git clone https://github.com/servo/rust-cssparser && cd rust-cssparser
$ git checkout v0.25.9
$ cargo +stage1 build
   Compiling cssparser v0.25.9 (/home/joshua/rust-cssparser)
   Compiling cssparser-macros v0.3.6 (/home/joshua/rust-cssparser/macros)
warning: Argument of type `proc_macro::bridge::buffer::Slice<u8>` with pass mode `ByValPair(types::I64, types::I64)` is not yet supported for non-rust abi `"C"`. Calling this function may result in a crash.
   --> /home/joshua/rustc/library/proc_macro/src/bridge/buffer.rs:134:9
    |
134 |         extern "C" fn extend_from_slice<T: Copy>(b: Buffer<T>, xs: Slice<'_, T>) -> Buffer<T> {
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: 1 warning emitted

error: failed to run custom build command for `cssparser v0.25.9`

Caused by:
  process didn't exit successfully: `/home/joshua/.local/lib/cargo/target/debug/build/cssparser-a9d0987f2ba68887/build-script-build` (signal: 6, SIGABRT: process abort signal)
  --- stdout
  cargo:rustc-cfg=rustc_has_pr45225
  cargo:rustc-cfg=has_std__mem__MaybeUninit
  cargo:rerun-if-changed=/home/joshua/.local/lib/cargo/registry/src/github.tiyicn.workers.dev-1ecc6299db9ec823/cssparser-0.25.9/src/tokenizer.rs

  --- stderr
  fatal runtime error: failed to initiate panic, error 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions