intel / intel/confidential-computing.sgx.sdk
Cannot make sdk, GLIBC error
- Dominant language
- C++
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Hi, when running "make sdk", I'm getting this error from ukey_exchange.cpp:
```
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:586,
from /usr/include/c++/11/cstdlib:41,
from /usr/include/c++/11/stdlib.h:36,
from ukey_exchange.cpp:41:
/usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:44:19: error: missing binary operator before token "("
44 | #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
| ^
/usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:53:20: error: missing binary operator before token "("
53 | # if __GLIBC_PREREQ(2, 27)
| ^
/usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:65:20: error: missing binary operator before token "("
65 | # if __GLIBC_PREREQ(2, 34)
| ^
make[3]: *** [: ukey_exchange.o] Error 1
make[3]: Leaving directory '/home/xxx/sgx/linux-sgx/sdk/ukey_exchange'
make[2]: *** [Makefile.source:249: ukey_exchange] Error 2
make[2]: Leaving directory '/home/xxx/sgx/linux-sgx/sdk'
make[1]: *** [Makefile:50: all] Error 2
make[1]: Leaving directory '/home/xxx/sgx/linux-sgx/sdk'
make: *** [Makefile:69: sdk_no_mitigation] Error 2
```
Platform info:
```
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 39 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: GenuineIntel
BIOS Vendor ID: Intel(R) Corporation
Model name: Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
BIOS Model name: Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
CPU family: 6
Model: 142
Thread(s) per core: 2
Core(s) per socket: 4
```
```
# cpuid | grep SGX1
SGX1 supported = true
```
```
cpuid | grep SGX2
SGX2 supported = false
```
Can anyone help me ?
Contributor guide
Assessment
This issue has not been assessed yet.