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

fix undefined reference to dlopen, etc #2957

Merged
merged 1 commit into from
Apr 4, 2019
Merged

fix undefined reference to dlopen, etc #2957

merged 1 commit into from
Apr 4, 2019

Conversation

junrushao
Copy link
Member

@junrushao junrushao commented Apr 3, 2019

Occasionally seeing complaints in the discussion forum about the following error:

libtvm.so: undefined reference to `dlopen'
libtvm.so: undefined reference to `dlclose'
libtvm.so: undefined reference to `dlerror'
libtvm.so: undefined reference to `dlsym'

This is due to missing -ldl when using compilers like clang. The more cmake way to address this should be adding the ${CMAKE_DL_LIBS} flag directly.

CC: @icemelon9

@junrushao junrushao marked this pull request as ready for review April 3, 2019 23:42
@junrushao
Copy link
Member Author

@icemelon9 Hey could you review?

@icemelon icemelon merged commit cefe07e into apache:master Apr 4, 2019
@icemelon
Copy link
Member

icemelon commented Apr 4, 2019

Thanks @junrushao1994

wweic pushed a commit to wweic/tvm that referenced this pull request Apr 7, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Apr 7, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Apr 8, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Apr 10, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Apr 11, 2019
@junrushao junrushao deleted the fix-ldl branch January 6, 2022 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants