open-watcom / open-watcom-v2

Open Watcom V2.0 - Source code repository, Wiki, Latest Binary build, Archived builds including all installers for download.
Other
942 stars 157 forks source link

LTP: Open posix testsuite fails with OpenWatcom #1277

Open winspool opened 2 months ago

winspool commented 2 months ago

I found a POSIX testsuite in the LTP project and tried it with OpenWatcom: ( https://github.com/linux-test-project/ltp/tree/master/testcases/open_posix_testsuite )

PASSED: 672 FAILED: 1163


Some of the failures are from the usage of non portable gcc extensions

Example: "__attribute__" (I will look at this and contact the Linux Test Project)

Many failures are from unimplemented features in OpenWatcom. Examples: Error! E1011: Symbol '_SC_TIMER_MAX' has not been declared Error! E1011: Symbol '_POSIX_TIMER_MAX' has not been declared Error! E1055: Unable to open 'aio.h' Error! E1055: Unable to open 'mqueue.h'


Example References:

aio.h: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/aio.h.html

mqueue.h: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/mqueue.h.html


Full list of failures, when owcc is used:

_log_owcc_errors_2024.04.23.txt.gz

Please help, when you can.

winspool commented 2 months ago

The GCC extension "__attribute__" creates 458 test failures with owcc.

My pull request for a workaround: https://github.com/linux-test-project/ltp/pull/1154

The 'LTP' project prefers an Email (send with 'git send-email'), but unfortunately, 'git send-email' fails here. I'm looking at it.

jmalak commented 2 months ago

It is big task to implement most of POSIX. It depends on contributors to extend OW to be more POSIX compliant. POSIX requires mainly implement appropriate functions in run-time library and add appropriate header files. Now OW implement very "basic" part of POSIX functions.