Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: failed to load source for a dependency on 'osmesa-src' #5101

Closed
csmoe opened this issue Mar 1, 2018 · 2 comments
Closed

error: failed to load source for a dependency on 'osmesa-src' #5101

csmoe opened this issue Mar 1, 2018 · 2 comments

Comments

@csmoe
Copy link
Member

csmoe commented Mar 1, 2018

issue description:

When I tried to compile servo, it failed on update osmesa-src. Then created a new testing crate with servo/osmesa-src dependencies, cargo complained the same error.

Cargo.toml

[package]

name = "servo"
version = "0.0.1"
authors = ["The Servo Project Developers"]
license = "MPL-2.0"
build = "build.rs"
publish = false

[[bin]]
name = "servo"
path = "main.rs"
test = false
bench = false

[features]
default = ["unstable", "default-except-unstable"]
default-except-unstable = ["webdriver", "max_log_level"]
max_log_level = ["log/release_max_level_info"]
webdriver = ["libservo/webdriver"]
energy-profiling = ["libservo/energy-profiling"]
debugmozjs = ["libservo/debugmozjs"]
googlevr = ["libservo/googlevr"]
oculusvr = ["libservo/oculusvr"]
unstable = ["libservo/unstable"]

[dependencies]
backtrace = "0.3"
bitflags = "1.0"
compositing = {path = "../../components/compositing"}
euclid = "0.16"
gleam = "0.4"
libservo = {path = "../../components/servo"}
log = "0.3.5"
msg = {path = "../../components/msg"}
net_traits = {path = "../../components/net_traits"}
script_traits = {path = "../../components/script_traits"}
servo-glutin = "0.14"
servo_geometry = {path = "../../components/geometry"}
servo_config = {path = "../../components/config"}
servo_url = {path = "../../components/url"}
style_traits = {path = "../../components/style_traits"}
webrender_api = {git = "https:/servo/webrender", features = ["ipc"]}

[target.'cfg(not(target_os = "android"))'.dependencies]
sig = "0.1"

[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
osmesa-sys = "0.1.2"

[target.'cfg(target_os = "linux")'.dependencies]
x11 = "2.0.0"

[target.'cfg(target_os = "android")'.dependencies]
android_injected_glue = "0.2"
servo-egl = "0.2"

[target.'cfg(target_os = "windows")'.dependencies]
winapi = "0.2"
user32-sys = "0.2"
gdi32-sys = "0.2"

[target.'cfg(target_os = "macos")'.dependencies]
osmesa-src = {git = "https:/servo/osmesa-src"}

[target.x86_64-unknown-linux-gnu.dependencies]
osmesa-src = {git = "https:/servo/osmesa-src"}

Cargo.lock

...
[[package]]
name = "osmesa-src"
version = "17.3.1-devel"
source = "git+https:/servo/osmesa-src#6d23daede16f7edf7c66bdcce73c7583d0853733"

[[package]]
name = "osmesa-sys"
version = "0.1.2"
source = "registry+https:/rust-lang/crates.io-index"
dependencies = [
 "shared_library 0.1.5 (registry+https:/rust-lang/crates.io-index)",
]
...

Error Message:

error: failed to load source for a dependency on `osmesa-src`                   

Caused by:
  Unable to update https:/servo/osmesa-src#6d23daed

Caused by:
  error inflating zlib stream; class=Zlib (5)

cargo vendor

error: failed to sync

Caused by:
  failed to load pkg lockfile

Caused by:
  failed to load source for a dependency on `osmesa-src`

Caused by:
  Unable to update https:/servo/osmesa-src

Caused by:
  error inflating zlib stream; class=Zlib (5)

Steps to reproduce:

git clone https:/servo/servo.git
cd servo
./mach build -d

Technical details

OS: Linux 4.14.21-1-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux
rustc: rustc 1.25.0-nightly (15a1e2844 2018-01-20)
cargo: cargo 0.26.0-nightly (6a8eb71f6 2018-01-13)
@alexcrichton
Copy link
Member

Thanks for the report! The reproduction steps, however, don't work for me. Do you think you'd be able to make a smaller reproduction? Or maybe this is a corrupt directory? Does removing the git caches of cargo fix the issue?

@csmoe
Copy link
Member Author

csmoe commented Mar 2, 2018

Thank you, Removing the git caches of cargo fixes this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants