[Slackbuilds-users] Error when compiling clamav 0.99.2 against -current

Sebastian Arcus s.arcus at open-t.co.uk
Fri May 12 15:20:51 UTC 2017



On 12/05/17 08:59, Matteo Bernardini wrote:
> 2017-05-12 9:55 GMT+02:00 Sebastian Arcus <s.arcus at open-t.co.uk>:
>> I get the following error when attempting to build clamav 0.99.2 against
>> -current using the SBo scripts. Has anybody else seen this, or have any idea
>> what it might mean? Searching online turns up some Fedore posts from a year
>> ago, and it that case the llvm libraries on their system were too old. But
>> Slackware current uses llvm-4.0.0 - which seems to be the latest.
>>
>>
>> </snip>
>> /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 were 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*’ [-Wwrite-strings]
>>       cl_hash_data("md5", salt, 48, guardbuf, NULL);
>>                                                   ^
>> make[5]: *** [Makefile:2153: libclamavcxx_la-bytecode2llvm.lo] Error 1
>> make[5]: Leaving directory '/tmp/SBo/clamav-0.99.2/libclamav/c++'
>> make[4]: *** [Makefile:1544: all] Error 2
>> make[4]: Leaving directory '/tmp/SBo/clamav-0.99.2/libclamav/c++'
>> make[3]: *** [Makefile:3459: all-recursive] Error 1
>> make[3]: Leaving directory '/tmp/SBo/clamav-0.99.2/libclamav'
>> make[2]: *** [Makefile:1162: all] Error 2
>> make[2]: Leaving directory '/tmp/SBo/clamav-0.99.2/libclamav'
>> make[1]: *** [Makefile:747: all-recursive] Error 1
>> make[1]: Leaving directory '/tmp/SBo/clamav-0.99.2'
>> make: *** [Makefile:576: all] Error 2
> 
> http://cgit.ponce.cc/slackbuilds/commit/?h=clamav

Thank you for pointing me in the right direction. I really have to 
figure out how to check the newest git commits for SBo when something 
doesn't work.

> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
> 


More information about the SlackBuilds-users mailing list