[Pkg-clamav-devel] build clamav with system LLVM

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Fri May 2 17:46:50 UTC 2014


Hi,

in the branch aca_llvm I have created a patch to build clamav with the 
system LLVM.
I think that would be good, because of security and other bugfixes in 
LLVM (the internal version is based on 2.8, while testing has 3.3 as 
default and 3.4 available).
As a bonus, this drastically reduces build time.

To fix FTBFS with new versions, mostly header names had to be changed, 
but two functions were removed, that I couldn't find a replacement for:
  * Attribute::constructStackAlignmentFromInt used in 
libclamav/c++/bytecode2llvm.cpp
  * JITExceptionHandling (defined as DwarfExceptionHandling) used in 
libclamav/c++/bytecode2llvm.cpp

I don't think this is a major problem, but 
constructStackAlignmentFromInt was added to fix a bug [1]. Hopefully 
this is fixed now in LLVM directly.

What do you think about this?

Best regards,
Andreas


1: https://bugzilla.clamav.net/show_bug.cgi?id=2270



More information about the Pkg-clamav-devel mailing list