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

Cannot make sdk, GLIBC error #1026

Open
elouanjef opened this issue Mar 28, 2024 · 0 comments
Open

Cannot make sdk, GLIBC error #1026

elouanjef opened this issue Mar 28, 2024 · 0 comments

Comments

@elouanjef
Copy link

elouanjef commented Mar 28, 2024

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]: *** [<builtin>: 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 ?

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

1 participant