tailhook / vagga

Vagga is a containerization tool without daemons
http://vagga.readthedocs.org
MIT License
1.86k stars 96 forks source link

vagga::wrapper: Error executing _build: Could not run versioner #508

Open KarelWintersky opened 5 years ago

KarelWintersky commented 5 years ago

vagga::wrapper: Error executing _build: Could not run versioner: error when executing: No such file or directory (os error 2)

→ vagga run
ERROR 2018-12-12T22:37:57Z: vagga::wrapper: Error executing _build: Could not run versioner: error when executing: No such file or directory (os error 2)
Command <Command "/proc/self/exe" "__wrapper__" "_build" "mysql-dev"; environ[3]; uid_map=[UidMap { inside_uid: 0, outside_uid: 1000, count: 1 }, UidMap { inside_uid: 1, outside_uid: 100000, count: 65535 }]; gid_map=[GidMap { inside_gid: 0, outside_gid: 1000, count: 1 }, GidMap { inside_gid: 1, outside_gid: 100000, count: 65535 }]> exited with code 124

My system:

# uname -a

Linux blacktower 4.14.65-gentoo #3 SMP Tue Dec 4 03:15:09 MSK 2018 x86_64 Intel(R) Celeron(R) CPU N3150 @ 1.60GHz GenuineIntel GNU/Linux

# zcat /proc/config.gz  | grep CONFIG_USER_NS
CONFIG_USER_NS=y

Vagga compiled from source using RUST docker image ( https://github.com/tailhook/vagga/blob/master/docs/installation.rst#building-from-source-using-docker )

KarelWintersky commented 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
KarelWintersky commented 5 years ago

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.