-
Notifications
You must be signed in to change notification settings - Fork 838
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
Fixes for Watcom compiler and new CI test #8391
base: master
Are you sure you want to change the base?
Conversation
Below is Github Action definition file modified to automate any host and any target with Open Watcom toolchain by matrix.
|
Wonderful! I'll give this a try. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve merge conflict
Hi @dgarske, I have prepared regular fixes for Open Watcom against current version of WolfSSL repository that All build of WolfSSL is going OK for Windows multi-threaded version (32-bit). Thanks Jiri |
Hi Jiri, We'd love to get it working with the C89 compliance level, since we have customers using that even with Watcom C. I am about to rebase this PR and force push to resolve a merge conflict. You are welcome to share a patch and I can add it. OR Thanks, |
OK I will separate fixes relate to C89, it is mainly initilization by non-constant values and sometimes definition of variables in code. |
In your PR I recommend trying to remove the |
OK I will try.
Open Watcom fixes requires C89 fixes and winsock too or some alternative solution Build tested with Open Watcom 1.9 and 2.0 !! it is fixes only for Windows target !! There is some duplication code for thread support, but it is prepared for OS/2 build changes. Now it is same as for Microsoft compilers with small differences. |
Sorry, one mistake. |
* Correct cmake script to support Open Watcom toolchain (wolfSSL#8167) * Fix thread start callback prototype for Open Watcom toolchain (wolfSSL#8175) * Added GitHub CI action
@jmalak let me know if you have suggestions to fix:
|
I am running CMake by command cmake -B build -G "Watcom WMake" -D CMAKE_VERBOSE_MAKEFILE=TRUE -D CMAKE_SYSTEM_NAME=Windows -D CMAKE_SYSTEM_PROCESSOR=x86 -D WOLFSSL_ASM=no -DCMAKE_BUILD_TYPE=Release I will check with your setup, it looks like some mistake if single-thread configuration is used, I didn't check I am building multi-threaded version only on Windows |
You should fix wc_port.h to contains windows.h for both multi and single threaded build
|
I got following results on Windows now
and benchmarks
It is pure C code without assembler code. |
I am in trouble with Linux target. Why WolfSSL touch |
@dgarske
multi-threaded version
|
And benchmark for single-threaded linux build
and multi-threaded Linux build
|
I enclosed last changes, I completely separate Open Watcom code for thread support because it was spread over WolfSSL on different places. |
Now remains OS/2 implementation, it take me more time because there will be necessary to create new OS/2 specific code (interface with OS). |
Description
Thank you @jmalak for your help with this.
Testing
See new CI test
Checklist