You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux: E_NOINTERFACE when using dynamic library #3097
I compiled dxc successfully on Linux, using master branch.
I wrote a simple c++ code that loads libdxcompiler.so.3.7 using dlopen, obtains DxcCreateInstanceProc using dlsym and attempts to create instance of IDxcUtils interface:
The returned HRESULT is 0x80004002 (E_NOINTERFACE No such interface supported).
Interestingly, if instead I load dynamic library from build artifacts, the return code is 0 (SUCCESS).
Why would it not work anymore with the latest locally built version?
Any help appreciated.
I'm also getting similar failure 0x80004002 when I call DXCoreCreateAdapterFactory, as CComPtr<IDXCoreAdapterFactory> pFactory; DXCoreCreateAdapterFactory(IID_PPV_ARGS(&pFactory));
This is ported from windows.
This fails only when I use this code in dynamic library. In normal cases this is success.
Please let me know if anybody solved this issue.
Interestingly, if instead I load dynamic library from build artifacts, the return code is 0 (SUCCESS).
Noticed this issue only just now, you're likely compiling it with gcc? This is not an issue on Clang which supports msvc extensions (what you pulled from build artifacts), but on other compilers These IIDs are emulated in a way that doesn't allow your usecase.
Activity
cbitsunil commentedon Sep 22, 2020
I'm also getting similar failure 0x80004002 when I call DXCoreCreateAdapterFactory, as
CComPtr<IDXCoreAdapterFactory> pFactory; DXCoreCreateAdapterFactory(IID_PPV_ARGS(&pFactory));This is ported from windows.
This fails only when I use this code in dynamic library. In normal cases this is success.
Please let me know if anybody solved this issue.
MarijnS95 commentedon Nov 13, 2020
Noticed this issue only just now, you're likely compiling it with gcc? This is not an issue on Clang which supports msvc extensions (what you pulled from build artifacts), but on other compilers These IIDs are emulated in a way that doesn't allow your usecase.
Should be fixed by #3062