Skip to content

Populate dlopen error message - #2525

Merged
asaadaldien merged 1 commit into
mainfrom
ataei-update-dylib-execute-abi
Jul 15, 2020
Merged

asaadaldien merged 1 commit into
mainfrom
ataei-update-dylib-execute-abi

Conversation

@asaadaldien

Copy link
Copy Markdown
Contributor

Emits actual message describing the error.

Comment thread iree/base/dynamic_library_posix.cc Outdated

return UnavailableErrorBuilder(IREE_LOC)
<< "Unable to open dynamic library, not found on search paths";
<< "Unable to open dynamic library:" << dlerror();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a space help between the colon and the error message? You could also wrap it in quotes, depending on how it is formatted:

Suggested change
<< "Unable to open dynamic library:" << dlerror();
<< "Unable to open dynamic library: '" << dlerror() << "'";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Here how it look now

Unable to open dynamic library:'dlopen failed: library "libc++_shared.so" not found'

@asaadaldien
asaadaldien force-pushed the ataei-update-dylib-execute-abi branch from a895239 to 0488b79 Compare July 15, 2020 05:38
@asaadaldien asaadaldien added the runtime Relating to the IREE runtime library label Jul 15, 2020
@asaadaldien
asaadaldien merged commit 50d264b into main Jul 15, 2020
@asaadaldien
asaadaldien deleted the ataei-update-dylib-execute-abi branch July 15, 2020 06:11
@ScottTodd ScottTodd mentioned this pull request Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants