MindFlavor / prometheus_wireguard_exporter

A Prometheus exporter for WireGuard, written in Rust.
https://mindflavor.github.io/prometheus_wireguard_exporter
MIT License
493 stars 51 forks source link

Building error when `regex-syntax` build package #60

Closed DnR-iData closed 2 years ago

DnR-iData commented 3 years ago

Hi,

I'm trying to install the exporter but I've a building error on regex-syntax build package.

Tryed debian embbeded rust+cargo package and with recommanded installation on rust website :

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Tryed git clone & build master branch too.

But all same error :

$ cargo install prometheus_wireguard_exporter     # OR cargo install --path .
...
...
   Compiling regex-syntax v0.6.25
     Running `rustc --crate-name regex_syntax --edition=2018 /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.6.25/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' -C metadata=a494131b9ba00718 -C extra-filename=-a494131b9ba00718 --out-dir /tmp/cargo-install0aIPNw/release/deps -L dependency=/tmp/cargo-install0aIPNw/release/deps --cap-lints allow`
error: failed to compile `prometheus_wireguard_exporter v3.5.0`, intermediate artifacts can be found at `/tmp/cargo-install0aIPNw`

Caused by:
  could not compile `regex-syntax`

Caused by:
  process didn't exit successfully: `rustc --crate-name regex_syntax --edition=2018 /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.6.25/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' -C metadata=a494131b9ba00718 -C extra-filename=-a494131b9ba00718 --out-dir /tmp/cargo-install0aIPNw/release/deps -L dependency=/tmp/cargo-install0aIPNw/release/deps --cap-lints allow` (signal: 9, SIGKILL: kill)

Here's information about distro :

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:    10
Codename:   buster
$ uname -a
Linux wireguard 5.10.0-0.bpo.5-cloud-arm64 #1 SMP Debian 5.10.24-1~bpo10+1 (2021-03-29) aarch64 GNU/Linux

Any suggestion ? Need to open a issue on regex-syntax github ?

Thank you a lot


DR

qdm12 commented 3 years ago

Hi there, the (signal: 9, SIGKILL: kill) part might be due to the build running out of memory?

I seen you are running on arm64, what device are you using?