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 E914413838B for ; Tue, 30 Sep 2014 07:05:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7025E08AA; Tue, 30 Sep 2014 07:04:51 +0000 (UTC) Received: from smtpq1.gn.mail.iss.as9143.net (smtpq1.gn.mail.iss.as9143.net [212.54.34.164]) by pigeon.gentoo.org (Postfix) with ESMTP id 8D11FE088B for ; Tue, 30 Sep 2014 07:04:50 +0000 (UTC) Received: from [212.54.34.135] (helo=smtp4.gn.mail.iss.as9143.net) by smtpq1.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1XYrUK-000562-Pc for gentoo-user@lists.gentoo.org; Tue, 30 Sep 2014 09:04:44 +0200 Received: from 53579160.cm-6-8c.dynamic.ziggo.nl ([83.87.145.96] helo=data.antarean.org) by smtp4.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1XYrUK-0008Kj-Hd for gentoo-user@lists.gentoo.org; Tue, 30 Sep 2014 09:04:44 +0200 Received: from andromeda.localnet (unknown [62.41.73.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPSA id 2F0D54B for ; Tue, 30 Sep 2014 09:03:57 +0200 (CEST) From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: bloated by gcc Date: Tue, 30 Sep 2014 09:04:52 +0200 Message-ID: <3301629.ARpgpUkSiD@andromeda> Organization: Antarean User-Agent: KMail/4.12.5 (Linux/3.14.14-gentoo; KDE/4.12.5; x86_64; ; ) In-Reply-To: References: 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Ziggo-spambar: ---- X-Ziggo-spamscore: -4.9 X-Ziggo-spamreport: ALL_TRUSTED=-1,BAYES_00=-1.9,PROLO_TRUST_RDNS=-3,RDNS_DYNAMIC=0.982 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: eb447bd1-f3d8-47dc-a4e6-1ce745d0b698 X-Archives-Hash: 0b07b74c7cccaa07206dec1711d25a78 On Monday, September 29, 2014 12:37:37 AM Jorge Almeida wrote: > On Sun, Sep 28, 2014 at 10:56 PM, walt wrote: > > On 09/28/2014 01:44 AM, Jorge Almeida wrote: > >> I'm having a somewhat disgusting issue on my Gentoo: binaries are > >> unaccountably large. > > > > Are you cross-compiling for different hardware? I'm just curious what > > results you get with --march=native. > > Nope. Actually, I compiled with --march=native, with no difference > (probably because my code is not fancy enough to make use of whatever > stuff that pulls), but then tried i686 just to enable comparing with > non-Gentoo systems. > The purpose is to have small static binaries compiled against dietlibc > to be used in the same computer (compile once and forget about future > software incompatibilities!). I compiled against glibc to make sure > the problem is not with dietlibc. Did you compile the used libraries using the exact same options on both systems as well? When compiling a static binary, the libraries are included into the resulting binary. If the libraries on Gentoo are bigger, the resulting static binary will also be bigger. -- Joost