From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E728F1381F3 for ; Sat, 17 Aug 2013 13:52:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BDC1E0B74; Sat, 17 Aug 2013 13:52:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF301E0B59 for ; Sat, 17 Aug 2013 13:52:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E53B333EB9E for ; Sat, 17 Aug 2013 13:52:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.842 X-Spam-Level: X-Spam-Status: No, score=-1.842 tagged_above=-999 required=5.5 tests=[AWL=0.860, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-2.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable Received: from smtp.gentoo.org ([IPv6:::ffff:127.0.0.1]) by localhost (smtp.gentoo.org [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zq3-oFC8hJKf for ; Sat, 17 Aug 2013 13:52:18 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0CA0A33EC2B for ; Sat, 17 Aug 2013 13:52:15 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VAgvN-0001aQ-Q4 for gentoo-user@gentoo.org; Sat, 17 Aug 2013 15:52:13 +0200 Received: from ppp118-209-156-226.lns20.mel6.internode.on.net ([118.209.156.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Aug 2013 15:52:13 +0200 Received: from kensington by ppp118-209-156-226.lns20.mel6.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Aug 2013 15:52:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Michael Palimaka Subject: [gentoo-user] Re: emerge -e errors right after install Date: Sat, 17 Aug 2013 23:51:59 +1000 Message-ID: References: <20130816223802.GB30183@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp118-209-156-226.lns20.mel6.internode.on.net User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <20130816223802.GB30183@waltdnes.org> X-Archives-Salt: c9fda4b5-9271-4e87-b76c-bec9ded1ec53 X-Archives-Hash: 879e27e76f8d4eea59adc9e2c6a62ada On 17/08/2013 08:38, Walter Dnes wrote: > > I have the following in make.conf > > CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables" > CXXFLAGS="${CFLAGS}" > > ...where "-march=native" will always work correctly for a local build. > The only possible worry is if you're cross-compiling and or distributing > a binary to multiple machines. It also saves me the headache of > figuring out the CFLAGS setting whenever I get a new machine. You still > have to set up the correct processor in the kernel, however. > While -march=native is generally good advice, GCC is not perfect and on occasion it can flags to be enabled that are not supported, resulting in the invalid instruction error.