servo icon indicating copy to clipboard operation
servo copied to clipboard

Build failed on ubuntu with Nix: failed to run custom build command for `style v0.0.1`

Open rice7th opened this issue 3 years ago • 3 comments

As the title says, style v0.0.1 fails to build.

This is the full error message:

error: failed to run custom build command for `style v0.0.1 (/home/USER/git/servo/components/style)`

Caused by:
  process didn't exit successfully: `/home/USER/git/servo/target/release/build/style-c783f3b1586c934d/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '

  The style crate requires enabling one of its 'servo' or 'gecko' feature flags and, in the 'servo' case, one of 'servo-layout-2013' or 'servo-layout-2020'.

  ', components/style/build.rs:80:14
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

rice7th avatar Nov 01 '22 11:11 rice7th

Huh. How are you building it?

jdm avatar Nov 03 '22 01:11 jdm

./mach build --release

Same problem without release flag

rice7th avatar Nov 03 '22 12:11 rice7th

@jdm the problem persists even here on MacOS without nix!

rice7th avatar Nov 14 '22 16:11 rice7th