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

Trouble With Compiling Dependencies #355

Open
WillianJunior opened this issue Nov 17, 2021 · 2 comments
Open

Trouble With Compiling Dependencies #355

WillianJunior opened this issue Nov 17, 2021 · 2 comments

Comments

@WillianJunior
Copy link

I'm attempting to compile tag V0.2, but failing to resolve the 3rd party dependencies. More specifically, Halide. After running install_submodules.sh I encounter the following error:

I also tried to compile Halide manually, as advised by INSTALL.md with no success, as it breaks at tiramisu/3rdParty/Halide/Makefile:696:

ar: bin/build/llvm_objects/llvm_.o: No such file or directory

At last, I tried to compile Halide through cmake, which after some changes to CMakeFiles.txt it found the tiramisu/3rdParty/llvm dependency, but still failled to find some includes:

/home/willian/git/tiramisu/3rdParty/Halide/src/LLVM_Headers.h:18:10: fatal error: llvm/ExecutionEngine/JITEventListener.h: No such file or directory

I'm using Ubuntu 20.04, gcc 7.5.0 and cmake 3.16.3.
How should I proceed in order to compile the dependencies?

Thanks for the help

@WillianJunior
Copy link
Author

WillianJunior commented Nov 23, 2021

I' believe to have found the reason behind the "ar: bin/build/llvm_objects/llvm_.o: No such file or directory" problem: the Halide's Makefile.

The Makefile of Halide's tiramisu_64 branch (at 3rdParty) bundles multiple LLVM libs for libHalide.a. This list is compiled by line 670 of Makefile. However, this list is never used. I've changed line 696 to add argument "$(BUILD_DIR)/llvm_objects/list" instead of "$(BUILD_DIR)/llvm_objects/llvm_.o". This allows the compilation of Halide through install_submodules.sh.

Now, when trying to compile tiramisu, there are many linker errors similar to this:
/usr/bin/ld: libtiramisu.so: undefined reference to 'llvm::TargetIRAnalysis::TargetIRAnalysis()'

@kzwrime
Copy link

kzwrime commented Dec 16, 2021

@WillianJunior Do you solve the linkers errors? I experienced the same problem as you met. However, after running the install script again, the problem "ar: bin/build/llvm_objects/llvm_.o: No such file or directory" disappeared. After make tiramisu, I met many linkers errors /usr/bin/ld: libtiramisu.so: undefined reference to 'llvm::..... I have no idea how to solve the problem.

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