Page MenuHomePhabricator

Install clang for Toolforge use
Closed, ResolvedPublic

Description

I recently tried to compile a Rust program for the enwikt-translations tool and found that I couldn't compile the new version of rlua library (Rust high-level bindings to Lua). It used to compile just fine on the toolservers, but it now generates bindings with rust-bindgen, which requires clang. (Hopefully someday support for GCC will be added, but it's not here yet.) It gives a dumb error about not being able to find stdarg.h, which is in the GCC package. I fixed that on my own computer with sudo apt install clang.

Could clang be installed?

Details

Event Timeline

You can download and compile clang by yourself and use the locally compiled version when building other softwares.

You can download and compile clang by yourself and use the locally compiled version when building other softwares.

Possibly, but I haven't done it before and it may be complicated to get it working with the Rust compiler (possibly on multiple projects, since I have another project that currently uses an old version of rlua). I don't need a recent version of clang or anything fancy that would really justify me compiling it myself. Fortunately I found a workaround to avoid using clang: compile my Rust program for x86_64-unknown-linux-musl on my computer and copy it over to the toolserver. :-P

Change 759197 had a related patch set uploaded (by Legoktm; author: Legoktm):

[operations/puppet@production] toolforge: Install clang on the grid

https://gerrit.wikimedia.org/r/759197

You can download and compile clang by yourself and use the locally compiled version when building other softwares.

This is really not appropriate for something as complex as clang. And that's super trivial to install using Debian packages...

Change 759197 merged by Arturo Borrero Gonzalez:

[operations/puppet@production] toolforge: Install clang on the grid

https://gerrit.wikimedia.org/r/759197