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

Skip dlopen test on Windows for now. #35

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

ScottTodd
Copy link
Member

Logs:

[build] [15/123   4% :: 0.278] Building C object CMakeFiles\dlopen-hip.dir\tests\dlopen-hip.c.obj
[build] FAILED: CMakeFiles/dlopen-hip.dir/tests/dlopen-hip.c.obj
[build] ccache C:\PROGRA~2\MICROS~2\2022\BUILDT~1\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG -MD /showIncludes /FoCMakeFiles\dlopen-hip.dir\tests\dlopen-hip.c.obj /FdCMakeFiles\dlopen-hip.dir\ /FS -c D:\projects\TheRock\tests\dlopen-hip.c
[build] D:\projects\TheRock\tests\dlopen-hip.c(1): fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory

The https://github.com/nod-ai/TheRock/blob/main/tests/dlopen-hip.c file is using a Unix header for dlopen of a shared object file. On Windows, an API like https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibrarya is typically used to open a DLL instead.

Logs:
```
[build] [15/123   4% :: 0.278] Building C object CMakeFiles\dlopen-hip.dir\tests\dlopen-hip.c.obj
[build] FAILED: CMakeFiles/dlopen-hip.dir/tests/dlopen-hip.c.obj
[build] ccache C:\PROGRA~2\MICROS~2\2022\BUILDT~1\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG -MD /showIncludes /FoCMakeFiles\dlopen-hip.dir\tests\dlopen-hip.c.obj /FdCMakeFiles\dlopen-hip.dir\ /FS -c D:\projects\TheRock\tests\dlopen-hip.c
[build] D:\projects\TheRock\tests\dlopen-hip.c(1): fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory
```
@ScottTodd ScottTodd merged commit 7030216 into nod-ai:main Jan 30, 2025
1 check passed
@ScottTodd ScottTodd deleted the windows-dlopen branch January 30, 2025 21:50
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.

2 participants