Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129329 - clamav 0.88.1 won't run on a k6-3
Summary: clamav 0.88.1 won't run on a k6-3
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-09 04:19 UTC by Rodrigo Severo
Modified: 2006-05-11 08:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2006-04-09 04:19:21 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-09 04:39:52 UTC
Don't use -march=k6-(whatever), it's known to be broken...
Comment 2 Rodrigo Severo 2006-04-09 07:47:33 UTC
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?
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2006-05-01 15:21:50 UTC
clamav-0.88.2 is in portage now, does that one work for you?
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2006-05-01 15:33:47 UTC
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.
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2006-05-01 15:36:03 UTC
(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.)
Comment 6 Jürgen Pierau 2006-05-11 06:57:02 UTC
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.
Comment 7 Jürgen Pierau 2006-05-11 07:09:00 UTC
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.
Comment 8 Rodrigo Severo 2006-05-11 08:54:33 UTC
(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.