Looking at the building logs, I see that running "make clambc-only" runs
fine and that the error occurs in running "make" by itself. The clamav
bytecode compiler is a project that is built on top of the LLVM, in
particular, a fairly old version of the LLVM. Outside of the sections
pertaining to the compiler, there may be sections of the compiler's version
of LLVM that are not up-to-date with current compilers. Since we use LLVM's
configure script, it is not advised to run "make" on its own as it attempts
to make the entirety of LLVM which contsins out-dated sections.

However, this is fine as the clamav bytecode compiler is fully compiled by
running "make clambc-only" and the binary can be found at
"$OBJDIR/Release/bin/clambc-compiler" (note that "Release" may be "Debug"
depending on the type of build that is compiled). The binary can be
installed to the configured directory by running "make install-clambc".

Notes:
make clambc-only
-compile the clamav bytecode compiler

make install-clambc
-installs the compiler to the configured directory

make
-builds LLVM (do not use)

-Kevin


On Tue, Dec 10, 2013 at 3:03 PM, Cristoforo Nardone <[email protected]>wrote:

> I was wrong, the make command returns an error. Can not find the file
> /clamav-bytecode-compiler/obj/lib/ExecutionEngine/JIT/Release/Intercept.o
> that effectively does not exist in that directory.
>
> I used the following instructions:
> (In the folder clamav-bytecode-compiler)
>
> mkdir obj
>
> cd obj
>
> ../llvm/configure --enable-optimized --enable-targets=host-only
> --disable-bindings --prefix=/usr/local/clamav   (outconfig)
>
> make clambc-only   (outmakeonly)
>
> make   (outmake)
>
>
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to