-
Notifications
You must be signed in to change notification settings - Fork 3
make build
problem
#2
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
Comments
As a starting point, I would suggest building and running the Swivel-SFI tools and benchmarks and see if you get that running. It is possible that the build script I wrote isn't perfect and assumes that this is built already. If you get the Swivel-SFI running, this may help diagnose your issue |
Thank you for your reply! btw in Cal it might be mid-night, please mind WLB, Sir. I added "./x.py install cargo" in "build_rustc:" and now it was able to continue to run, buf it failed when we moved to "build_macro_benchmark" process in "make build", basically beacause of the some rust problems. I guess that some of the dependencies in cargo.toml may have changed a lot so it was not easy for me to continue. The error when running "build_macro_benchmark" is basically like what rust-lang/rust#49146 mentioned and simply "rustup update" couldn't fix this. As for Swivel-SFI tools and some benchmarks, I found a lot of files missing, and I guess that I couldn't fix them. For other tests, I encountered errors like
As rust gets update so quickly it is definitely very hard for me to setup whole environments and I guess it might be nasty and profitless for you to reproduce this project. Btw I also tried to run "make build_repros" while disabling protections of Swivel, that way maybe I could try a taste of Wasm-Spectre Poc. But the compiler told me that I didn't get special wasi-sdk in this projects installed.
Maybe it was due to my failure at make build, so I wonder if you can help me by adding the special wasi-sdk in this repro. |
It is possible that rust and cargo have changed the dependencies in a way that might need some work to get all this building.
Do you see a folder called
and try runing the test again
|
Thank you for your advice!! First of all, as I ran
Secondly, I surely ran the
It seems like the wasi-sdk should be in the directory in the swivel, but I can't find this wasi-sdk. I can find wasi-sdk only in the The '/home/unik/swivel/safeside/build-lucet/../../wasi-sdk/build/install/opt/wasi-sdk/bin/clang++' didn't match with the path of wasi-sdk. I've checked the In fact, what my swivel looks like was basically like below: ( In
Maybe that is because I failed to run make build all, so the very wasi-sdk didn't show up? best wishes. |
I think I finally have some time. I will try this on my machine over the next few days and see if I can fix any blockers. |
@Unik-lif Fixed a bunch of issues in the build script to do with
Tested on a clean ubuntu lts 20.04.04 LTS and everything seems to build Closing the issue for now. Please re-open if you run into any additional issues |
Great thanks for your reply and urgent fix ! ! I've been busy recently, sorry for my late response... I'm testing this in a fresh Ubuntu 20.04.04 LTS in VMware, but in
The 'Caused by' message is lengthy, and I hope that you are not be annoyed.... |
Hmm... this is surprising. I definitely didn't run into this issue. Basic sanity test
One of the things you can also try to do is to run the failing command alone in the terminal and see if the error shows up again
If it happens again, we'll can see how to debug this.
If you had to cut off part of the log to post the message, you can probably post the full log in pastebin and send the link here
Nah, all good :) |
Thank you for your reply! |
make build
problem
I'm sorry that I've never known rust and wasm before, but honestly speaking I love your paper concerning Spectre, Wasm and some interesting protection methods, so I can't wait to implement these methods and get some knowledge of Wasm-Spectre Poc on my machine. I've read the manual of rustup and cargo but still can't figure out how can I fix this problem.
Basically I've setup an environment of Ubuntu 20.04.2 LTS in a fresh VM and machine as mentioned in README.md, and I ran the command in README.md. However I got the following problem when I was running "make build".
In Makefile I notice we use cargo +rust-cet build to lanuch the project:
the result is shown below:
I've checked the rustup show command and find that the toolchain of "rust-cet" has already been installed:
Based on some manuals about "cargo build" , I've tried simply delete "+rust-cet" in "cargo +rust-cet build" since rust-cet seemed to be installed beforehand, but I got new fault shown below:
I'm looking forward to your reply,
The text was updated successfully, but these errors were encountered: