taichi icon indicating copy to clipboard operation
taichi copied to clipboard

Taichi Legacy cmake returning errors

Open aagrawal05 opened this issue 2 years ago • 7 comments

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 avatar Aug 27 '22 09:08 aagrawal05

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

strongoier avatar Aug 29 '22 08:08 strongoier

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?

aagrawal05 avatar Aug 29 '22 13:08 aagrawal05

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!

bobcao3 avatar Aug 29 '22 19:08 bobcao3

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

aagrawal05 avatar Aug 30 '22 11:08 aagrawal05

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

bobcao3 avatar Aug 30 '22 17:08 bobcao3

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

strongoier avatar Sep 05 '22 02:09 strongoier

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.

aagrawal05 avatar Sep 06 '22 10:09 aagrawal05

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

strongoier avatar Nov 11 '22 10:11 strongoier