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

Windows Issue #2

Open
kassane opened this issue Jun 19, 2024 · 0 comments
Open

Windows Issue #2

kassane opened this issue Jun 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kassane
Copy link
Owner

kassane commented Jun 19, 2024

MinGW (default)

CI: https://github.com/kassane/ffi-flang-zig/actions/runs/9570928586/job/26386797014#step:4:9

output error
install
+- install test
   +- zig test Debug native
      +- zig build-lib flang Debug native 2 errors
D:\a\ffi-flang-zig\ffi-flang-zig\src/runtime/io-error.cpp:121:10: error: no member named 'strerror_r' in the global namespace
D:\a\ffi-flang-zig\ffi-flang-zig\src/runtime/execute.cpp:168:9: error: no matching function for call to 'CreateProcessA'
C:\hostedtoolcache\windows\zig\0.14.0-dev.61\x86_64-windows\lib\libc\include\any-windows-any/processthreadsapi.h:284:23: note: expanded from macro 'CreateProcess'
C:\hostedtoolcache\windows\zig\0.14.0-dev.61\x86_64-windows\lib\libc\include\any-windows-any/_mingw_unicode.h:20:32: note: expanded from macro '__MINGW_NAME_AW'
<scratch space>:26:1: note: expanded from here
C:\hostedtoolcache\windows\zig\0.14.0-dev.61\x86_64-windows\lib\libc\include\any-windows-any/processthreadsapi.h:282:29: note: candidate function not viable: no known conversion from 'wchar_t *' to 'LPSTR' (aka 'char *') for 2nd argument

MSVC

CI: https://github.com/kassane/ffi-flang-zig/actions/runs/9586995986/job/26436122558#step:4:8

output error
install
+- install flang
   +- zig build-lib flang Debug native-windows-msvc 4 errors
:1:1: error: argument unused during compilation: '-nostdinc++'
D:\a\ffi-flang-zig\ffi-flang-zig\src/runtime/io-error.cpp:121:10: error: no member named 'strerror_r' in the global namespace
:1:1: error: argument unused during compilation: '-nostdinc++'
D:\a\ffi-flang-zig\ffi-flang-zig\src/runtime/execute.cpp:168:9: error: no matching function for call to 'CreateProcessA'
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um/processthreadsapi.h:400:24: note: expanded from macro 'CreateProcess'
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um/processthreadsapi.h:369:1: note: candidate function not viable: no known conversion from 'wchar_t *' to 'LPSTR' (aka 'char *') for 2nd argument

External References

@kassane kassane added the bug Something isn't working label Jun 19, 2024
@kassane kassane mentioned this issue Jun 19, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant