clamav update via custombuild fails

shaggy

Verified User
Joined
Jul 12, 2005
Messages
25
Location
Paris, KY
I have tried updating to clamav 0.97.5 via custombuild and it keeps failing. Similar but different errors each time. Here is what I am seeing. Any help would be appreciated:

Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[5]: *** [MachineBasicBlock.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [MachineFunction.lo] Error 1
make[5]: *** [LiveVariables.lo] Error 1
make[5]: *** [MachineDominators.lo] Error 1
make[5]: *** [ValueTracking.lo] Error 1
make[5]: *** [libclamavcxx_la-bytecode2llvm.lo] Error 1
make[5]: *** [ELFWriter.lo] Error 1
make[5]: *** [ProfileInfo.lo] Error 1
make[5]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav/c++'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav/c++'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5'
make: *** [all] Error 2

*** The make has failed, do you want to try to make again? (y,n):



g++: Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[5]: *** [ScalarEvolution.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav/c++'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav/c++'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5'
make: *** [all] Error 2

*** The make has failed, do you want to try to make again? (y,n):
 
I still haven't been able to get ClamAV updated. Anyone have any ideas? It seems like the make breaks at different places each time.
 
Actually seems you have problem with g++ compiler o.O

Try:
Code:
yum update  -y
cd /usr/local/directadmin/custombuild
rm -rf clam*
./build clean
./build update
./build clamav

Regards
 
Thanks for the help, but that didn't work. I am still getting similar errors. Everything else has compiled fine. Here is my latest error if it makes any difference:


CXX DebugInfo.lo
detect.cpp: In function 'void cli_detect_env_jit(cli_environment*)':
detect.cpp:135: warning: enumeration value 'Minix' not handled in switch
CXX CallGraph.lo
CXX MemoryBuiltins.lo
CXX PointerTracking.lo
CXX ProfileInfo.lo
CXX ValueTracking.lo
CXX ELFCodeEmitter.lo
CXX ELFWriter.lo
CXX LiveVariables.lo
CXX MachineBasicBlock.lo
CXX MachineDominators.lo
CXX MachineFunction.lo
CXX MachineFunctionAnalysis.lo
g++: Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[5]: *** [libclamavcxx_la-bytecode2llvm.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav/c++'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav/c++'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.97.5'
make: *** [all] Error 2

Do you have any more ideas?
 
I am on a VPS with 1.5 GB of RAM. About half of that is in use.


total used free shared buffers cached
Mem: 1572864 791880 780984 0 0 0
-/+ buffers/cache: 791880 780984
Swap: 0 0 0

I would think that should be enough RAM to compile clamAV?
 
I don't think the VM platform that my hosting provider uses provides swap. I think it has "burstable" ram instead. I am going to pen a ticket with them and have them see if they can resolve the issue. Thanks again for your help. I will update this thread if/when I get the problem resolved.
 
I had my hosting provider take a look and they posted the below info:

Hello,

It looks some kind of bug with it. As we have also tried to update clam and getting below errors.

==================================================
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
make[5]: *** [MachineInstr.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
g++: g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
g++: Internal error: Killed (program cc1plus)
==================================================

I have checked the memory on VE and it's shows VPS have enough memory there.

---------------------------------------
-bash-4.1# free -m
total used free shared buffers cached
Mem: 1536 806 729 0 0 0
-/+ buffers/cache: 806 729
Swap: 0 0 0
-bash-4.1#
---------------------------------------

Maybe I could re-install the g++ compiler to see if that fixes the issue?
 
Issue has been resolved. Hosting provider upped the RAM to 3GB and clamAV compiled successfully. Thanks for your assistance.
 
on writing
freshclam -v

i see this output

Current working dir is /usr/local/share/clamav
Max retries == 3
ClamAV update process started at Fri Jun 21 20:10:57 2013
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 239
Software version from DNS: 0.97.8
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.97.3 Recommended version: 0.97.8
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cvd version from DNS: 54
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
daily.cvd version from DNS: 17392
daily.cld is up to date (version: 17392, sigs: 1362002, f-level: 63, builder: neo)
bytecode.cvd version from DNS: 214
bytecode.cvd is up to date (version: 214, sigs: 41, f-level: 63, builder: neo)


and i cant update with custom build the calav version.
can someone post a correct version of
freshclam.conf
thanks
 
Back
Top