kcl-lang / kcl

KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io
https://kcl-lang.io
Apache License 2.0
1.67k stars 118 forks source link

NO clang-12 on debian #1332

Closed warjiang closed 5 months ago

warjiang commented 5 months ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

follow the instructions in quick_start.md.

when install dependencies of clang & llvm, errors occured likes: image The building system is debian 11. After searching the pkg pages of debian, lld-12 package does not exist under Debian system: image

But lld-12 can be found on ubuntu packages: image

2. What did you expect to see? (Required)

Seperate build instruction for debian and ubuntu if no maintainer for lld-12 on debian system. Before build kcl on debian system, users maybe need to build llvm manually.

3. What did you see instead (Required)

no package for lld-12 error

E: Package 'clang-12' has no installation candidate
E: Unable to locate package lld-12

4. What is your KCL components version? (Required)

branch master

warjiang commented 5 months ago

I found devcontainer inside this repo, with devcontainer, everything about environment is so easy, i found that the devcontainer.json missing one most important vscode extension: rust-analyzer, is it necessary to add it(currently it seems very useful for me) image

Peefy commented 5 months ago

I found devcontainer inside this repo, with devcontainer, everything about environment is so easy, i found that the devcontainer.json missing one most important vscode extension: rust-analyzer, is it necessary to add it(currently it seems very useful for me) image

@warjiang Thank you! I will update the dev guide to avoid installation issues with llvm-12 on Debian. It would be great if you could open PR to update devcontainer.json with the necessary VS Code plugins. ❤️

excalq commented 4 months ago

Also trying to build KCL (as a locally installable release), in Ubuntu 24.04, and not having much success with ./scripts/build-llvm/build.sh 12.x given many old C++ dependencies. Just curious how big task upgrading KCL's LLVM version is? Alternatively getting more detail in the docs about building without LLVM - though it looks like it's a requirement for building a usable "release"?

warjiang commented 4 months ago

Also trying to build KCL (as a locally installable release), in Ubuntu 24.04, and not having much success with ./scripts/build-llvm/build.sh 12.x given many old C++ dependencies. Just curious how big task upgrading KCL's LLVM version is? Alternatively getting more detail in the docs about building without LLVM - though it looks like it's a requirement for building a usable "release"?

@excalq It's the problem of apt repo, I've tested searching by conditions os=noble and keyword=llvm https://packages.ubuntu.com/search?keywords=LLVM&searchon=names&suite=noble&section=all , and no llvm-12 occurs. You can search it with ubuntu22 https://packages.ubuntu.com/search?keywords=LLVM&searchon=names&suite=jammy&section=all image

So many problems with llvm and apt repo, i ithink you can try to build kcl in docker, the images kcllang/kcl-builder:latest in https://github.com/kcl-lang/kcl/blob/main/.devcontainer/devcontainer.json may be useful.

excalq commented 4 months ago

Right, my next solution was the idea of building it in Docker, which I'll try next.