Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Docker build failed [stable] #5596

Closed
jcalfee opened this issue May 11, 2017 · 3 comments
Closed

Docker build failed [stable] #5596

jcalfee opened this issue May 11, 2017 · 3 comments
Assignees
Labels
F2-bug 🐞 The client fails to follow expected behavior. M1-ci 🙉 Continuous integration.

Comments

@jcalfee
Copy link

jcalfee commented May 11, 2017

https://github.com/paritytech/parity/blob/master/docker/ubuntu-stable/Dockerfile

     Running `rustc --crate-name isatty /root/.cargo/registry/src/github.com-1ecc6299db9ec823/isatty-0.1.1/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C panic=abort -C metadata=ba3e8feadc88741e -C extra-filename=-ba3e8feadc88741e --out-dir /build/parity/target/release/deps -L dependency=/build/parity/target/release/deps --extern libc=/build/parity/target/release/deps/liblibc-fd7ea73ab32c14a3.rlib --cap-lints allow`
error[E0591]: `extern "C" fn(*mut std::boxed::Box<std::ops::FnMut() -> isize>) -> i32 {sched::clone::callback}` is zero-sized and can't be transmuted to `*const extern "C" fn(*const std::boxed::Box<std::ops::FnMut() -> isize>) -> i32`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.5.0/src/sched.rs:192:20
    |
192 |         ffi::clone(mem::transmute(callback), ptr as *mut c_void, flags.bits(), &mut cb)
    |                    ^^^^^^^^^^^^^^
    |
note: cast with `as` to a pointer instead
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.5.0/src/sched.rs:192:20
    |
192 |         ffi::clone(mem::transmute(callback), ptr as *mut c_void, flags.bits(), &mut cb)
    |                    ^^^^^^^^^^^^^^

   Compiling openssl-sys v0.9.3
     Running `rustc --crate-name build_script_build /root/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.3/build.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=881971d58354a91c -C extra-filename=-881971d58354a91c --out-dir /build/parity/target/release/build/openssl-sys-881971d58354a91c -L dependency=/build/parity/target/release/deps --extern pkg_config=/build/parity/target/release/deps/libpkg_config-777f93300c88e04a.rlib --cap-lints allow`
error: aborting due to previous error

   Compiling rand v0.3.14
     Running `rustc --crate-name rand /root/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.14/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=29f6766b6067adde -C extra-filename=-29f6766b6067adde --out-dir /build/parity/target/release/deps -L dependency=/build/parity/target/release/deps --extern libc=/build/parity/target/release/deps/liblibc-fd7ea73ab32c14a3.rlib --cap-lints allow`
error: Could not compile `nix`.

Caused by:
  process didn't exit successfully: `rustc --crate-name nix /root/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.5.0/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C panic=abort -C metadata=1c6e80d25c73deeb -C extra-filename=-1c6e80d25c73deeb --out-dir /build/parity/target/release/deps -L dependency=/build/parity/target/release/deps --extern libc=/build/parity/target/release/deps/liblibc-fd7ea73ab32c14a3.rlib --extern bitflags=/build/parity/target/release/deps/libbitflags-fad7648fbe8bcff4.rlib --cap-lints allow` (exit code: 101)
Build failed, waiting for other jobs to finish...
error: build failed
The command '/bin/sh -c git clone https://github.com/paritytech/parity &&         cd parity &&         git checkout stable &&         git pull &&         cargo build --release --verbose &&         ls /build/parity/target/release/parity &&         strip /build/parity/target/release/parity' returned a non-zero code: 101
@General-Beck General-Beck added the M1-ci 🙉 Continuous integration. label May 11, 2017
@General-Beck General-Beck self-assigned this May 11, 2017
@General-Beck General-Beck added the Z0-unconfirmed 🤔 Issue might be valid, but it’s not yet known. label May 11, 2017
@rphmeier
Copy link
Contributor

Seems like one of our dependencies is using a really old version of nix which fixed this issue over a year ago: nix-rust/nix#353

@holiman
Copy link
Contributor

holiman commented May 12, 2017

I got it also

   Compiling syntex_pos v0.58.0
error[E0591]: `extern "C" fn(*mut std::boxed::Box<std::ops::FnMut() -> isize>) -> i32 {sched::clone::callback}` is zero-sized and can't be transmuted to `*const extern "C" fn(*const std::boxed::Box<std::ops::FnMut() -> isize>) -> i32`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.5.0/src/sched.rs:192:20
    |
192 |         ffi::clone(mem::transmute(callback), ptr as *mut c_void, flags.bits(), &mut cb)
    |                    ^^^^^^^^^^^^^^
    |
note: cast with `as` to a pointer instead
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.5.0/src/sched.rs:192:20
    |
192 |         ffi::clone(mem::transmute(callback), ptr as *mut c_void, flags.bits(), &mut cb)
    |                    ^^^^^^^^^^^^^^

error: aborting due to previous error

error: Could not compile `nix`.
Build failed, waiting for other jobs to finish...
error: build failed

Only on the beta branch, not the master

@General-Beck
Copy link
Contributor

@rphmeier rust 1.17? 1.16 works

@5chdn 5chdn added the F2-bug 🐞 The client fails to follow expected behavior. label May 15, 2017
@tomusdrw tomusdrw self-assigned this May 15, 2017
@tomusdrw tomusdrw removed the Z0-unconfirmed 🤔 Issue might be valid, but it’s not yet known. label May 15, 2017
@tomusdrw tomusdrw mentioned this issue May 15, 2017
@5chdn 5chdn closed this as completed Jun 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F2-bug 🐞 The client fails to follow expected behavior. M1-ci 🙉 Continuous integration.
Projects
None yet
Development

No branches or pull requests

6 participants