Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1351 Discussions

on windows 10, get errors using visual stdio to build the sealunseal sample

riclee
Beginner
1,762 Views

when I build the sample code 'sealandunseal' on windows by visual stdio ,I got this errors:

 

 

riclee_0-1670689581857.png

error output:

1>------ 已启动全部重新生成: 项目: Enclave_Seal, 配置: Debug x64 ------
2>------ 已启动全部重新生成: 项目: Enclave_Unseal, 配置: Debug x64 ------
1>Generate enclave test key
2>Generate enclave test key
1>Creating proxy/bridge routines
2>Creating proxy/bridge routines
1>系统找不到指定的路径。
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: “cmd.exe”已退出,代码为 3。
1>已完成生成项目“Enclave_Seal.vcxproj”的操作 - 失败。
2>系统找不到指定的路径。
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: “cmd.exe”已退出,代码为 3。
2>已完成生成项目“Enclave_Unseal.vcxproj”的操作 - 失败。
3>------ 已启动全部重新生成: 项目: App, 配置: Debug x64 ------
3>Creating untrusted proxy/bridge routines
3>系统找不到指定的路径。
3>Creating untrusted proxy/bridge routines
3>系统找不到指定的路径。
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: “cmd.exe”已退出,代码为 3。
3>已完成生成项目“App.vcxproj”的操作 - 失败。
========== 全部重新生成: 成功 0 个,失败 3 个,跳过 0 个 ==========

 

 

but I can success to build the example 'SampleEnclave' . so maybe something configs wrong in 'SealAndUnseal' sample or I miss some configs.

0 Kudos
6 Replies
KFPW_Intel
Moderator
1,736 Views

Hi,

 

Thank you for your interest in Intel® SGX.

 

I am looking into this SealUnseal sample on the visual studio and will get back to you shortly.

 

Regards,

Ken


Sahira_Intel
Moderator
1,697 Views

Hi, 

The error messages here are not helpful in identifying what the issue could be. 

How are you building this sample? 

riclee
Beginner
871 Views

I use visual stdio 2017,  open the sample project in the nuget package

riclee_4-1671365425360.png

riclee_5-1671365464594.png

 

then build the SealUnseal project as the following step:

click the project App, and right click,click build

riclee_0-1671363818120.png

then,got such errors output:

riclee_1-1671363853609.png

,the error says "The system cannot find the path specified",  I don't what is the path and how to configure it .

 

but,the same operation on 'SampleEnclave' goes well.

riclee_2-1671363915759.png

 

Sahira_Intel
Moderator
836 Views

Hi,

I am trying to reproduce this error, but am not able to. This is a system error, not necessarily an SGX SDK error.

Other VS users have reported similar errors, and it seems like it is resolved with Visual Studio 2019. Are you able to upgrade your VS version?


Sincerely,

Sahira


riclee
Beginner
825 Views

Thank you ,I 'll update the VS to 2019 and try.

AnaWilliam850
Novice
797 Views

thank you for your answer, I will try all this sugeretion

Reply