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

Rust example fails to build with error: no targets selected to build #57

Open
turbinenreiter opened this issue Feb 14, 2024 · 1 comment

Comments

@turbinenreiter
Copy link

Following the instructions from the Rust example (https://github.com/unikraft/catalog/tree/main/examples/helloworld-rs) fails.

KRAFTKIT_TARGET=helloworld KRAFTKIT_PLAT=qemu KRAFTKIT_ARCH=x86_64 cargo +nightly build -Z build-std=std,panic_abort --target x86_64-unikraft-linux-musl
   Compiling hello v0.0.0 (/home/.../Projects/.../examples/http-rust1.75-actix-web4)
error: linking with `kraftld` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/.../.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-
  ...
  ... lots of paths
  ...
  deps/hello-7873fb7c8a103ff6" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs"
  = note: level=debug msg="kraftkit 0.7.5"
          level=error msg="no targets selected to build"
          

error: could not compile `hello` (bin "hello") due to 1 previous error
@amroKerkizz
Copy link

Hi im a student at the University of Texas at Austin and would love to help work on this issue!

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