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

Unable to build project #86

Closed
DirkSchueler opened this issue Sep 13, 2021 · 8 comments
Closed

Unable to build project #86

DirkSchueler opened this issue Sep 13, 2021 · 8 comments
Assignees

Comments

@DirkSchueler
Copy link

Introduction
Building is documented as install.md begins with "cargo build --all --release", but leads to several
errors on my device, although it went fine a few weeks ago.

Please describe the bug
cargo build --all --release
Updating crates.io index
Downloaded wyz v0.4.0
Downloaded bitvec v0.22.3
Downloaded lockfile v0.3.0
Downloaded crc8 v0.1.1
Downloaded 4 crates (229.8 KB) in 0.48s
Compiling crc8 v0.1.1
Compiling wyz v0.4.0
Compiling lockfile v0.3.0
Compiling eruption v0.1.23 (/home/dirk/data/eruption/eruption)
Compiling chrono v0.4.19
Compiling clap v3.0.0-beta.4
Compiling rust-pulsectl v0.2.6 (https://github.com/X3n0m0rph59/pulsectl.git?branch=master#09c36e6c)
Compiling libpulse-simple-binding v2.24.1
Compiling dbus-tokio v0.7.4
error[E0658]: arbitrary expressions in key-value attributes are unstable
--> /home/dirk/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-3.0.0-beta.4/src/lib.rs:8:10
|
8 | #![doc = include_str!("../README.md")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #78835 rust-lang/rust#78835 for more information

Compiling sysinfo v0.20.3
Compiling glib-sys v0.14.0
Compiling tiff v0.6.1
Compiling bitvec v0.22.3
Compiling phf v0.9.0
error[E0710]: an unknown tool name found in scoped lint: rustdoc::broken_intra_doc_links
--> /home/dirk/.cargo/registry/src/github.com-1ecc6299db9ec823/sysinfo-0.20.3/src/lib.rs:13:9
|
13 | #![deny(rustdoc::broken_intra_doc_links)]
| ^^^^^^^

error[E0658]: arbitrary expressions in key-value attributes are unstable
--> /home/dirk/.cargo/registry/src/github.com-1ecc6299db9ec823/sysinfo-0.20.3/src/lib.rs:10:10
|
10 | #![doc = include_str!("../README.md")]
.
.
.
.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error[E0658]: use of unstable library feature 'osstring_ascii'
--> /home/dirk/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-3.0.0-beta.4/src/parse/matches/matched_arg.rs:130:19
|
130 | v.eq_ignore_ascii_case(val)
| ^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #70516 rust-lang/rust#70516 for more information

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0658.
error: build failed

To Reproduce
Steps to reproduce the behavior:
Call cargo build --all --release ....

Expected behavior
Succesfull compilation

Logs
Please provide logs: sudo journalctl -u eruption.service -b

Screenshots (optional)
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Eruption version [e.g. 0.1.20]
  • Your device(s) (sudo lsusb)

Additional context
Add any other context about the problem here.

@X3n0m0rph59 X3n0m0rph59 self-assigned this Sep 13, 2021
@X3n0m0rph59
Copy link
Member

Hi @DirkSchueler, could you please try to update your version of Rust? Eruption requires the current stable version of rustc to successfully compile. Currently this would be version 1.55.0

https://rustup.rs/

@DirkSchueler
Copy link
Author

Quiet easy solution! Thank you!

@X3n0m0rph59 X3n0m0rph59 pinned this issue Sep 17, 2021
@DirkSchueler
Copy link
Author

After Pulling the current Repo
cargo build --all --release
led to
"error: failed to load manifest for workspace member /home/dirk/data/eruption/eruption

Caused by:
failed to parse manifest at /home/dirk/data/eruption/eruption/Cargo.toml

Caused by:
feature edition2021 is required

Updating Rust to version 1.56.1 solved that, but
cargo build --all --release
now leads to
...
Compiling i18n-embed v0.13.0
The following warnings were emitted during compilation:

warning: "pkg-config" "--libs" "--cflags" "gtksourceview-4" "gtksourceview-4 >= 4" did not exit successfully: exit status: 1

error: failed to run custom build command for sourceview4-sys v0.2.0 (https://gitlab.gnome.org/World/Rust/sourceview4-rs.git?branch=master#dd6189dc)

@DirkSchueler DirkSchueler reopened this Nov 23, 2021
@X3n0m0rph59
Copy link
Member

@DirkSchueler, thanks for reporting this issue!

The problem can be fixed by installing the packages gtksourceview4 and/or gtksourceview-4.0-dev.
I have updated the INSTALL.md respectively.

@DirkSchueler
Copy link
Author

Sorry, but

sudo apt install libusb-1.0-0-dev libhidapi-dev libevdev-dev libudev-dev libdbus-1-dev
libpulse-dev luajit libluajit-5.1-dev libx11-dev libxrandr-dev libgtk-3-dev libgdk-pixbuf2.0-dev
libatk1.0-dev libpango1.0-dev libcairo2-dev libgtksourceview-4.0-dev
on my Ubuntu System
gives
E: Unable to locate package libgtksourceview-4.0-dev
E: Couldn't find any package by glob 'libgtksourceview-4.0-dev'

and

sudo apt install libusb-1.0-0-dev libhidapi-dev libevdev-dev libudev-dev libdbus-1-dev libpulse-dev luajit libluajit-5.1-dev libx11-dev libxrandr-dev libgtk-3-dev libgdk-pixbuf2.0-dev libatk1.0-dev libpango1.0-dev libcairo2-dev gtksourceview4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package gtksourceview4

@X3n0m0rph59
Copy link
Member

X3n0m0rph59 commented Nov 23, 2021

@DirkSchueler

Please try to build using the following command:

cargo build --release --all --no-default-features --features sensors-most

This will disable the syntax highlighting in the Eruption GUI since your version of Ubuntu does not provide the package required for it.

The --features sensors-most argument will include nearly all available sensors in the eruption-process-monitor daemon

@alkaris2
Copy link

build fails because it requires resolver which is nightly feature, but I can't get it to switch to nightly even though it's installed as default with rustup as a required dependency.

error: failed to parse manifest at `/var/tmp/pamac-build-alkaris/eruption/src/eruption/Cargo.toml`

Caused by:
  feature `resolver` is required

  this Cargo does not support nightly features, but if you
  switch to nightly channel you can add
  `cargo-features = ["resolver"]` to enable this feature

@X3n0m0rph59
Copy link
Member

Hi @alkaris2,

could you please try to update your installation of Rust (and the cargo binary) using:

$ rustup self update
$ rustup update
$ rustup default nightly

If the build still fails, please post the output of

$ cargo -V

@X3n0m0rph59 X3n0m0rph59 unpinned this issue Jun 24, 2022
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

3 participants