Open marcgweg opened 3 years ago
Oops, I was somewhat trigger happy 'cause I tried a lot to get it working with Ubuntu 20. This error was due to the golang dependency. So I installed golang...
And then I get:
Compiling verfploeter v0.1.41 (/home/dnsops/verfploeter)
error[E0554]: #![feature]
may not be used on the stable release channel
--> src/main.rs:1:1
|
1 | #![feature(drain_filter)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Including a lot of warnings because of unused imports... and ending with:
error: aborting due to previous error
For more information about this error, try rustc --explain E0554
.
error: could not compile verfploeter
.
The statement 'rustc --explain E0554' gives: Feature attributes are only allowed on the nightly release channel. Stable or beta compilers will not comply.
Example of erroneous code (on a stable compiler):
#![feature(non_ascii_idents)] // error: `#![feature]` may not be used on the
// stable release channel
If you need the feature, make sure to use a nightly release of the compiler (but be warned that the feature may be removed or altered in the future).
Hi Marc,
I didn't try in Ubuntu20. But you can safely disable those modules to remove warnings. II will try to fix this in next version, but unfortunately I dont have a date for this yet.
Leandro
On 25 Sep 2020, at 09:39, marcgweg notifications@github.com wrote:
Oops, I was somewhat trigger happy 'cause I tried a lot to get it working with Ubuntu 20. This error was due to the golang dependency. So I installed golang...
And then I get: Compiling verfploeter v0.1.41 (/home/dnsops/verfploeter) error[E0554]: #![feature] may not be used on the stable release channel --> src/main.rs:1:1 | 1 | #![feature(drain_filter)] | ^^^^^^^^^^^^^^^^^^^^^^^^^
Including a lot of warnings because of unused imports...
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Leandro,
I did something else now. I followed the directives from the Dockerfile. So not installing rust and cargo with apt. But instead do a: apt install build-essential cmake golang curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && chmod +x /tmp/rustup.sh && /tmp/rustup.sh -y export PATH="~/.cargo/bin:${PATH}" rustup toolchain install nightly && rustup default nightly
It's compiling now...
Despite 79 warnings, Verfploeter is built.
Hi Marc,
Glad to know. Just to know, you work with Gio/Joao at SiDNLabs or I am wrong?
regards Leandro
On 25 Sep 2020, at 10:49, marcgweg notifications@github.com wrote:
Despite 79 warnings, Verfploeter is built.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Yes I do :-)
When trying to build Verfploeter (cargo build --release) I get the following error:
-- Configuring incomplete, errors occurred! See also "/home/dnsops/verfploeter/target/release/build/grpcio-sys-76169d00a7f5a3a2/out/build/CMakeFiles/CMakeOutput.log". See also "/home/dnsops/verfploeter/target/release/build/grpcio-sys-76169d00a7f5a3a2/out/build/CMakeFiles/CMakeError.log".
--- stderr CMake Warning at cmake/protobuf.cmake:48 (message): gRPC_PROTOBUF_PROVIDER is "module" but PROTOBUF_ROOT_DIR is wrong Call Stack (most recent call first): CMakeLists.txt:140 (include)
CMake Error at third_party/boringssl/CMakeLists.txt:38 (message): Could not find Go
thread 'main' panicked at ' command did not execute successfully, got: exit code: 1
build script failed, must exit now', /home/dnsops/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.39/src/lib.rs:829:5
Both with Ubuntu 18 and Ubuntu 20.