fxbox / foxbox

The FoxBox daemon
Mozilla Public License 2.0
29 stars 29 forks source link

Fails to build on Debian 3.16.36-1+deb8u1 #583

Open dogcalas opened 7 years ago

dogcalas commented 7 years ago

I run $ RUST_BACKTRACE=1 cargo build

I get this

Compiling pagekite v0.1.0 (https://github.com/fabricedesre/pagekite-rs.git#0dc87dba) error: failed to run custom build command for pagekite v0.1.0 (https://github.com/fabricedesre/pagekite-rs.git#0dc87dba) process didn't exit successfully: /home/foxbox/foxbox/target/debug/build/pagekite-98502f1e7873fec1/build-script-build (exit code: 101) --- stderr ./autogen.sh: 3: exec: autoreconf: not found thread 'main' panicked at 'Failed to run libpagekite/autogen.sh', /home/foxbox/.cargo/git/checkouts/pagekite-rs-22b083423686e593/0dc87db/build.rs:46 stack backtrace: 1: 0x7f172271aebc - std::sys::imp::backtrace::tracing::imp::write::h9c41d2f69e5caabf at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:42 2: 0x7f172272010e - std::panicking::default_hook::{{closure}}::h1f61f3c769fffe7a at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:351 3: 0x7f172271fd14 - std::panicking::default_hook::hd5bda4e453dfb4be at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:367 4: 0x7f17227204eb - std::panicking::rust_panic_with_hook::hffbc74969c7b5d87 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:555 5: 0x7f17226f5e03 - std::panicking::begin_panic::h0a82ee08bc6f08bc at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:517 6: 0x7f17226fab6a - build_script_build::build::h30ee95210b4ff986 at /home/foxbox/.cargo/git/checkouts/pagekite-rs-22b083423686e593/0dc87db/build.rs:46 7: 0x7f17226fb2c0 - build_script_build::main::hb3750c4884967328 at /home/foxbox/.cargo/git/checkouts/pagekite-rs-22b083423686e593/0dc87db/build.rs:102 8: 0x7f1722728dca - __rust_maybe_catch_panic at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libpanic_unwind/lib.rs:98 9: 0x7f1722720c56 - std::rt::lang_start::ha0568cc91d8c5b09 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:436 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panic.rs:361 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/rt.rs:57 10: 0x7f17226fb492 - main 11: 0x7f1721902b44 - __libc_start_main 12: 0x7f17226f5068 - 13: 0x0 -

fabricedesre commented 7 years ago

Did you install the autoconf package? It should provide autoreconf.

dogcalas commented 7 years ago

I installed autoconf when I run the command and I get this.

Compiling pagekite v0.1.0 (https://github.com/fabricedesre/pagekite-rs.git#0dc87dba) error: failed to run custom build command for pagekite v0.1.0 (https://github.com/fabricedesre/pagekite-rs.git#0dc87dba) process didn't exit successfully: /home/foxbox/foxbox/target/debug/build/pagekite-98502f1e7873fec1/build-script-build (exit code: 101) --- stderr configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." thread 'main' panicked at 'Failed to run libpagekite/configure', /home/foxbox/.cargo/git/checkouts/pagekite-rs-22b083423686e593/0dc87db/build.rs:71 stack backtrace: 1: 0x7ff7b5856ebc - std::sys::imp::backtrace::tracing::imp::write::h9c41d2f69e5caabf at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:42 2: 0x7ff7b585c10e - std::panicking::default_hook::{{closure}}::h1f61f3c769fffe7a at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:351 3: 0x7ff7b585bd14 - std::panicking::default_hook::hd5bda4e453dfb4be at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:367 4: 0x7ff7b585c4eb - std::panicking::rust_panic_with_hook::hffbc74969c7b5d87 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:555 5: 0x7ff7b5831e03 - std::panicking::begin_panic::h0a82ee08bc6f08bc at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:517 6: 0x7ff7b5836ec8 - build_script_build::build::h30ee95210b4ff986 at /home/foxbox/.cargo/git/checkouts/pagekite-rs-22b083423686e593/0dc87db/build.rs:71 7: 0x7ff7b58372c0 - build_script_build::main::hb3750c4884967328 at /home/foxbox/.cargo/git/checkouts/pagekite-rs-22b083423686e593/0dc87db/build.rs:102 8: 0x7ff7b5864dca - __rust_maybe_catch_panic at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libpanic_unwind/lib.rs:98 9: 0x7ff7b585cc56 - std::rt::lang_start::ha0568cc91d8c5b09 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panicking.rs:436 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/panic.rs:361 at /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/rt.rs:57 10: 0x7ff7b5837492 - main 11: 0x7ff7b4a3eb44 - __libc_start_main 12: 0x7ff7b5831068 - 13: 0x0 -

Also is installed, shtool.

fabricedesre commented 7 years ago

Look at the packages we install to cross compile in https://github.com/fxbox/foxbox/blob/master/tools/docker/armhf/Dockerfile and check that you have all the needed dependencies (eg. libtool).

dogcalas commented 7 years ago

After aptitude install build-essential cpp gcc g++ cpp-4.8 gcc-4.8 g++-4.8 autoconf automake curl file libtool python3 shtool libasound2 libssl-dev libespeak-dev libupnp6-dev libudev-dev libavahi-client-dev libsqlite3-dev libev-dev

and

aptitude upgrade

Still the same error.

fabricedesre commented 7 years ago

Which debian version do you use?

dogcalas commented 7 years ago

Debian GNU/Linux 8.0.0 Jessie - Official amd64

fabricedesre commented 7 years ago

did you try to cargo clean before running ./build.sh again ?

dogcalas commented 7 years ago

Still troubles with pagekite. The same error. Can I build without that package? I want to get event logs to start my Process mining proyect

fabricedesre commented 7 years ago

There's really no reason to not manage to build on debian. I'll see if I can get that to work with a docker image of debian 8.

fabricedesre commented 7 years ago

Take a look at this PR: https://github.com/fxbox/foxbox/pull/584 This is providing a docker image based on debian jessie, building and packaging worked fine for me.

To use it locally, do: cd tools/docker ./docker.sh debian8 to build the docker image. ./build.sh debian8 to build foxbox. If you want a package, run ./package.sh debian8