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

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

Open
dogcalas opened this issue Jan 15, 2017 · 10 comments
Open

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

dogcalas opened this issue Jan 15, 2017 · 10 comments

Comments

@dogcalas
Copy link

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
Copy link
Collaborator

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

@dogcalas
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

Which debian version do you use?

@dogcalas
Copy link
Author

Debian GNU/Linux 8.0.0 Jessie - Official amd64

@fabricedesre
Copy link
Collaborator

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

@dogcalas
Copy link
Author

dogcalas commented Jan 16, 2017

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
Copy link
Collaborator

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
Copy link
Collaborator

Take a look at this PR: #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

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