Describe the bug
POSIX-compatible tests are broken for ARCMWDT compiler. Some types are not presented in MW library, some types mismatch with defined in Zephyr.
To Reproduce
Steps to reproduce the behavior:
export ZEPHYR_TOOLCHAIN_VARIANT=arcmwdt
west build -p -b nsim/nsim_em tests/posix/headers/ -T portability.posix.headers.arcmwdtlib.without_posix_api
See error
Expected behavior
Clean build with no errors
Logs and console output
/home/user/sandbox/zephyrproject/zephyr/include/zephyr/posix/posix_types.h:24:13: error: typedef redefinition with different types ('int' vs 'long')
24 | typedef int pid_t;
| ^
/home/user/ARC_202406rc1/MetaWare/arc/inc/sys/types.h:63:19: note: previous definition is here
63 | typedef long pid_t;
| ^
1 error generated.
and
/home/user/sandbox/zephyrproject/zephyr/include/zephyr/posix/aio.h:24:18: error: field has incomplete type 'struct sigevent'
24 | struct sigevent aio_sigevent;
| ^
/home/user/sandbox/zephyrproject/zephyr/include/zephyr/posix/aio.h:24:9: note: forward declaration of 'struct sigevent'
24 | struct sigevent aio_sigevent;
| ^
1 error generated.
Environment (please complete the following information):
Describe the bug POSIX-compatible tests are broken for ARCMWDT compiler. Some types are not presented in MW library, some types mismatch with defined in Zephyr.
To Reproduce Steps to reproduce the behavior:
export ZEPHYR_TOOLCHAIN_VARIANT=arcmwdt
west build -p -b nsim/nsim_em tests/posix/headers/ -T portability.posix.headers.arcmwdtlib.without_posix_api
Expected behavior Clean build with no errors
Logs and console output
and
Environment (please complete the following information):