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

Taichi Legacy cmake returning errors #5895

Closed
aagrawal05 opened this issue Aug 27, 2022 · 9 comments
Closed

Taichi Legacy cmake returning errors #5895

aagrawal05 opened this issue Aug 27, 2022 · 9 comments
Assignees
Labels
potential bug Something that looks like a bug but not yet confirmed

Comments

@aagrawal05
Copy link

aagrawal05 commented Aug 27, 2022

Describe the bug
When installing taichi from the legacy branch, lots of errors when building on cmake

To Reproduce
cloning and running install.py --> https://github.com/taichi-dev/taichi/blob/legacy/install.py
or equivalently from following https://github.com/taichi-dev/taichi/blob/5ab90f03ef37701506c7034c3f1955d225b39957/docs/installation.rst

Log/Screenshots
https://pastebin.com/xqGQc4iB

Additional comments
Running on Ubuntu 22.04

@aagrawal05 aagrawal05 added the potential bug Something that looks like a bug but not yet confirmed label Aug 27, 2022
@taichi-gardener taichi-gardener moved this to Untriaged in Taichi Lang Aug 27, 2022
@strongoier
Copy link
Contributor

Hi @aagrawal05. Could you try compiling with clang? My environment is Ubuntu 20.04 & clang++-8 and I can successfully build the legacy branch.

@aagrawal05
Copy link
Author

aagrawal05 commented Aug 29, 2022

Ok, edited the CMakeLists.txt and built again with clang++14. Gives a different error.
https://pastebin.com/Z4Tp3t90
Should I try again with a lower version of clang?

@bobcao3
Copy link
Collaborator

bobcao3 commented Aug 29, 2022

Ok, edited the CMakeLists.txt and built again with clang++14. Gives a different error. https://pastebin.com/Z4Tp3t90 Should I try again with a lower version of clang?

Yes, maybe clang 10 or 8 if possible!

@aagrawal05
Copy link
Author

aagrawal05 commented Aug 30, 2022

Ok, so I've tried with clang++-11 which seems to be the lowest that 22.04 can install and gives the same error as clang++-14. I'll try building from source but is there any other way to compile this? Or alternatively could you please direct me on how to install clang++-8 or 10 on Ubuntu 22.04? Thanks in advance

@bobcao3
Copy link
Collaborator

bobcao3 commented Aug 30, 2022

Our installation document provides a clang10 tool chain that you can use

@strongoier strongoier self-assigned this Sep 2, 2022
@strongoier strongoier moved this from Untriaged to In Progress in Taichi Lang Sep 2, 2022
@strongoier
Copy link
Contributor

Hi @aagrawal05. If you haven't succeeded yet, could you try Ubuntu 20.04 (in docker if you don't have another environment)?

@aagrawal05
Copy link
Author

Alright, I'll try that.
Sorry for not replying, got busy with some school work.
I'll update you guys whether I managed to get it working hopefully this week.

@strongoier
Copy link
Contributor

I assume the problem has been resolved so I'm closing this issue. Feel free to reopen if you meet further problems.

Repository owner moved this from In Progress to Done in Taichi Lang Nov 11, 2022
@Hal-Zhaodong-Yang
Copy link

Are you able to solve the issue? I'm still having the same issue even switching to clang10 on ubuntu20.04 by changing the "g++" to "clang" in the install.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential bug Something that looks like a bug but not yet confirmed
Projects
Status: Done
Development

No branches or pull requests

4 participants