The recently emerged clamav 0.88.1 won't run on a k6-3 reporting the error: Illegal instruction. servidor # clamscan .viminfo Illegal instruction servidor # emerge info Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i586) ================================================================= System uname: 2.6.15-gentoo-r1 i586 AMD-K6(tm) 3D+ Processor Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O3 -march=k6-3 -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=k6-3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-casa /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow alsa apm arts avi berkdb bitmap-fonts bzip2 crypt cups curl dri eds emboss encode expat foomaticdb fortran gd gdbm gif gmp gpm gstreamer gtk2 imlib isdnlog jservidor rodrigo # emerge info Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i586) ================================================================= System uname: 2.6.15-gentoo-r1 i586 AMD-K6(tm) 3D+ Processor Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O3 -march=k6-3 -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=k6-3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-casa /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow alsa apm arts avi berkdb bitmap-fonts bzip2 crypt cups curl dri eds emboss encode expat foomaticdb fortran gd gdbm gif gmp gpm gstreamer gtk2 imlib isdnlog jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS peg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Don't use -march=k6-(whatever), it's known to be broken...
I thought this could be a duplicate of Bug #24379. I tried -mtune=k6 and even tried without any -march, -mcpu or -mtune. I still get exactly the same error. What should I do?
clamav-0.88.2 is in portage now, does that one work for you?
Actually, scratch that - expat-1.95.8 still provides libexpat.so.0. But still, we're going to have to add <dev-libs/expat-2 to RDEPEND.
(In reply to comment #4) > Actually, scratch that - expat-1.95.8 still provides libexpat.so.0. But still, > we're going to have to add <dev-libs/expat-2 to RDEPEND. > Disregard this comment please, wrong bug. (I hate the "move to next bug in list after comment" feature.)
I got something like that and did a quick gdb run which left me with this: <snip> (gdb) run Starting program: /usr/sbin/clamd [symbols not found yada yada...] [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 30471)] Program received signal SIGILL, Illegal instruction. [Switching to Thread 16384 (LWP 30471)] 0xb7f45ddb in __gmpz_mul_2exp () from /usr/lib/libgmp.so.3 </snip> So the problem seems to be in libgmp rather than in clamav. Will rebuild libgmp and get back to you.
Well, a emerge --oneshot -av gmp fixed the problem for me. No more "Illegal instruction" when starting clamd. I now run clamd-0.88.2 on a VIA C7 processor.
(In reply to comment #7) > emerge --oneshot -av gmp > > fixed the problem for me. No more "Illegal instruction" when starting clamd. You are right. It fixed the problem to me too. Sorry for the bogus bug report.