I encountered the same problem and can confirm that it relates to GCC version. I get the error with GCC 10.1 and 10.2 but 9.3 works fine.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/313#issuecomment-791938552
