Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't do a local build on Ubuntu 22.04 #132

Open
goodidea-kp opened this issue Aug 24, 2023 · 5 comments
Open

Can't do a local build on Ubuntu 22.04 #132

goodidea-kp opened this issue Aug 24, 2023 · 5 comments

Comments

@goodidea-kp
Copy link

warning: /home/kostya/containerd-wasm-shims/containerd-shim-slight-v1/Cargo.toml: dependency (openssl-sys) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions
error: failed to create directory /target/release

Caused by:
Permission denied (os error 13)
make: *** [Makefile:78: build-slight-cross-x86_64-unknown-linux-musl] Error 101

Any help?

@Mossaka
Copy link
Member

Mossaka commented Aug 24, 2023

It looks like you don't have permission to create directory. Try to run with sudo

@goodidea-kp
Copy link
Author

Well, I run with 'sudo', and run as 'sudo su' user.. no luck. Please install fresh ubuntu 22.04 TLS, fresh Docker and try to build... I think there is a problem

@Mossaka
Copy link
Member

Mossaka commented Aug 25, 2023

I think our CI is running ubuntu 22.04

@goodidea-kp
Copy link
Author

possible CI deviate from the default Ubuntu installation. I used default Ubuntu. Make sense?

@Mossaka
Copy link
Member

Mossaka commented Sep 5, 2023

Okay, make sense I will try to reproduce it in a fresh ubuntu 22.04 env later.

In the meantime, if you create target/release directory first and then run the build command, could this resolve your issue? It looked like to me that in the build process, cross / cargo didn't have permissions to create directories to emit build artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants