Summary: | app-antivirus/clamav-0.99.2: building w/gcc-6: error: expected unqualified-id before 'alignof' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Francesco Turco <fturco> |
Component: | Current packages | Assignee: | Antivirus Team <antivirus> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hanno, net-mail+disabled, plevine457, slyfox |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 | ||
Attachments: |
clamav-0.99.2 build log using gcc-6.2.0
clamav-0.99.2 build log using gcc-6.2.0 (hopefully with proper encoding) |
Description
Francesco Turco
2016-08-30 13:41:48 UTC
Created attachment 444432 [details]
clamav-0.99.2 build log using gcc-6.2.0
Created attachment 444434 [details]
clamav-0.99.2 build log using gcc-6.2.0 (hopefully with proper encoding)
The problem is that 'alignof' is a reserved word in >=C++11. clamav bundles an old llvm in "${S}/libclamav/c++/llvm" that is unaware of this. Trying to compile with the system llvm using EXTRA_ECONF="--with-system-llvm" fails for me with "error: LLVM < 3.7 required, but "3.8.1"(381) found". And sys-devel/llvm doesn't support "multislot" so you can only commit to a 3.6.X version if you have no other world packages requiring >=sys-devel/llvm=3.7.0. The other option is forcing CXXFLAG "-std=c++98". Pushed a tweak as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65711d60b5d0c971790381f4efabbaf0f3c2610d Thank you! |