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

Fix linux-sgx build error when libc-wasi is disabled #2997

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

wenyongh
Copy link
Contributor

@wenyongh wenyongh commented Jan 11, 2024

Compilation error was reported when cmake -DWAMR_BUILD_LIBC_WASI=0
on linux-sgx platform:

core/shared/platform/linux-sgx/sgx_socket.c:8:10: fatal error: libc_errno.h: No such file or directory
    8 | #include "libc_errno.h"
      |          ^~~~~~~~~~~~~~

After fixing, both cmake -DWAMR_BUILD_LIBC_WASI=1 and WAMR_BUILD_LIBC_WASI=0
work good.

@wenyongh wenyongh merged commit 3198018 into bytecodealliance:main Jan 11, 2024
393 checks passed
@wenyongh wenyongh deleted the fix_sgx_wasi branch January 11, 2024 06:31
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…e#2997)

Compilation error was reported when `cmake -DWAMR_BUILD_LIBC_WASI=0`
on linux-sgx platform:
```
core/shared/platform/linux-sgx/sgx_socket.c:8:10:
fatal error: libc_errno.h: No such file or directory
    8 | #include "libc_errno.h"
      |          ^~~~~~~~~~~~~~
```
After fixing, both `cmake -DWAMR_BUILD_LIBC_WASI=1` and
`WAMR_BUILD_LIBC_WASI=0` work good.
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

Successfully merging this pull request may close these issues.

1 participant