Message ID | 20240408013859.732937-1-matt.stav.taylor@gmail.com |
---|---|
Headers | show |
Series | Add bcachefs-tools package | expand |
Hello Matt, On Mon, 8 Apr 2024 02:38:43 +0100 Matt Staveley-Taylor <matt.stav.taylor@gmail.com> wrote: > This patch series adds a new bcachefs-tools package: the userspace tools > for the bcachefs filesystem [1]. Thanks a lot for working on this! > This package depends on host-clang to provide libclang, which is used to > generate C <-> Rust bindings. But do we need to unconditionally compile the C <-> Rust bindings? Best regards, Thomas
On Mon Apr 8, 2024 at 9:54 PM BST, Thomas Petazzoni wrote: > On Mon, 8 Apr 2024 02:38:43 +0100 > Matt Staveley-Taylor <matt.stav.taylor@gmail.com> wrote: > > This package depends on host-clang to provide libclang, which is used to > > generate C <-> Rust bindings. > > But do we need to unconditionally compile the C <-> Rust bindings? The main binary and some of the subcommands are written in Rust, but most of them are written in C. The Rust main calls into the C subcommands using a tool called bindgen which generates Rust glue to interface with the C code. So unfortunately I don't see a good way to avoid building host-clang here. Matt
Hello Matt, On Tue, 09 Apr 2024 23:43:29 +0100 "Matt Staveley-Taylor" <matt.stav.taylor@gmail.com> wrote: > The main binary and some of the subcommands are written in Rust, but > most of them are written in C. The Rust main calls into the C > subcommands using a tool called bindgen which generates Rust glue to > interface with the C code. > > So unfortunately I don't see a good way to avoid building host-clang > here. Indeed, not much we can do then. Thing is that host-clang is extremely long to build, obviously... Best regards, Thomas
On Wed Apr 10, 2024 at 10:30 AM BST, Thomas Petazzoni wrote: > Indeed, not much we can do then. Thing is that host-clang is extremely > long to build, obviously... I noticed that host-rust downloads a pre-built binary from somewhere. Is there a possibility to do the same for host-clang? Or how do you want to proceed here? Matt
Hello Matt, On Thu, 11 Apr 2024 02:32:24 +0100 "Matt Staveley-Taylor" <matt.stav.taylor@gmail.com> wrote: > I noticed that host-rust downloads a pre-built binary from somewhere. Is > there a possibility to do the same for host-clang? Or how do you want to > proceed here? It seems that https://github.com/llvm/llvm-project/releases/tag/llvmorg-18.1.1 has pre-built binaries, but not for the very common x86-64 linux host platform, which seems odd? Apparently, those binaries are made by volunteers. Not sure how much we want to use those binaries. Thomas
On Thu Apr 11, 2024 at 1:48 PM BST, Thomas Petazzoni wrote: > It seems that > https://github.com/llvm/llvm-project/releases/tag/llvmorg-18.1.1 has > pre-built binaries, but not for the very common x86-64 linux host > platform, which seems odd? Apparently, those binaries are made by > volunteers. Not sure how much we want to use those binaries. Yeah, agreed. Perhaps there is some Buildroot infrastructure we can leverage for building these ourselves? Failing that -- is there actually a problem with merging the patch as-is? I can see a couple of other packages that already depend on host-clang. Matt