Skip to content

Instantly share code, notes, and snippets.

@kleenpulse
Created March 13, 2024 15:59
Show Gist options
  • Save kleenpulse/874fad96a68edd1e9624dcf6d0355973 to your computer and use it in GitHub Desktop.
Save kleenpulse/874fad96a68edd1e9624dcf6d0355973 to your computer and use it in GitHub Desktop.
C:\Users\skyep\servo>mach build --dev
Updating crates.io index
Updating git repository `https://github.com/servo/media`
Updating git repository `https://github.com/servo/webxr`
Updating git repository `https://github.com/servo/stylo.git`
Updating git repository `https://github.com/servo/webrender`
Updating git repository `https://github.com/servo/fontsan`
Updating git repository `https://github.com/pcwalton/signpost.git`
Updating git repository `https://github.com/servo/mozjs`
error: failed to select a version for `mozjs_sys`.
... required by package `mozjs v0.14.1 (https://github.com/servo/mozjs#20f79347)`
... which satisfies git dependency `js` of package `script v0.0.1 (C:\Users\skyep\servo\components\script)`
... which satisfies path dependency `script` of package `script_tests v0.0.1 (C:\Users\skyep\servo\tests\unit\script)`
versions that meet the requirements `*` are: 0.115.7-0
the package `mozjs_sys` links to the native library `mozjs`, but it conflicts with a previous package which links to `mozjs` as well:
package `mozjs_sys v0.67.1`
... which satisfies dependency `mozjs_sys = "^0.67.1"` of package `servoshell v0.0.1 (C:\Users\skyep\servo\ports\servoshell)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='mozjs_sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
failed to select a version for `mozjs_sys` which could resolve this conflict
Failed in 0:00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment