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

[BUG]: MAX nightly GLIBCXX_3.4.30 linker errors with conda #218

Open
ehsanmok opened this issue Sep 5, 2024 · 0 comments
Open

[BUG]: MAX nightly GLIBCXX_3.4.30 linker errors with conda #218

ehsanmok opened this issue Sep 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ehsanmok
Copy link
Member

ehsanmok commented Sep 5, 2024

Bug description

Installing MAX nightly using conda fails with GLIBCXX_3.4.30 linker errors. Steps to reproduce are below.

Installing these dependencies works for linux but aren't available on mac.

 conda install -c conda-forge libgcc-ng libstdcxx-ng -y

resolved the issue.

Confirming this is conda issue only and magic works as expected.

Steps to reproduce

conda create -n max-bare-conda python=3.12 -y
conda activate max-bare-conda
conda install max -c conda-forge -c https://conda.modular.com/max-nightly -y

python -c "from max import engine; print(engine.__version__)"

git clone -b nightly https://github.com/modularml/max

then cd max/examples/inference/bert-c-torchscript or bert-mojo-torchscript and bash run.sh fails with

/usr/bin/ld: /home/ubuntu/miniconda3/envs/max-bare-conda/lib/libmodular-framework-common.so: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/bert.dir/build.make:105: bert] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/bert.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

System information

- What OS did you do install MAX on ? Ubuntu 22.04
- Provide version information for MAX by pasting the output of max -v`: `2024.9.405`
- Provide version information for Mojo by pasting the output of mojo -v`: `2024.9.405`
- Provide Modular CLI version by pasting the output of `modular -v`
@ehsanmok ehsanmok added the bug Something isn't working label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant