[clamav-users] Error when compiling ClamAV-0.93
Alberto José García Fumero
alberto at ettpartagas.co.cu
Thu Feb 8 18:07:19 UTC 2018
El jue, 08-02-2018 a las 18:38 +0100, Reindl Harald escribió:
>
> Am 08.02.2018 um 18:30 schrieb Alberto José García Fumero:
> > Hi all.
> > I'm trying to compile ClamAV-0.93 on Debian 9.3, and in the make
> > step
> > the compilation aborts with the error message:
> >
> > bytecode2llvm.cpp:2432:49: warning: ISO C++ forbids converting a
> > string
> > constant to ‘char*’ [-Wpedantic]
> > cl_hash_data("md5", salt, 48, guardbuf, NULL);
> > ^
> > Makefile:2070: fallo en las instrucciones para el objetivo
> > 'libclamavcxx_la-bytecode2llvm.lo'
> > make[5]: *** [libclamavcxx_la-bytecode2llvm.lo] Error 1
> >
> > I have installed libclamav7 and libllvm3.8
>
> i doubt that libclamav7 should be installed to build clamav from
> source
> for libllvm3.8 - well, you need dev-packages not just libraries
> _______________________________________________
> clamav-users mailing list
> clamav-users at lists.clamav.net
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
>
>
Well, at least llvm-3.8-dev is installed.
This is a dump of the error screen:
In file included from bytecode2llvm.cpp:39:0:
./llvm/include/llvm/ADT/BitVector.h: In member function ‘int
llvm::BitVector::find_next(unsigned int) const’:
./llvm/include/llvm/ADT/BitVector.h:161:20: warning: left shift of
negative value [-Wshift-negative-value]
Copy &= ~0L << BitPos;
^~~~~~
./llvm/include/llvm/ADT/BitVector.h: In member function ‘void
llvm::BitVector::set_unused_bits(bool)’:
./llvm/include/llvm/ADT/BitVector.h:376:37: warning: left shift of
negative value [-Wshift-negative-value]
Bits[UsedWords-1] &= ~(~0L << ExtraBits);
^~~~~~~~~
In file included from ./llvm/include/llvm/Support/Allocator.h:17:0,
from ./llvm/include/llvm/ADT/StringMap.h:18,
from bytecode2llvm.cpp:41:
./llvm/include/llvm/Support/AlignOf.h: At global scope:
./llvm/include/llvm/Support/AlignOf.h:57:24: error: expected
unqualified-id before ‘alignof’
static inline unsigned alignof() { return AlignOf<T>::Alignment; }
^~~~~~~
In file included from ./llvm/include/llvm/ADT/StringMap.h:18:0,
from bytecode2llvm.cpp:41:
./llvm/include/llvm/Support/Allocator.h: In member function ‘void
llvm::SpecificBumpPtrAllocator<T>::DestroyAll()’:
./llvm/include/llvm/Support/Allocator.h:204:46: error: expected
primary-expression before ‘<’ token
Ptr = Allocator.AlignPtr(Ptr, alignof<T>());
^
./llvm/include/llvm/Support/Allocator.h:204:39: warning: ISO C++ does
not allow ‘alignof’ with a non-type [-Wpedantic]
Ptr = Allocator.AlignPtr(Ptr, alignof<T>());
^~~~~~~
./llvm/include/llvm/Support/Allocator.h:204:48: error: expected
primary-expression before ‘>’ token
Ptr = Allocator.AlignPtr(Ptr, alignof<T>());
^
./llvm/include/llvm/Support/Allocator.h:204:50: error: expected
primary-expression before ‘)’ token
Ptr = Allocator.AlignPtr(Ptr, alignof<T>());
^
In file included from bytecode2llvm.cpp:41:0:
./llvm/include/llvm/ADT/StringMap.h: In static member function ‘static
llvm::StringMapEntry<ValueTy>*
llvm::StringMapEntry<ValueTy>::Create(const char*, const char*,
AllocatorTy&, InitType)’:
./llvm/include/llvm/ADT/StringMap.h:170:33: error: expected primary-
expression before ‘<’ token
unsigned Alignment = alignof<StringMapEntry>();
^
./llvm/include/llvm/ADT/StringMap.h:170:26: warning: ISO C++ does not
allow ‘alignof’ with a non-type [-Wpedantic]
unsigned Alignment = alignof<StringMapEntry>();
^~~~~~~
./llvm/include/llvm/ADT/StringMap.h:170:48: error: expected primary-
expression before ‘>’ token
unsigned Alignment = alignof<StringMapEntry>();
^
./llvm/include/llvm/ADT/StringMap.h:170:50: error: expected primary-
expression before ‘)’ token
unsigned Alignment = alignof<StringMapEntry>();
^
In file included from bytecode2llvm.cpp:69:0:
./llvm/include/llvm/Support/CommandLine.h: In member function ‘void
llvm::cl::alias::done()’:
./llvm/include/llvm/Support/CommandLine.h:1326:5: warning: this ‘if’
clause does not guard... [-Wmisleading-indentation]
if (AliasFor == 0)
^~
./llvm/include/llvm/Support/CommandLine.h:1328:7: note: ...this
statement, but the latter is misleadingly indented as if it is guarded
by the ‘if’
addArgument();
^~~~~~~~~~~
bytecode2llvm.cpp: In function ‘void setGuard(unsigned char*)’:
bytecode2llvm.cpp:2432:49: warning: ISO C++ forbids converting a string
constant to ‘char*’ [-Wpedantic]
cl_hash_data("md5", salt, 48, guardbuf, NULL);
^
Makefile:2070: fallo en las instrucciones para el objetivo
'libclamavcxx_la-bytecode2llvm.lo'
make[5]: *** [libclamavcxx_la-bytecode2llvm.lo] Error 1
--
M.Sc. Alberto García Fumero
Usuario Linux 97 138, registrado 10/12/1998
http://interese.cubava.cu
No son las horas que pones en tu trabajo lo que cuenta, sino el trabajo
que pones en esas horas.
More information about the clamav-users
mailing list