From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SZTkU-0005RA-D0 for garchives@archives.gentoo.org; Tue, 29 May 2012 21:14:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CDA0E06FD; Tue, 29 May 2012 21:14:24 +0000 (UTC) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 080C2E0444 for ; Tue, 29 May 2012 21:13:04 +0000 (UTC) Received: by eekc41 with SMTP id c41so1309394eek.40 for ; Tue, 29 May 2012 14:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; bh=/dpCJBgCwKXYs4ik9pSNH4Tm7AMBz7zhPM1LdKKYik4=; b=nNxbUHAsdmJVgunCfZwyYd8oNgTCye5W59yyOXKshoRoIHpic9USMsWH1zeaehXjDe Q5mpZPX7jMTrqOdOySZtokaiVNC+b04+WsgYTlQtuTdW0sJq0PyrclmFOao6OJk7IYSM ntnIUBSfk+W/XJ1WOs99F0xeZON1Texk+WQq/N262Dp154PQkaFgx7mXyasCuo6qRm3n VKes27spkvh/QO3YfUpsly1dHlU3GBu5cXXGDZ9NBz0fM2A9h4/5SjJI6DzshsoeVGuf W9Dz7QFpC9vXcFeNBepVk4y/j2ZhVCQIIZmUxUgRJodJrUma4cu2hzcIpQRrQ4zyW2yg pL9w== Received: by 10.14.97.16 with SMTP id s16mr4505610eef.117.1338325984076; Tue, 29 May 2012 14:13:04 -0700 (PDT) Received: from khamul.example.com ([196.215.205.228]) by mx.google.com with ESMTPS id s8sm53065382ees.16.2012.05.29.14.13.00 (version=SSLv3 cipher=OTHER); Tue, 29 May 2012 14:13:02 -0700 (PDT) Date: Tue, 29 May 2012 23:09:37 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] revdep-rebuild (gawk) issues Message-ID: <20120529230937.13e48154@khamul.example.com> In-Reply-To: References: Organization: Internet Solutions X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 153ef79f-1b41-4161-b00b-03bf873fc644 X-Archives-Hash: dc2c42ae267c96ddc440b8680c86af25 On Tue, 29 May 2012 22:56:07 +0200 Rafa Griman wrote: > Hi Vaeth :) > > On Tue, May 29, 2012 at 7:02 PM, Vaeth > wrote: > > On Tue, 29 May 2012, Rafa Griman wrote: > >> > >> gawk: cmd. line:3: error: Unmatched [ or [^: /[^[:space:]]/ > > > > > > Your gawk is broken. This happens if you emerged gawk with > > current gcc and aggressive FLAGS like -DNDEBUG or -flto. > > Not sure whether it is a bug of gawk or gcc. > > > So it seems to be the CFLAGS :( As I said in my previous e-mail, I was > "experimenting" a bit with them ... I'll be more conservative ;) Well, on the one hand the flags don;t seem to be too bad overall, but on the other hand there's the golden rule of Gentoo: Don't stuff around with CFLAGS Why not? Well, there's the ricer phenomenon where changed CFLAGS worsen performance and stability but the user's own bias convinces him/her that it's actually vastly improved. Some tweaks are perfectly OK, like the multimedia and cpu-specific stuff (sse, mmx and all their related cousins). These are normally safe and can give huge gains with video playback. Likewise for the GPU tweaks once those hit mainline usage. One last tweak, if the code is built on the machine that will run it (the usual case, replace -march and -mtune with just "-march=native". It has exactly the same effect but is easier to read, is self-documenting and allows the compiler to attempt it's best (the compiler usually does know much better what to do than you do) -- Alan McKinnnon alan.mckinnon@gmail.com