From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-159007-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id AEA4A13838B
	for <garchives@archives.gentoo.org>; Mon, 29 Sep 2014 18:26:26 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 97BC6E0A63;
	Mon, 29 Sep 2014 18:26:21 +0000 (UTC)
Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 50483E0A02
	for <gentoo-user@lists.gentoo.org>; Mon, 29 Sep 2014 18:26:20 +0000 (UTC)
Received: by mail-la0-f53.google.com with SMTP id gq15so878618lab.40
        for <gentoo-user@lists.gentoo.org>; Mon, 29 Sep 2014 11:26:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        bh=D0q6/bvruZ59mzT+c2cJFg6nYovqQdKRYIqCKzNQe0c=;
        b=Ri7sWsy80VbnZdPraeva7b+ltyX4JpwO7gT0d5KPXIwZIDs/k6s1vblHK3YCR7U+e0
         bnhpJC+OprxpeJ1JomthbUB2eaaWqzU0RfFta0pSVZYEtZyxouOpwvaWG2ysod4h1iBZ
         nmH9PAdlPPdHVhe+7E4BJ7IMsCjHIkcVsdbh+ptTvc08c2UK4LxqrBD2tNxZDR8DvlK/
         oTj8Xs6tWS/lCFZQcRp/2FH0diAJxDyiHLeMJu0tiNGQe5Ag2ud4Gu1c6MMwM4pMMUwe
         jQOTKTr7JwCOXhbNcVer+j8JUT7sNSLKKVd4PIUD667BlA6O6Oa3yyO+JzWdk5Zb+uea
         H9hw==
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
X-Received: by 10.112.161.234 with SMTP id xv10mr5119521lbb.96.1412015178740;
 Mon, 29 Sep 2014 11:26:18 -0700 (PDT)
Received: by 10.114.57.141 with HTTP; Mon, 29 Sep 2014 11:26:18 -0700 (PDT)
In-Reply-To: <925D9E96-29E5-4517-A7BF-F5C975BEF92C@stellar.eclipse.co.uk>
References: <CAKpSnpJj2mPs6qmOUutRYbtkPi04-+O=h5uruanDHY6bc5RmYA@mail.gmail.com>
	<54298A6B.7060309@admin-box.com>
	<925D9E96-29E5-4517-A7BF-F5C975BEF92C@stellar.eclipse.co.uk>
Date: Mon, 29 Sep 2014 19:26:18 +0100
Message-ID: <CAKpSnp+Zq1_8TqPHe3Cao7f0vzQzs1eyiRXJaQPUywRRgwazHg@mail.gmail.com>
Subject: Re: [gentoo-user] bloated by gcc
From: Jorge Almeida <jjalmeida@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 916e34e0-1e42-4f87-8f97-232519f07611
X-Archives-Hash: b396e74584b5cd5a1af60f855c95f5e4

On Mon, Sep 29, 2014 at 7:03 PM, Stroller
<stroller@stellar.eclipse.co.uk> wrote:
>
> On Mon, 29 September 2014, at 5:35 pm, Daniel Troeder <daniel@admin-box.c=
om> wrote:
>> =E2=80=A6
>> IMO you shouldn't compare 4.8.x with 4.9.x.
>
> Definitely this.
>
> OP should be doing everything he can to match the environment on both sys=
tems.
>
> This means matching versions of gcc, glibc and of all their libraries and=
 other dependencies. And of the libraries and dependencies for the program =
he's attempting to compile.

Since the problem is the same with dietlibc, glibc is not causing the
discrepancy. And my program doesn't use any other library besides the
C standard lib (glibc/dietlibc) and linux system calls.

Emerging gcc 4.9.1 now... I'll try compiling my program against
dietlibc, since replacing glibc seems scary.

>
> Note that gcc has a "vanilla" USE flag - I think it's disabled by default=
.

Sorry, should have mentioned that. I had the default flags. I just
tried "vanilla" in case some patch would be causing the problem. No
difference. (Same applies to the "nopie"  flag.)
>
Thanks,

Jorge