[clamav-users] How to enable llvm ?

Kris Deugau kdeugau at vianet.ca
Tue May 21 15:29:17 UTC 2019


Dorian ROSSE via clamav-users wrote:
> Yes that doesn,’t works as Following…
> 
> *checking for llvm-config... /usr/bin/llvm-config*
> 
> *configure: Using external LLVM*
> 
> *checking for supported LLVM version... no (6.0.0)*
> 
> *configure: error: LLVM < 3.7 required, but "6.0.0"(600) found*
> 
> *configure: error: Failed to configure LLVM, and LLVM was explicitly 
> requested*
> 
> Provenance : Courrier <https://go.microsoft.com/fwlink/?LinkId=550986> 
> pour Windows 10

To rephrase Micah's message a little:

ClamAV does not currently support LLVM newer than version 3.6.  You'll 
either have to build LLVM 3.6 or older from source, and build ClamAV 
with that, or use the version bundled with ClamAV's source by using the 
--with-system-llvm=no option to ./configure.

-kgd



> ------------------------------------------------------------------------
> *De :* Micah Snyder (micasnyd) <micasnyd at cisco.com>
> *Envoyé :* Friday, May 17, 2019 10:21:29 PM
> *À :* ClamAV users ML
> *Cc :* Dorian ROSSE
> *Objet :* Re: [clamav-users] How to enable llvm ?
> 
> I will assume that you are on a Unix-like system and are building ClamAV 
> from source.
> 
> ClamAV has a built-in version of LLVM that you can enable at compile 
> time by configuring with these options:
> 
> ./configure –enable-llvm --with-system-llvm=no
> 
> If you don’t use the “--with-system-llvm=no” option, it will try to use 
> a version of LLVM installed to your system. Unfortunately, ClamAV only 
> supports older versions of LLVM at this time, less than version 3.7.  
> Most Linux distributions do not carry LLVM versions this old, anymore, 
> so unless you build and install LLVM 3.6 from source, it will probably 
> fall back to use ClamAV’s internal copy of LLVM.
> 
> If you don’t build with LLVM enabled, ClamAV will still be able to 
> support the use of bytecode signatures by using its bytecode interpreter 
> instead of LLVM.  The functionality for an end-user is equivalent to 
> using LLVM, although the bytecode interpreter may execute more complex 
> bytecode signature slower than LLVM.
> 
> Regards,
> 
> Micah




More information about the clamav-users mailing list