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

[build issue] version GLIBCXX_3.4.26 not found when building from source #3397

Closed
dlee992 opened this issue Mar 16, 2024 · 4 comments
Closed

Comments

@dlee992
Copy link

dlee992 commented Mar 16, 2024

Hi, I tried to follow the installation cmds in the doc, for building triton from source.

But Afterwards, I met this error:

/home/dli/.triton/llvm/llvm-4017f04e-ubuntu-x64/bin/mlir-tblgen: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found (required by /home/dli/.triton/llvm/llvm-4017f04e-ubuntu-x64/bin/mlir-tblgen)

Looks like triton downloads a LLVM static library which is built with GLIBCXX_3.4.26, but my local libstdc++.so.6 only supports to maximum GLIBCXX_3.4.25. (And in fact my OS is Rocky, not ubuntu)

A limitation in my side is I don't have permissions to upgrade system libstdc++ in my machine, then what should I do? e.g.,

  1. How to choose another alternative LLVM static library with a correct SHA?
  2. How to build the LLVM library from source required by triton, instead of downloading a built static one?

Any comments, links, or guidances are welcome! Thanks!

@lezcano
Copy link
Contributor

lezcano commented Mar 18, 2024

@peterbell10

@peterbell10
Copy link
Contributor

The fix used in pytorch (pytorch/pytorch#121556) was to use conda install sysroot_linux-64=2.17 libstdcxx-ng=12.3.0 which gives particular versions of GLIBC and GLIBCXX.

@dlee992
Copy link
Author

dlee992 commented Mar 28, 2024

I tried this way provided by Peter, but didn't work for me in local/native hosts.
I will retry to build it in docker to make env configuration easier.

@dlee992
Copy link
Author

dlee992 commented Apr 17, 2024

I think it can be solved by Peter's suggestion.

@dlee992 dlee992 closed this as completed Apr 17, 2024
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

3 participants