Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129003 - clamd/freshclam won't start on K6 : invalid instruction
Summary: clamd/freshclam won't start on K6 : invalid instruction
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-06 00:33 UTC by Ervin Peters
Modified: 2006-04-06 11:23 UTC (History)
0 users

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 Ervin Peters 2006-04-06 00:33:58 UTC
Running an uptodate x86 Gentoo on a K6-200/VP3/ with 256Mb make some Problems, even after recompiling clamav 2 Times:
---------8<--------------
woodstok ~ # emerge -pv clamav

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-antivirus/clamav-0.88  +crypt -mailwrapper -milter (-selinux) 0 kB

Total size of downloads: 0 kB
woodstok ~ # /etc/init.d/clamd start
 * Starting clamd ...
/etc/init.d/clamd: line 11: 14116 Ung&#65533;ltiger Maschinenbefehl  start-stop-daemon --start --quiet --exec /usr/sbin/clamd
 * Failed to start clamd                                                  [ !! ] * Starting freshclam ...
ClamAV update process started at Thu Apr  6 09:22:17 2006
Downloading main.cvd [*]
LibClamAV debug: MD5(.tar.gz) = af6f7d14ff7c607dd442d8b518e7b554
/etc/init.d/clamd: line 11: 14119 Ung&#65533;ltiger Maschinenbefehl  start-stop-daemon --start --quiet --exec /usr/bin/freshclam -- -d
 * Failed to start freshclam                                              [ !! ]woodstok ~ # emerge info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i586)
=================================================================
System uname: 2.6.15-gentoo-r1 i586 AMD-K6tm w/ multimedia extensions
Gentoo Base System version 1.6.14
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 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="-O2 -mcpu=pentium-mmx -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/fax /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium-mmx -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 acl apache2 apm bash-completion berkdb bzip2 cdr clamav clamd crypt cups cyrus dhcp doc dri eds eurofile expat fastcgi fax fbcon foomaticdb fortran gd gdbm gif gmp gstreamer idn imap ipv6 isdnlog jpeg ldap libg++ libwww logrotate mhash mime mmx ncurses neural nls no-old-linux nocardbus nocd pam pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay png posix postgres ppds pppd python readline ruby samba sasl slang slp sockets socks5 ssl syslog tcpd tetex tiff udev unicode usb verbose vhosts virtual-users vorbis wmf xml2 xmlrpc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS

woodstok ~ # gcc -v
Lese Spezifikationen von /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.6/specs
Konfiguriert mit: /var/tmp/portage/gcc-3.3.6/work/gcc-3.3.6/configure --prefix=/usr --bindir=/usr/i586-pc-linux-gnu/gcc-bin/3.3.6 --includedir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.6/include --datadir=/usr/share/gcc-data/i586-pc-linux-gnu/3.3.6 --mandir=/usr/share/gcc-data/i586-pc-linux-gnu/3.3.6/man --infodir=/usr/share/gcc-data/i586-pc-linux-gnu/3.3.6/info --with-gxx-include-dir=/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.6/include/g++-v3 --host=i586-pc-linux-gnu --build=i586-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread-Modell: posix
gcc-Version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
woodstok ~ #

---------8<--------------

Whats up? On an PIII in another enviroment, ok gcc is 3.4.5, it runs very well.

Is there any code which depends on an i686 CPU?

I used pentium-mmx in CFLAGS because of some problems everywhere related to use K6 in CFLAGS.

Any hints? Any Questions?

Thanks

ervin
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-06 02:49:34 UTC
Sorry, pentium-mmx is NOT a valid -march/-mcpu value for K6 processors, as you have noticed. Use i586 or pentium.
Comment 2 Ervin Peters 2006-04-06 11:05:05 UTC
(In reply to comment #1)
> Sorry, pentium-mmx is NOT a valid -march/-mcpu value for K6 processors, as you
> have noticed. Use i586 or pentium.
> 
After changing to mcpu=K6 in make.conf and emerge clamav still the same occur. But I think if you are right, the it'll be better after rebuilding the whole system. Bat that'll take a while, about 10 days i guess.

But as I remember the k6 knows about mmx, so it should be able to use the pentium-mmx instructions as well. It doesn't matter, I'll recompile everything, switch btw to gcc 3.4.5 and then we'll see.

Thanks

ervin
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-06 11:23:46 UTC
(In reply to comment #2)
> > have noticed. Use i586 or pentium.
> > 
> After changing to mcpu=K6 in make.conf and emerge clamav still the same occur.

As you can notice above, I've said to use either i586 or pentium, definitely not k6. :) K6 optimizations are known to be broken, don't use them at all w/ any gcc-3.x versions.