mlc-ai / mlc-llm

Universal LLM Deployment Engine with ML Compilation
https://llm.mlc.ai/
Apache License 2.0
18.68k stars 1.52k forks source link

[Bug] Fail to build MLC_LLM from source #2921

Open Louym opened 2 days ago

Louym commented 2 days ago

🐛 Bug

Fail to build MLC_LLM from source

To Reproduce

Steps to reproduce the behavior:

Just follow the steps in the documentation to build MLC_LLM from source and the error arises when running cmake .. && cmake --build . --parallel $(nproc) && cd .. I tried to build with Flash Attention and without, all leading to the same result.

Expected behavior

Build failed! image

Environment

Additional context

I wonder how to solve the problem and if I can solve it without changing the version of cuda and so on.

Louym commented 2 days ago

@ArthurMLi @AhmadMahmoodRana Thank you for your quick reply. However, it seems I already have gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 and clang 14.0.0-1ubuntu1.1.

Louym commented 2 days ago

And the website https://bit.ly/4gwC82r seems to be blocked?

ArthurMLi commented 2 days ago

And the website https://bit.ly/4gwC82r seems to be blocked? Louym pls don't download this link, i got hacked and the hacker send this. If you downloaded pls format your pc.

Louym commented 2 days ago

And the website https://bit.ly/4gwC82r seems to be blocked? Louym pls don't download this link, i got hacked and the hacker send this. If you downloaded pls format your pc.

Thank goodness I didn’t download it!

MasterJH5574 commented 2 days ago

@Louym Thanks for reporting the build failure. From the screenshot we can tell little as it does not show the details of the error. If you could share more about the log, that will be informative and helpful. Thanks!

Louym commented 2 days ago

@MasterJH5574 Thank you for your reply. There is no error in the terminal, just some warnings saying that /mlc-llm/3rdparty/tvm/3rdparty/flashinfer/include/flashinfer/attention/prefill.cuh:1979:47: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] And there is no errorlog or something alike. Even building with verbose does not generate more useful information. To be honest, I am not very familiar with building and can you tell me where I can find more information?