How do I know which LLVM/Clang package I need?

Everything about X, Gnome, KDE, ... and everything running on it

How do I know which LLVM/Clang package I need?

Postby bentHnau » 2019-11-09 21:33

I have Debian 9 64-bit. I'm trying to install the latest version (60.7.0) of the Firefox derivative browser Icecat from source, and the installation is failing with this error:

Code: Select all
ERROR: Could not find LLVM/Clang installation for compiling stylo build-time
bindgen.  Please specify the 'LLVM_CONFIG' environment variable
(recommended), pass the '--with-libclang-path' and '--with-clang-path'
options to configure, or put 'llvm-config' in your PATH.  Altering your
PATH may expose 'clang' as well, potentially altering your compiler,
which may not be what you intended.


There are several different LLVM and Clang packages in Debian's repo, and I've installed a few that have the -dev name at the end, but I keep getting this error. There is no pacakge with llvm-config in its name. And I don't understand why it's "LLVM/Clang," as if there's just one package that somehow incorporates both llvm and clang.

I got the Icecat source from gnu.org.
Debian Stretch x64 on a Dell XPS 17 laptop
bentHnau
 
Posts: 138
Joined: 2014-01-07 01:43
Location: California

Re: How do I know which LLVM/Clang package I need?

Postby stevepusser » 2019-11-09 23:43

If it's anything like Waterfox, you specify it in the mozconfig or mozconfig.in file.
Code: Select all
export CC=clang-4.0
export CXX=clang++-4.0


and those build-depends were clang-4.0 and llvm-4.0-dev. You can also try the llvm-6.0 packages from stretch-backports instead if you wish. You may also pick up some hints from Debian's Firefox 60.X build's debian folders.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11316
Joined: 2009-10-06 05:53

Re: How do I know which LLVM/Clang package I need?

Postby bentHnau » 2019-11-14 00:02

bentHnau wrote:
Code: Select all
ERROR: Could not find LLVM/Clang installation for compiling stylo build-time
bindgen. [b] Please specify the 'LLVM_CONFIG' environment variable[/b]
(recommended), pass the '--with-libclang-path' and '--with-clang-path'
options to configure, or put 'llvm-config' in your PATH.  Altering your
PATH may expose 'clang' as well, potentially altering your compiler,
which may not be what you intended.


There is no pacakge with llvm-config in its name.

stevepusser's solution worked (I just exported the latest available version of Clang at the command line instead of in a configuration file), but the other problem was that llvm-config didn't show up in a search of installed files or files available in the repo. The appropriate file is actually named llvm-config-# where # represents the installed version number.
Debian Stretch x64 on a Dell XPS 17 laptop
bentHnau
 
Posts: 138
Joined: 2014-01-07 01:43
Location: California


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable