Compiling failed - error: failed to run custom build command for libdbus-sys v0.1.5 #34

Closed
opened 2019-10-24 08:32:10 +03:00 by bruce78 · 9 comments

This is the error message I got when trying to compile on Debian 10... rustc -V returns 1.34.2 and was installed via apt...

Does this make sense?

bruce@bruce-vaio:~/Downloads/meli$ make
cargo build --release
   Compiling rustc_version v0.2.3
   Compiling meli v0.3.2 (/home/bruce/Downloads/meli)
   Compiling libdbus-sys v0.1.5
   Compiling arrayvec v0.4.10
   Compiling num-traits v0.2.8
error: failed to run custom build command for `libdbus-sys v0.1.5`
process didn't exit successfully: `/home/bruce/Downloads/meli/target/release/build/libdbus-sys-9abb0d2acca98a97/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"dbus-1 >= 1.6\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package dbus-1 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `dbus-1.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'dbus-1\' found\n" } }', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [Makefile:4: meli] Error 101
This is the error message I got when trying to compile on Debian 10... `rustc -V` returns `1.34.2` and was installed via apt... Does this make sense? ``` bruce@bruce-vaio:~/Downloads/meli$ make cargo build --release Compiling rustc_version v0.2.3 Compiling meli v0.3.2 (/home/bruce/Downloads/meli) Compiling libdbus-sys v0.1.5 Compiling arrayvec v0.4.10 Compiling num-traits v0.2.8 error: failed to run custom build command for `libdbus-sys v0.1.5` process didn't exit successfully: `/home/bruce/Downloads/meli/target/release/build/libdbus-sys-9abb0d2acca98a97/build-script-build` (exit code: 101) --- stderr thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"dbus-1 >= 1.6\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package dbus-1 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `dbus-1.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'dbus-1\' found\n" } }', src/libcore/result.rs:997:5 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. warning: build failed, waiting for other jobs to finish... error: build failed make: *** [Makefile:4: meli] Error 101 ```

It seems to me that debian cargo replaces dependencies with system libraries, try installing the package 'librust-libdbus-sys-dev'

I've had one other user report this, if this works for you it should be added in the README.

It seems to me that debian cargo replaces dependencies with system libraries, try installing the package 'librust-libdbus-sys-dev' I've had one other user report this, if this works for you it should be added in the README.

Ok... the compile got further this time but now the error is

error: failed to run custom build command for openssl-sys v0.9.49

Ok... the compile got further this time but now the error is `error: failed to run custom build command for openssl-sys v0.9.49`

Ok try librust-openssl-sys-dev.

I am probably missing something but this is very bad user experience, I wonder what the debian rust team were thinking.

Ok try `librust-openssl-sys-dev`. I am probably missing something but this is very bad user experience, I wonder what the debian rust team were thinking.

Ok, after installing librust-openssl-sys-dev I now get

Compiling ui v0.3.2 (/home/bruce/Downloads/meli/ui)
error[E0277]: the trait bound `std::string::String: std::convert::From<&std::string::String>` is not satisfied

FYI, I compiled Meli a couple of weeks ago fine...

Ok, after installing `librust-openssl-sys-dev` I now get ``` Compiling ui v0.3.2 (/home/bruce/Downloads/meli/ui) error[E0277]: the trait bound `std::string::String: std::convert::From<&std::string::String>` is not satisfied ``` FYI, I compiled Meli a couple of weeks ago fine...

Can you post the error along with the source code position? Also, have you pulled changes since a couple weeks ago? (git pull)

Can you post the error along with the source code position? Also, have you pulled changes since a couple weeks ago? (`git pull`)

Below is the full error message... I've not done git pull, I just deleted the source directory and did a brand new git clone https://git.meli.delivery/meli/meli.git this morning...

bruce@bruce-vaio:~/Downloads/meli$ make
cargo build --release
   Compiling ui v0.3.2 (/home/bruce/Downloads/meli/ui)
error[E0277]: the trait bound `std::string::String: std::convert::From<&std::string::String>` is not satisfied
   --> ui/src/components/contacts.rs:130:31
    |
130 |             self.form.push((k.into(), v.to_string()));
    |                               ^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `std::string::String`
    |
    = help: the following implementations were found:
              <std::string::String as std::convert::From<&'a str>>
              <std::string::String as std::convert::From<std::borrow::Cow<'a, str>>>
              <std::string::String as std::convert::From<std::boxed::Box<str>>>
              <std::string::String as std::convert::From<termion::cursor::Down>>
            and 4 others
    = note: required because of the requirements on the impl of `std::convert::Into<std::string::String>` for `&std::string::String`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `ui`.

To learn more, run the command again with --verbose.
make: *** [Makefile:4: meli] Error 101
Below is the full error message... I've not done git pull, I just deleted the source directory and did a brand new `git clone https://git.meli.delivery/meli/meli.git` this morning... ``` bruce@bruce-vaio:~/Downloads/meli$ make cargo build --release Compiling ui v0.3.2 (/home/bruce/Downloads/meli/ui) error[E0277]: the trait bound `std::string::String: std::convert::From<&std::string::String>` is not satisfied --> ui/src/components/contacts.rs:130:31 | 130 | self.form.push((k.into(), v.to_string())); | ^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `std::string::String` | = help: the following implementations were found: <std::string::String as std::convert::From<&'a str>> <std::string::String as std::convert::From<std::borrow::Cow<'a, str>>> <std::string::String as std::convert::From<std::boxed::Box<str>>> <std::string::String as std::convert::From<termion::cursor::Down>> and 4 others = note: required because of the requirements on the impl of `std::convert::Into<std::string::String>` for `&std::string::String` error: aborting due to previous error For more information about this error, try `rustc --explain E0277`. error: Could not compile `ui`. To learn more, run the command again with --verbose. make: *** [Makefile:4: meli] Error 101 ```

Ok, it seems this was introduced in 1.36.0. I pushed a fix in master. Thank you!

Ok, it seems this was introduced in [1.36.0](https://github.com/rust-lang/rust/pull/59825/). I pushed a fix in master. Thank you!

Ok... let me give it another whirl...

Ok... let me give it another whirl...

Ok, it compiled, now to add an account or two...

Ok, it compiled, now to add an account or two...
Manos Pitsidianakis referenced this issue from a commit 2019-12-13 00:40:33 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#34
There is no content yet.