Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux - build_sgxssl.sh with latest sdk #16

Closed
dpreilan opened this issue Feb 14, 2018 · 1 comment
Closed

Linux - build_sgxssl.sh with latest sdk #16

dpreilan opened this issue Feb 14, 2018 · 1 comment

Comments

@dpreilan
Copy link

I am using sgx_linux_x64_sdk_2.1.101.42529.bin and latest from this project.

The logic in build_sgxssl.sh around setting SGXSDK_VERSION is causing a later error attempting to build openssl.

if [[ $# -gt 0 ]] && [[ $1 == "linux-sgx" || $2 == "linux-sgx" ]] ; then
LINUX_BUILD_FLAG=LINUX_SGX_BUILD=1
SGXSDK_VERSION=/bin/grep -m 1 "STRFILEVER" ../../common/inc/internal/se_version.h | /bin/grep -o -E "[1-9]\.[0-9]"
SGX_SDK_LIBS_PATH=../../build/linux
else
LINUX_BUILD_FLAG=LINUX_SGX_BUILD=0
SGX_SDK=/opt/intel/sgxsdk
SGXSDK_VERSION=/bin/grep -m 1 "Version:" $SGX_SDK/pkgconfig/libsgx_urts.pc | /bin/grep -o -E "[1-9]\.[0-9]"
if [ -f $SGX_SDK/environment ]; then
source $SGX_SDK/environment || clean_and_ret 1
else
echo "In order to run this script, Intel® Software Guard Extensions SDK 1.7 must be installed on this machine, and SGX_SDK (in this script) must be set to the installation location"
clean_and_ret 1
fi
fi

==============================================================
Test:

/bin/grep -m 1 "Version:" $SGX_SDK/pkgconfig/libsgx_urts.pc | /bin/grep -o -E "[1-9].[0-9]"
2.1
1.4

@akryeem-INTC
Copy link
Contributor

Issue fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants