phirecc / mlvd

A minimal Mullvad WireGuard client
MIT License
5 stars 0 forks source link

Can't build with cargo or cargo-nightly #4

Closed MalteKiefer closed 1 year ago

MalteKiefer commented 1 year ago

Hi,

try to build with cargo, I got this error:

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:1:12
  |
1 | #![feature(file_set_times)]
  |            ^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `mlvd` (bin "mlvd") due to previous error

with cargo-nightly this one:

   Compiling proc-macro2 v1.0.47
   Compiling ring v0.16.20
   Compiling getrandom v0.2.8
   Compiling unicode-normalization v0.1.22
   Compiling aho-corasick v0.7.19
   Compiling serde_json v1.0.87
   Compiling atty v0.2.14
   Compiling anyhow v1.0.66
   Compiling ppv-lite86 v0.2.17
   Compiling ryu v1.0.11
   Compiling heck v0.4.0
   Compiling regex-syntax v0.6.28
   Compiling itoa v1.0.4
   Compiling argh_shared v0.1.9
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/pr0p37/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.47/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

   Compiling rand_core v0.6.4
   Compiling flate2 v1.0.24
For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
phirecc commented 1 year ago

Hi, Thanks for reporting this. I just pushed a new release which updates the dependencies. Try pulling and then rebuilding.

MalteKiefer commented 1 year ago

It works. I changed the template file, tried to connect, I get this error messages:

[user@Pinetree ~]$ sudo mlvd connect -p "!(31173|M247|xtom)" "(de|nl|no)-"
[INFO ] Using cached relay list
[INFO ] Found 14 matching relays, picking one
[INFO ] Using no-svg-wg-003 (no-svg), hosted by Blix
[#] ip link add mlvd type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev mlvd
Cannot find device "mlvd"
Error: wg-quick failed with exit status: 1
phirecc commented 1 year ago

That's a wireguard error message, the wireguard kernel module isn't loaded in your kernel. Try loading the kernel module or rebooting.