Elaborate 'ccall' requires the compiler error message #45857
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently, I was building julia with USE_BINARYBUILDER_LLVM=0 in order to try out my own llvm fork. Since I had a higher glibc in my local machine, libllvm failed to load as libstdc++ inside julia/usr/lib was outdated.
However, since the error message from load_library was intentioanlly silenced (err paramter is 0), there was no helpful error message printed out. The actual error message I got was in the screenshot below. As it points to completely unreleated direction, I had to spend lot of hours to track down what was going on.
This pr makes it better by priting warning message to stdout when codegen library failed to load so that we can identify this kind of llvm load error right away.