frawk
frawk copied to clipboard
Can't build on latest Arch Linux
yay -Sy frawk
.................
Compiling frawk v0.4.6 (/tmp/makepkg/frawk/src/frawk-0.4.6)
Compiling tikv-jemallocator v0.4.3
error[E0554]: #![feature]
may not be used on the stable release channel
--> src/main.rs:2:43
|
2 | #![cfg_attr(feature = "unstable", feature(core_intrinsics))]
| ^^^^^^^^^
error[E0554]: #![feature]
may not be used on the stable release channel
--> src/main.rs:3:43
|
3 | #![cfg_attr(feature = "unstable", feature(test))]
| ^^^^
error[E0554]: #![feature]
may not be used on the stable release channel
--> src/main.rs:4:43
|
4 | #![cfg_attr(feature = "unstable", feature(write_all_vectored))]
| ^^^^^^^^^^^^^^^^^^
For more information about this error, try rustc --explain E0554
.
error: could not compile frawk
due to 3 previous errors
==> ERROR: A failure occurred in build().
Hi! Are you wondering how to fix this compilation error or to get the arch package to install?
I do not own the Arch package (maybe someone who does watches this repo and can weigh in) and don't have much experience in debugging install failures on Arch. For the former, I think the answer in that case is to either build on nightly or to build without the unstable
feature.
Unfortunately I don't know rust/environment. Just wanted to install and try it.
Oh hi, I'm the maintainer of frawk
's package in the AUR. @ato2 In the future, you may want to first report issues you have with AUR packages as comments in the AUR itself (here's frawk's page: https://aur.archlinux.org/packages/frawk) so as to not waste upstream developers' time :wink:
The easiest way to build frawk from the AUR, btw, is to have rustup
installed. The PKGBUILD
exports a RUSTUP_TOOLCHAIN=nightly
environment variable to tell rustup
to use a nightly toolchain to build frawk
.
I'll see if I can add some kind of message to inform users of this to prevent any further confusion. Cheers!
EDIT: I see there are currently some issues linking against Arch's LLVM libs, I'll have a look at this soon-ish.