delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/22/16:20:16

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE245385E00E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1584908376;
bh=eQYAx0/w02uA/pIHCiivjKp3oJ1OrRspiaR7FXDAzl0=;
h=Subject:From:To:Date:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From;
b=Ag1kdCyOe73XLXbea96YTOX5n1xGLT3iGu6WAjYFGRv+0TcXR5uxnbFQasXdpe3bq
R3gAQKGiyM2i6dB/TXEAb0hfFsOpUy+snW6VjFe9px0HDEPRwrVFq0sUoI+zdwPbbk
RtUScBpDQlhfnq5tSDWL5oDg/7dMyeBKY0D1eBqs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0CBE8385E000
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org;
spf=fail smtp.mailfrom=yselkowitz AT cygwin DOT com
X-MC-Unique: qmlFoFxLNuufmaizcQZoow-1
Message-ID: <4b93cb17c7c59a459eceae350125657ce6823da1.camel@cygwin.com>
Subject: Re: [ANNOUNCEMENT] Updated: binutils-2.34+1git.de9c1b7cfe-1
(x86/x86_64)
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Date: Sun, 22 Mar 2020 16:19:28 -0400
In-Reply-To: <900c1391-59bd-52b2-d5d7-f0097000dad6@gmail.com>
References: <CAAXzdLWXD09FkgTmo2FY0kH4NmyYeAu9gnQaarkwYxKjYjOx3Q AT mail DOT gmail DOT com>
<dba4e3cf-bbfc-8c49-3177-5c15c7936c4b AT gmail DOT com>
<f88b5a5d-279a-7765-574f-a9cbbef540c6 AT SystematicSw DOT ab DOT ca>
<8a6c6dcd-c235-a2bd-1437-c7efa8ba529b AT t-online DOT de>
<dae4b90b-e43e-86cd-0bc0-f0fe42e5ae52 AT gmail DOT com>
<900c1391-59bd-52b2-d5d7-f0097000dad6 AT gmail DOT com>
User-Agent: Evolution 3.34.4 (3.34.4-1.fc31)
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: cygwin.com
X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NEUTRAL,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: Cygwin mailing list <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 02MKK3FX011239

On Sat, 2020-03-21 at 07:40 +0100, Marco Atzeri via Cygwin wrote:
> Am 21.03.2020 um 05:55 schrieb Marco Atzeri:
> > Am 20.03.2020 um 20:24 schrieb Hans-Bernhard Bröker:
> > > Am 20.03.2020 um 00:18 schrieb Brian Inglis:
> > > > On 2020-03-18 23:25, Marco Atzeri via Cygwin wrote:
> > > > > It seems something is adding 5M or more to the normal
> > > > > size of the programs
> > > > 
> > > > See attached for summary details by arch, but main points for both 
> > > > are, on x86_64:
> > > [...]
> > > 
> > > Could this be due to the ginormous number of targets configured into 
> > > the build?
> > 
> > may be, as it also take ages to full compile with the
> > current configuration:
> > 
> > #       --enable-shared
> > CYGCONF_ARGS="
> >          --enable-install-libiberty
> >          --disable-gdb
> >          --disable-libdecnumber
> >          --disable-readline
> >          --disable-sim
> >          --enable-64-bit-bfd
> >          --enable-targets=all
> > "
> > 
> > I am testing a build dropping the "enable-targets=all"
> > and also forcing the "enable-shared"
> > 
> >       --enable-shared \
> >          lt_cv_deplibs_check_method=pass_all

If that doesn't work, feel free to borrow:

https://github.com/cygwinports/binutils/blob/master/2.24.51-shared-libs.patch

However, these libraries are (by design) API-unstable, so is not
recommended to allow other code to link against these shared libs,
therefore I would also suggest:

https://github.com/cygwinports/binutils/blob/master/binutils.cygport#L30-L38

> > Hoping it will note ages again....
> 
> "NOT take"
> 
> dropping the target seems to work very well
> 
> current version
> $ du -sb /usr/bin/gprof.exe
> 5424147 /usr/bin/gprof.exe
> 
> under build
> $ du -sb gprof/gprof.exe
> 19968   gprof/gprof.exe
> 
> any clue why we are using a "enable-targets=all" options ?

Not sure, but if it's just so that 32-bit utils can read 64-bit
binaries (which is useful), --enable-targets=x86_64-pep should be
enough.

> Any cross compiler should use its own binutils not the cygwin one, correct ?

Yes, regardless.

--
Yaakov


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019