Article ID: 000058009 Content Type: Product Information & Documentation Last Reviewed: 04/11/2022

Unable to Compile Intel® Software Guard Extensions (Intel® SGX) Enclave Using the Intel® SGX Trusted Pthread Library

Environment

Ubuntu*

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Four steps to integrate the Intel® SGX trusted pthread library with your Intel® SGX enclave Linux solution.

Description
  1. Added -lsgx_pthread to link options in Makefile
  2. Compiler could not find pthread_create() and other pthread function calls
Resolution
  1. Copy sgxsdk/include/sgx_pthread.edl to the Enclave source directory.
  2. In Enclave.edl, add: from "sgx_pthread.edl" import *;
  3. In Enclave.cpp, add: #include "pthread.h"
  4. In Makefile, add -lsgx_pthread to link statement

Related Products

This article applies to 1 products

Show all