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
Cannot open device /dev/sgx_enclave. #1224
Comments
@ziqi-zhang How did you install Gramine? Looks like you install a The What you can do is to git-clone the Gramine repo yourself and build & install. You'll have to follow this document: https://gramine.readthedocs.io/en/stable/devel/building.html. The legacy driver that you're using is called the So you'll need to do something like this:
|
@dimakuv Thanks! I will try it! |
Hi @dimakuv , I tried
where
In my SGX SDK |
@ziqi-zhang You're confusing Intel SGX SDK with the Intel SGX driver. These are two different things. You installed the SGX driver somehow, right? So you should find where is the path where you downloaded the SGX driver, and specify this path as the input to Typically this path is |
@dimakuv Thanks for your explanation! I have installed the Intel SGX driver via
|
I see. Well, then you can just download this file: https://raw.githubusercontent.com/intel/linux-sgx-driver/master/sgx_user.h And specify the path to this file in |
@dimakuv Thanks! I tried to build and it just finished with no error. Here is the output. Does it mean the build is successful?
|
I think you just did the Now you need to run:
If this is successful, then Gramine is installed on your system, and you can try running some examples, like HelloWorld. |
@dimakuv Yes, I tried to build with ninja. But I encountered another problem:
Do you know how to solve this problem? |
This indicates that Glibc build failed. Please check what's written in the Glibc build log: You probably forgot to install some dependency on your system. |
After I run
It seems there is no error, so I guess it was successfully built? However, when I enter
|
BTW the error in the
So I cleared the LD_LIBRARY_PATH by
So I think the build was successful? |
Yes, the build was successful.
Do you have some weird environment variables set up? I see that the installation step went fine. I have a feeling something is wrong with Python environment variables? |
Also, if you installed Gramine beforehand via |
I have anaconda as python environment and the python version is 3.8. What variable do you think may cause this problem? I have removed the previous |
I noticed that there is a |
Yes, that could be the problem. To be honest, I don't know how Anaconda works. But the problematic environment variable could be |
I found that
However I can not directly use this |
I will try to reconfigure meson and rebuild. But when I try to rebuild by
Is it because the |
I rebuilt with
However, when I try to build
|
@dimakuv I finally solved this problem! I think the problem is Anaconda and the python environment messed up. So I exited anaconda and recompiled by
I used anaconda because initially I encountered a problem
But later I found that I don't need to use conda. Now I can run the
I was wondering how can I set |
Glad you resolved it!
Open the manifest file |
Thanks very much!!!! I so appreciate your detailed and patient explanation! Without your help, I will never do it. I wish you every success in your future work. |
Hi,
I tried the
helloworld
example, but encountered this problem when runninggramine-sgx helloworld
:My SGX file is
/dev/isgx
, rather than/dev/sgx_enclave
. Here is the output ofis-sgx-available
:So how should I solve this problem? Is it because I use an older version of SGX?
The text was updated successfully, but these errors were encountered: