Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.
1448 Discussions

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

riclee
Beginner
2,448 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
2,422 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


0 Kudos
Sahira_Intel
Moderator
2,383 Views

Hi, 

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

How are you building this sample? 

0 Kudos
riclee
Beginner
1,557 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

 

0 Kudos
Sahira_Intel
Moderator
1,522 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


0 Kudos
riclee
Beginner
1,511 Views

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

0 Kudos
AnaWilliam850
New Contributor I
1,483 Views

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

0 Kudos
Reply