Open KarelWintersky opened 5 years ago
I added option key --target=x86_64-unknown-linux-mus
as recommended here: https://github.com/tailhook/vagga/issues/6#issuecomment-446775859
so, commandline is:
docker run --rm --user "$(id -u)":"$(id -g)" -e VAGGA_VERSION=v0.8.1-24-g1afd5a0 -v "$PWD":/usr/src/vagga -w /usr/src/vagga rust cargo build --release --target=x86_64-unknown-linux-musl
Result:
....
Downloaded unicode-normalization v0.1.7
Compiling proc-macro2 v0.4.20
Compiling version_check v0.1.5
Compiling build_const v0.2.1
Compiling typenum v1.10.0
Compiling unicode-xid v0.1.0
Compiling libc v0.2.43
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-unknown-linux-musl` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `libc`.
warning: build failed, waiting for other jobs to finish...
error: build failed
As recommended, I run:
→ docker run --rm --user "$(id -u)":"$(id -g)" -e VAGGA_VERSION=v0.8.1-24-g1afd5a0 -v "$PWD":/usr/src/vagga -w /usr/src/vagga rust rustc --explain E0463
A plugin/crate was declared but cannot be found. Erroneous code example:
> #![feature(plugin)]
> #![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`
> extern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`
You need to link your code to the relevant crate in order to be able to use it
(through Cargo or the `-L` option of rustc example). Plugins are crates as
well, and you link to them the same way.
vagga::wrapper: Error executing _build: Could not run versioner: error when executing: No such file or directory (os error 2)
My system:
Vagga compiled from source using RUST docker image ( https://github.com/tailhook/vagga/blob/master/docs/installation.rst#building-from-source-using-docker )