-
Notifications
You must be signed in to change notification settings - Fork 224
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
SPIRVError.cpp misses #include "LLVMSPIRVLib.h" #2376
Comments
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Feb 22, 2024
The prototype for `getErrorMessage()` is declared in `LLVMSPIRVLib.h`, but `SPIRVError.cpp` defining that function did not include `LLVMSPIRVLib.h`. This can be problematic for builds that use `-fvisibility=hidden`. Fixes KhronosGroup#2376
Thanks for reporting! Does #2377 fix the issue for you? |
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Feb 22, 2024
The prototype for `getErrorMessage()` is declared in `LLVMSPIRVLib.h`, but `SPIRVError.cpp` defining that function did not include `LLVMSPIRVLib.h`. This can be problematic for builds that use `-fvisibility=hidden`. Fixes KhronosGroup#2376
Yes. |
svenvh
added a commit
that referenced
this issue
Feb 23, 2024
The prototype for `getErrorMessage()` is declared in `LLVMSPIRVLib.h`, but `SPIRVError.cpp` defining that function did not include `LLVMSPIRVLib.h`. This can be problematic for builds that use `-fvisibility=hidden`. Fixes #2376
svenvh
added a commit
to svenvh/SPIRV-LLVM-Translator
that referenced
this issue
Feb 23, 2024
…sGroup#2377) The prototype for `getErrorMessage()` is declared in `LLVMSPIRVLib.h`, but `SPIRVError.cpp` defining that function did not include `LLVMSPIRVLib.h`. This can be problematic for builds that use `-fvisibility=hidden`. Fixes KhronosGroup#2376 (cherry picked from commit 81f78d2)
jsji
pushed a commit
to intel/llvm
that referenced
this issue
Feb 29, 2024
The prototype for `getErrorMessage()` is declared in `LLVMSPIRVLib.h`, but `SPIRVError.cpp` defining that function did not include `LLVMSPIRVLib.h`. This can be problematic for builds that use `-fvisibility=hidden`. Fixes KhronosGroup/SPIRV-LLVM-Translator#2376 Original commit: KhronosGroup/SPIRV-LLVM-Translator@81f78d24db36622
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The prototype for
getErrorMessage()
is declared inLLVMSPIRVLib.h
, the definition is inSPIRVError.cpp
.If I build with
-fvisibility=hidden
and some visibility "default" modifications (as described in #1963), this does not reach the compilation ofSPIRVError.cpp
since that does not include the header with the prototype.Noticed in branch
llvm_release_180
, so it's probably inmain
as well. Not sure if older branches are affected.The text was updated successfully, but these errors were encountered: