From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EAVBr-0003OX-Du for garchives@archives.gentoo.org; Wed, 31 Aug 2005 16:11:55 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7VG8HbY011607; Wed, 31 Aug 2005 16:08:17 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7VG23rw009348 for ; Wed, 31 Aug 2005 16:02:04 GMT Received: by zproxy.gmail.com with SMTP id x7so108470nzc for ; Wed, 31 Aug 2005 09:04:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YX9rgo2O57zAozzv7yWy3REKW++pFcfkHnhRba19Za0VuZD2nsaoGUDtLJv3HPzw2NuJpK9CtqvilXZ1Kpix2Y8O/A4IAwnlpNpKZU+teaLaRF4h9GQxnWWG+iDfZ36JQDhbumRFdIPKt7ipf6vAKYFTnLHceR2+6NrkF3i7VwM= Received: by 10.36.18.5 with SMTP id 5mr947197nzr; Wed, 31 Aug 2005 09:04:21 -0700 (PDT) Received: by 10.36.60.4 with HTTP; Wed, 31 Aug 2005 09:04:21 -0700 (PDT) Message-ID: <5bdc1c8b05083109046b8ebdf7@mail.gmail.com> Date: Wed, 31 Aug 2005 09:04:21 -0700 From: Mark Knecht To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] cpu flags / USE flags / compiler flags Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j7VG23rw009348 X-Archives-Salt: 237aedf8-9712-4974-965a-5e55bc32c34e X-Archives-Hash: 6a7f0ce2baa11323e9c292fa176058f1 Hi, I've just recently (the last 4 or 5 days) been experiencing some lock-ups on Firefox. As far as I can tell these seem to come only when visiting certain web pages that have more multimedia content. When Firefox locks up it can be killed from a terminal and restarted. There are no messages in dmesg or /var/log/messages. In reviewing changes recently made I noted that the newest thing, for me, was changing some USE flags. What I thought I was doing was better matching the processor in each machine but possibly this is causing the problem. On my laptop, a P4 / ATI machine, I went about it like this: flash ~ # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz stepping : 9 cpu MHz : 3067.965 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr bogomips : 6078.46 flash ~ # I then looked for CPU flags that had an equivalent USE flag and that might be of use for faster graphics. On this machine I chose mmx, sse & sse2. Armed with that I changed my make.conf file to look like this: # These settings were set by the catalyst build script that automatically built this stage CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" USE="mmx sse sse2 gnome kde -arts ladspa nptl nptlonly ladcca audiofile gimp gimpprint ppds usb alsa cdr dvd dvdr dvdread caps jack jack-tmpfs fluidsynth tcltk sndfile v4l v4l2 mysql flac xscreensaver samba i8x0 mythtv apache2 lirc mjpeg xvid real" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.gentoo.gr.jp http://www.zentek-international.com/mirrors/gentoo/" ALSA_CARDS="atiixp" VIDEO_CARDS="radeon" PORTDIR_OVERLAY=/usr/local/portage I should note that I only remember adding sse2. mmx and sse where there before and I had no problems. QUESTION 1: Is this the right way to go about doing this sort of thing? Or are the CPU flags supposed to become part of the CFLAGS line also? QUESTION 2: Are there any known problems with sse2 support? I think I've added this on 3 machines and all 3 machines have experienced at least one, if not more, lockups. Certainly I can just remove the sse2 flag and recompile but I thought I'd ask first. Thanks, Mark -- gentoo-user@gentoo.org mailing list