I tried to build it with:
apt-cache policy llvm llvm: Installed: 1:4.0-34ubuntu2
I also had no issue when building from the exact same clamav sources (0.99.2+dfsg-6) while on Ubuntu yakkety which uses llvm-3.9.
It seems that the issue originates from incompatibility(ies) between clamav and llvm-4.0.
I tried to build it with:
apt-cache policy llvm
llvm:
Installed: 1:4.0-34ubuntu2
I also had no issue when building from the exact same clamav sources (0.99.2+dfsg-6) while on Ubuntu yakkety which uses llvm-3.9.
It seems that the issue originates from incompatibility (ies) between clamav and llvm-4.0.