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

error occurs when compile sgx sdk: array subscript fi is outside array bounds of ‘const ecall_info_t[0]’ #1044

Open
deerzhang opened this issue Aug 6, 2024 · 1 comment

Comments

@deerzhang
Copy link

when compile sgx sdk in branch sgx_2.4, an error occured as follows:

/opt/linux-sgx/sdk/switchless/src/sl_workers.c:78:68: 错误:array subscript fi is outside array bounds of ‘const ecall_info_t[0]’ [-Werror=array-bounds]
78 | const ecall_info_t* ecall_info = &g_ecall_table.ecall_table[fi];
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/opt/linux-sgx/sdk/switchless/src/sl_workers.c:60:21: 附注:while referencing ‘ecall_table’
60 | ecall_info_t ecall_table[0];
| ^~~~~~~~~~~
/opt/linux-sgx/sdk/switchless/src/sl_workers.c:78:68: 错误:array subscript fi is outside array bounds of ‘const ecall_info_t[0]’ [-Werror=array-bounds]
78 | const ecall_info_t* ecall_info = &g_ecall_table.ecall_table[fi];

@llly
Copy link
Contributor

llly commented Aug 9, 2024

Please use latest release tag sgx_2.24.

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