You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Blaine Malone <no...@github.com.INVALID> on 2021/02/23 22:10:59 UTC
[apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS
(#318)
**Specs: MacBook Pro (16-inch, 2019), 2.3 GHz 8-Core Intel Core i9**
When following the instructions outlined [here](https://github.com/apache/incubator-teaclave-sgx-sdk#use-simulation-mode-for-non-sgx-enabled-machine-includes-macos).
I get the following error:
```
./lib/libenclave.a(sgx_trts-e1de7fe3db2688ea.sgx_trts.c1x8g4sc-cgu.2.rcgu.o): In function `sgx_trts::enclave::SgxGlobalData::new::hd171d7330c2c7ee0':
sgx_trts.c1x8g4sc-cgu.2:(.text._ZN8sgx_trts7enclave13SgxGlobalData3new17hd171d7330c2c7ee0E+0xa5): undefined reference to `get_rsrv_base'
sgx_trts.c1x8g4sc-cgu.2:(.text._ZN8sgx_trts7enclave13SgxGlobalData3new17hd171d7330c2c7ee0E+0xb2): undefined reference to `get_rsrv_size'
collect2: error: ld returned 1 exit status
Makefile:155: recipe for target 'enclave/enclave.so' failed
make: *** [enclave/enclave.so] Error 1
```
Steps to reproduce:
```
1. docker pull baiduxlab/sgx-rust-stable
2. docker run -v /Users/<user.name>/code/incubator-teaclave-sgx-sdk:/root/sgx -ti baiduxlab/sgx-rust-stable
3. cd sgx/samplecode/helloworld/
4. Edited the Makefile to run in SW mode
5. make && cd bin
6. ./app
```
I've seen some closed issues on this repo that report _similar_ errors, but none of those fixes work in this case.
**Side Notes:**
- Do I need to have the [linux-sgx](https://github.com/intel/linux-sgx) sdk installed on my Macbook? (The docker container includes all necessary libraries right?)
- I have tried the latest build too and that's gave the same error, `baiduxlab/sgx-rust`.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by n34l3h <no...@github.com.INVALID>.
Is it possible to use SGX simulation mode on a 2015 mbp with a 2.2 i7-4770HQ? The main purpose would be for playing/ripping UHD4k Blu-ray Discs as this requires SGX.
If this could work, any advice on installation etc would be very welcome. Thanks Neale
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-1250068599
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS
(#318)
Posted by Astewart1510 <no...@github.com.INVALID>.
Can this be escalated? I am also wanting to know if this is possible in simulation mode.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-950865781
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by Yu Ding <no...@github.com.INVALID>.
@Astewart1510 here you go https://github.com/apache/incubator-teaclave-trustzone-sdk
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-999773368
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by Astewart1510 <no...@github.com.INVALID>.
hi @dingelish Thanks for the clarity. I suppose I would have to start using the TrustZone SDK? Would that be compatible with a Macbook Pro M1 chip?
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-999606455
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS
(#318)
Posted by Astewart1510 <no...@github.com.INVALID>.
@glassonion1 thanks so much. Would be very interested to know if it works in Simulation mode on Apples M1 Chip. Reason being is i am looking for a new Mac.
Thanks again.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-950914441
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS
(#318)
Posted by Taisuke Fujita <no...@github.com.INVALID>.
My sample programs run on Intel Mac except remote attestation and mutual-ra.
But I don't know if it works on M1 Mac.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-950910220
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS
(#318)
Posted by Taisuke Fujita <no...@github.com.INVALID>.
I created some sample programs that runs Rust SGX SDK here.
https://github.com/glassonion1/rust-101/tree/main/sgx-sdk
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-950877725
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by Yu Ding <no...@github.com.INVALID>.
hi @Astewart1510 this is almost impossible. teaclave sgx sdk is built on top of intel sgx sdk which is x86 only. we can make rust part compile but i'm afraid we can't make intel sgx sdk compile on arm64.
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-998992917
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS
(#318)
Posted by Astewart1510 <no...@github.com.INVALID>.
> I created some sample programs that runs Rust SGX SDK here. https://github.com/glassonion1/rust-101/tree/main/sgx-sdk
Thanks @glassonion1 !! and this was all done in simulation mode running on a Macbook Pro with a 2.3 GHz 8-Core Intel Core i9 ?
Do you by any chance know if we can run Intel SGX in simulation mode on an M1 chip?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-950887515
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by Astewart1510 <no...@github.com.INVALID>.
@dingelish , sorry wanted to ask if it's possible to change the docker image in such a way that the architecture of the container is x86 ? Therefore the Intel SGX would be able to run on simulation mode on a M1 Mac using a x86 docker image.
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-1022298026
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by Astewart1510 <no...@github.com.INVALID>.
Just asking this again - anyone managed to run the intel sgx rust sdk sample code on M1 chip even in simulation mode using docker?
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-996706774
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by Astewart1510 <no...@github.com.INVALID>.
> I am using sgx sdk on my MacBook Pro M1, and it failed with simulation mode with the following error:
>
> > Unknown host CPU architecture arm64
>
> From here it can be easily found that only x86 arch is supported. https://github.com/apache/incubator-teaclave-sgx-sdk/blob/master/buildenv.mk#L104
>
> Are there any plans for arm64 support?
This would be much needed …. Or some kind of workaround at least
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-998589663
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] Use simulation mode on MacOS (#318)
Posted by Han <no...@github.com.INVALID>.
I am using sgx sdk on my MacBook Pro M1, and it failed with simulation mode with the following error:
>Unknown host CPU architecture arm64
From here it can be easily found that only x86 arch is supported.
https://github.com/apache/incubator-teaclave-sgx-sdk/blob/master/buildenv.mk#L104
Are there any plans for arm64 support?
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-998521315
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>