After upgrade I cannot start clamd anymore: * Starting clamd ... clamd: llvm/lib/Target/PowerPC/PPCJITInfo.cpp:399: virtual void llvm::PPCJITInfo::relocate(void*, llvm::MachineRelocation*, unsigned int, unsigned char*): Assertion `ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out of range!"' failed. /lib/rcscripts/sh/rc-daemon.sh: line 231: 21111 Przerwane /sbin/start-stop-daemon '--start' '--quiet' '--nicelevel' '3' '--exec' '/usr/sbin/clamd' * Failed to start clamd [ !! ] * Starting freshclam ... [ ok ] I googled that version 0.96 should not be used on PPC/PPC64: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1921 Reproducible: Always Steps to Reproduce: 1. Install clamav-0.96 on gentoo for PPC 2. /etc/init.d/clamav start 3. wait a wile Actual Results: error message Expected Results: no error
danno ~ # /etc/init.d/clamd start * Starting clamd ... clamd: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:154: unsigned int<unnamed>::PPCCodeEmitter::getMachineOpValue(const llvm::MachineInstr&, const llvm::MachineOperand&): Assertion `MovePCtoLROffset && "MovePCtoLR not seen yet?"' failed. /lib64/rcscripts/sh/rc-daemon.sh: line 231: 31105 Aborted /sbin/start-stop-daemon '--start' '--quiet' '--nicelevel' '3' '--exec' '/usr/sbin/clamd' * Failed to start clamd [ !! ] * Starting freshclam ... [ ok ] danno ~ # emerge --info Portage 2.1.8.3 (default/linux/powerpc/ppc64/10.0/64bit-userland, gcc-4.4.3, glibc-2.10.1-r1, 2.6.31-gentoo-r10 ppc64) ================================================================= System uname: Linux-2.6.31-gentoo-r10-ppc64-PPC970FX,_altivec_supported-with-gentoo-1.12.13 Timestamp of tree: Tue, 20 Jul 2010 02:30:01 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4-r1 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.6.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="ppc64" ACCEPT_LICENSE="* -@EULA IBM-J1.6" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=970 -mtune=powerpc -mminimal-toc -fno-strict-aliasing" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=powerpc -mminimal-toc -fno-strict-aliasing" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm hal ibm iconv ipv6 kde modules mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre perl ppc64 pppd python qt3 qt3support qt4 readline reflection session snmp spl ssl sysfs tcpd truetype unicode xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi # enable via USE-flag dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
As per the cited upstream bug, this is fixed in clamav 0.96.2 (confirmed by quick testing). Accordingly, this bug should depend on bug 333337, but I don't have the permission to change it.
Closing.