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

Mac OS intallation problem #415

Closed
melodylylin opened this issue Sep 4, 2021 · 8 comments
Closed

Mac OS intallation problem #415

melodylylin opened this issue Sep 4, 2021 · 8 comments

Comments

@melodylylin
Copy link

melodylylin commented Sep 4, 2021

Hi, I'm currently on MacBook Pro with MacOS BigSur, and I did Conda install wget and cmake, however, I have another error.

"vtable for llvm::raw_string_ostream", referenced from:
TVM::codegen::LLVMModuleNode::GetSource(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in llvm_module.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [lib/libhcl.dylib] Error 1
make: *** [build-tvm] Error 2

@seanlatias
Copy link
Collaborator

Are you using your own LLVM or you are using the LLVM installed by HeteroCL?

@seanlatias
Copy link
Collaborator

Can you also try to install from source?

@melodylylin
Copy link
Author

I’m not quite sure, but I think I’m using the one installed by HeteroCL, is there anywhere to check?

@melodylylin
Copy link
Author

I tried to redo the install from source again, and also edit the LLVM config, to let it use the version that is installed by HeteroCL, still have the same error.

@seanlatias
Copy link
Collaborator

Hmmm... Because from the error message it's related to LLVM. Do you have a more complete error message?

@seanlatias
Copy link
Collaborator

Can you also describe how you install from source? You just need to clone the repo and run make. No other things need to be done.

@seanlatias
Copy link
Collaborator

One thing you can also try is to install g++. Mac uses clang by default. And when running make, set the CXX variable by using make CXX=/path/to/g++.

@melodylylin
Copy link
Author

Hi, so I just tried on the MacBook Pro 16 inches with intel chip and same OS system, it works fine. I guess it's the M1 chip problem on MacBook Pro 13 inches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants