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 2F82C1381F3 for ; Sat, 17 Aug 2013 16:16:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDC09E0B3F; Sat, 17 Aug 2013 16:15:53 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DAD36E0AF2 for ; Sat, 17 Aug 2013 16:15:52 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wo10so3208917obc.41 for ; Sat, 17 Aug 2013 09:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=rhpaANmXzDn0v/l+W1fp1aSWGpitNdy3dyqbl9fGji0=; b=eT1nx2jc23m5yZaMM4ywuniDgUOVE2CGo5zAly0z9IUMv8S0pb4MFQUF2L3WZHcM6Y /y3fIWJjFFR6gcrEQvMf5c1Fuf1hW8Q5d4zUMbX4jgxAN/6LVByEnYFLMIFh02rbdWhV TWfHwqnTs9oEEAMWRheb+od//GU40//khxjDuJBkFms0rLdb76bj3lCpOnjJItnuPN4B pzhJ7j3FdiQeLYNkriRA8mY5a2pc3UHD8fdJ5KGfuUkv+7NraKokyHoF9FJKGbq8MlTW ca/8ruqyWgVIPMs06vgqTanLd273jz1pbpW7u8kvsPdsD41fbCyQFBEbJDqbVqiODcH+ 9Xjg== X-Received: by 10.60.155.166 with SMTP id vx6mr3636224oeb.28.1376756152082; Sat, 17 Aug 2013 09:15:52 -0700 (PDT) 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 Received: by 10.60.52.79 with HTTP; Sat, 17 Aug 2013 09:15:12 -0700 (PDT) In-Reply-To: References: <20130816223802.GB30183@waltdnes.org> From: Francisco Ares Date: Sat, 17 Aug 2013 13:15:12 -0300 Message-ID: Subject: Re: [gentoo-user] Re: emerge -e errors right after install To: gentoo-user Content-Type: multipart/alternative; boundary=047d7bf1875463278e04e42705a7 X-Archives-Salt: 8755c975-5d22-4a4a-8b50-8b87800806cb X-Archives-Hash: c756dec8949c1273034c181ade13bb5b --047d7bf1875463278e04e42705a7 Content-Type: text/plain; charset=UTF-8 2013/8/17 Michael Palimaka > 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. > > > Thanks, that is a good point to be aware of. Francisco --047d7bf1875463278e04e42705a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= 2013/8/17 Michael Palimaka <kensington@gentoo.org>
On 17/08/2013 08:38, Walter Dnes wrote:

=C2=A0 =C2=A0I have the following in make.conf

CFLAGS=3D"-O2 -march=3Dnative -fomit-frame-pointer -pipe -fno-unwind-t= ables -fno-asynchronous-unwind-tables"
CXXFLAGS=3D"${CFLAGS}"

...where "-march=3Dnative" will always work correctly for a local= build.
The only possible worry is if you're cross-compiling and or distributin= g
a binary to multiple machines. =C2=A0It also saves me the headache of
figuring out the CFLAGS setting whenever I get a new machine. =C2=A0You sti= ll
have to set up the correct processor in the kernel, however.


While -march=3Dnative is generally good advice, GCC is not perfect and on o= ccasion it can flags to be enabled that are not supported, resulting in the= invalid instruction error.



Thanks, that is a g= ood point to be aware of.

Francisco=
--047d7bf1875463278e04e42705a7--