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

Manual compile on aarch64 fails #146

Open
pe1rmg opened this issue Sep 13, 2019 · 0 comments
Open

Manual compile on aarch64 fails #146

pe1rmg opened this issue Sep 13, 2019 · 0 comments

Comments

@pe1rmg
Copy link

pe1rmg commented Sep 13, 2019

Hello,

I am trying to compile the application on an OrangePi Zero Plus since there are no pre-made builds available.

When compiling it fails with a few warnings / errors:


root@dapnet-trx:/opt/dapnet/UniPager#` cargo build --release

Compiling unipager v1.0.3 (/opt/dapnet/UniPager)
error: cannot find macro select! in this scope
--> src/connection.rs:109:21
|
109 | select! {
| ^^^^^^

warning: unused macro definition
--> src/status.rs:70:1
|
70 | / macro_rules! status_silent {
71 | | ( $( $key:ident: $value:expr),* ) => ({
72 | | let mut status = $crate::status::STATUS.write().unwrap();
73 | | $(
... |
79 | | });
80 | | }
| |_^
|
= note: #[warn(unused_macros)] on by default

warning: trait objects without an explicit dyn are deprecated
--> src/transmitter/ptt.rs:7:21
|
7 | Gpio { pin: Box, inverted: bool },
| ^^^ help: use dyn: dyn Pin
|
= note: #[warn(bare_trait_objects)] on by default


Then the warning "trait objects without an explicit dyn are deprecated" repeats a number of times, before it fails with:


warning: ... range patterns are deprecated
--> src/pocsag/encoding.rs:10:10
|
10 | 0...127 => byte,
| ^^^ help: use ..= for an inclusive range
|
= note: #[warn(ellipsis_inclusive_range_patterns)] on by default

error: aborting due to previous error

error: Could not compile unipager.

Caused by:
process didn't exit successfully: rustc --crate-name unipager src/main.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=1e0febf148d3728d -C extra-filename=-1e0febf148d3728d --out-dir /opt/dapnet/UniPager/target/release/deps -L dependency=/opt/dapnet/UniPager/target/release/deps --extern hidapi=/opt/dapnet/UniPager/target/release/deps/libhidapi-89f05922f3ad5e7c.rlib --extern lazy_static=/opt/dapnet/UniPager/target/release/deps/liblazy_static-36984e2a6b399d14.rlib --extern log=/opt/dapnet/UniPager/target/release/deps/liblog-072ee7ba28d2916b.rlib --extern raspi=/opt/dapnet/UniPager/target/release/deps/libraspi-eef07091b4a84f42.rlib --extern serde=/opt/dapnet/UniPager/target/release/deps/libserde-854e7e5f09227608.rlib --extern serde_derive=/opt/dapnet/UniPager/target/release/deps/libserde_derive-5798bf1b6d3d2ceb.so --extern serde_json=/opt/dapnet/UniPager/target/release/deps/libserde_json-d36de4b4ffcb54ce.rlib --extern serial=/opt/dapnet/UniPager/target/release/deps/libserial-66020f173132e1fd.rlib --extern tiny_http=/opt/dapnet/UniPager/target/release/deps/libtiny_http-94d4ab9431b2bb26.rlib --extern ws=/opt/dapnet/UniPager/target/release/deps/libws-20830ae0c5e72ecf.rlib -L native=/lib/aarch64-linux-gnu -L native=/opt/dapnet/UniPager/target/release/build/hidapi-24442d9b29cb39ba/out -L native=/opt/dapnet/UniPager/target/release/build/backtrace-sys-db971181076ff4a0/out (exit code: 1)


Is there an "easy" way around this issue, or will it require a code update?

Thanks...

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

1 participant