Code Monkey home page Code Monkey logo

Comments (3)

Buhadod avatar Buhadod commented on September 25, 2024

Maybe the issue that PCL dose not support the latest version of intel-sgx-sdk. So I've installed version 2.1. and I got these errors now.

$ make
GEN  =>  Seal/Seal_t.c
CC   <=  Seal/Seal_t.c
CXX  <=  Seal/Seal.cpp
g++ Seal/Seal_t.o Seal/Seal.o -o Seal.so -m64 -O0 -g -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L/home/david/_abdulla/sgxsdk/lib64 -Wl,--whole-archive -lsgx_trts -Wl,--no-whole-archive -Wl,--start-group -lsgx_tstdc -lsgx_tcxx -lsgx_tcrypto -lsgx_tservice -Wl,--end-group -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-pie,-eenclave_entry -Wl,--export-dynamic -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections -Wl,--version-script=Enclave/Enclave.lds
LINK =>  Seal.so
<EnclaveConfiguration>
    <ProdID>0</ProdID>
    <ISVSVN>0</ISVSVN>
    <StackMaxSize>0x40000</StackMaxSize>
    <HeapMaxSize>0x100000</HeapMaxSize>
    <TCSNum>10</TCSNum>
    <TCSPolicy>1</TCSPolicy>
    <!-- Recommend changing 'DisableDebug' to 1 to make the enclave undebuggable for enclave release -->
    <DisableDebug>0</DisableDebug>
    <MiscSelect>0</MiscSelect>
    <MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>
tcs_num 10, tcs_max_num 10, tcs_min_pool 1
The required memory is 3997696B.
Succeed.
SIGN =>  Seal.signed.so
GEN  =>  App/Seal_u.c
CC   <=  App/Seal_u.c
GEN  =>  App/Enclave_u.c
CC   <=  App/Enclave_u.c
App/App.cpp:137:9: error: ‘SGX_ERROR_PCL_ENCRYPTED’ was not declared in this scope
         SGX_ERROR_PCL_ENCRYPTED,
         ^
App/App.cpp:142:9: error: ‘SGX_ERROR_PCL_NOT_ENCRYPTED’ was not declared in this scope
         SGX_ERROR_PCL_NOT_ENCRYPTED,
         ^
App/App.cpp:147:9: error: ‘SGX_ERROR_PCL_MAC_MISMATCH’ was not declared in this scope
         SGX_ERROR_PCL_MAC_MISMATCH,
         ^
App/App.cpp:152:9: error: ‘SGX_ERROR_PCL_SHA_MISMATCH’ was not declared in this scope
         SGX_ERROR_PCL_SHA_MISMATCH,
         ^
App/App.cpp:157:9: error: ‘SGX_ERROR_PCL_GUID_MISMATCH’ was not declared in this scope
         SGX_ERROR_PCL_GUID_MISMATCH,
         ^
App/App.cpp: In function ‘sgx_status_t initialize_enclave(const char*, sgx_enclave_id_t*)’:
App/App.cpp:299:107: error: ‘sgx_create_encrypted_enclave’ was not declared in this scope
     ret = sgx_create_encrypted_enclave(file_name, SGX_DEBUG_FLAG, &token, &updated, eid, NULL, sealed_blob);

Any clue ?

from linux-sgx-pcl.

Neo-Outis avatar Neo-Outis commented on September 25, 2024

Hi, have u solved this problem yet ? I also meet this problem.

from linux-sgx-pcl.

Neo-Outis avatar Neo-Outis commented on September 25, 2024

Oh, just found sizefunc, and simply replace that works

from linux-sgx-pcl.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.