Exafunction / codeium

Other
234 stars 12 forks source link

`musl` build #3

Open notramo opened 1 year ago

notramo commented 1 year ago

Please provide musl based build for Linux, or compile a fully static build.

pqn commented 1 year ago

Curious, what's your setup that would make a musl build helpful?

notramo commented 1 year ago

I'm using Void Linux musl, but there are several musl based Linux distros, probably the most popular are Alpine and postmarketOS.

notramo commented 1 year ago

@pqn what are the plans on this? Should I spend time on setting up another code recommendation system, or can I expect a musl version to be released in the near future?

pqn commented 1 year ago

I don't think we can offer one soon. We have quite a few dependencies and would have to work through the musl compatibility for them.

DieracDelta commented 1 year ago

I would also be interested in a musl build. IMO this should be doable with nix (or at least, I've done this for a bunch of software previously with nix). Do you have insights on which deps would be difficult? I'd be interested in helping.

As for my usecase: being able to use codeium on any x86/aarch64 linux box without needing to fumble around with glibc versions.

pqn commented 1 year ago

Notably, we have a single Bazel C++ toolchain with CUDA support, and I don't think CUDA plays well with musl. But there is obviously no CUDA usage client-side, so it's not impossible. Thanks for offering to help -- I think most of the work is build system related and difficult to carve out, but if I notice any dependencies without support that we can't migrate away from, I'll point them out in this thread if anyone would like to investigate.

wangchao-sh commented 11 months ago

@pqn Please help provide a statically compiled version so that it can be used properly on systems with 'musl' toolchains like Alpine.

wangchao-sh commented 11 months ago

@notramo May I know how you ultimately solved it? I also hope to be able to use codeium on Alpine.

notramo commented 11 months ago

Try this: https://github.com/copilot

DieracDelta commented 11 months ago

@wangchao-sh I think you can still run this on alpine using dynamic linking to stuff in the nix store using a statically linked nix binary. Patchelf -> nix run botta bing botta boom.

PillFall commented 5 months ago

@pqn Using Codeium in musl-based Linux distros also improves DX on DevContainers heavily based on AlpineLinux, as the extension installs on the "Remote Side" (a.k.a. inside the container)

notramo commented 5 months ago

This LSP plugin can use Codeium: https://github.com/leona/helix-gpt