stress-sgx icon indicating copy to clipboard operation
stress-sgx copied to clipboard

Errors while compiling with sdk-2.6

Open harpreetsc1992 opened this issue 3 years ago • 0 comments

Hello, I am trying to compile stress-sgx with sdk-2.6. The sdk, psw and driver are compiled/installed with default settings in the Makefile, i.e. to say Makefile has not been modified.

I am using gcc-7.5 on Linux kernel 4.18.0-25-generic and Ubuntu 18.04.

These are the errors that I get while I compile in the root directory of stress-sgx using: make SGX_DEBUG=0 SGX_PRERELEASE=1 SGX_MODE=HW

... Some error-less compilation ...

make[3]: Leaving directory '~/stress-sgx/sgx/enclave_cpu'

make -C ./linux-sgx/Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXTrustedStaticLibrary/makefiles/c++ -f sgx_t_static.mk all; make -C ./linux-sgx/Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXTrustedStaticLibrary/makefiles/c -f sgx_t_static.mk all;

make[3]: Entering directory '~/stress-sgx/linux-sgx/Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXTrustedStaticLibrary/makefiles/c++'

make[3]: *** No rule to make target 'static_trusted/.edl', needed by 'static_trusted/_t.h'. Stop.

make[3]: Leaving directory '~/stress-sgx/linux-sgx/Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXTrustedStaticLibrary/makefiles/c++'

make[3]: Entering directory '~/stress-sgx/linux-sgx/Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXTrustedStaticLibrary/makefiles/c'

make[3]: *** No rule to make target 'static_trusted/.edl', needed by 'static_trusted/_t.h'. Stop.

make[3]: Leaving directory '~/stress-sgx/linux-sgx/Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXTrustedStaticLibrary/makefiles/c'

sgx/Makefile:27: recipe for target 'all' failed

make[2]: *** [all] Error 2

make[2]: Leaving directory '~/stress-sgx'

Makefile:326: recipe for target 'enclave_cpu.signed.so' failed

make[1]: *** [enclave_cpu.signed.so] Error 2

make[1]: Leaving directory '~/stress-sgx'

Makefile:300: recipe for target 'all_config' failed

make: *** [all_config] Error 2

~ is just the overall path where stress-sgx was cloned.

Can someone please help me in resolving this error?

Thanks

harpreetsc1992 avatar Dec 01 '22 22:12 harpreetsc1992