X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AE20385041C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1602383547;
	bh=lKgLUp7yZZm9xtYJRF6RXolnFVFBTUJVAPotom0d7l8=;
	h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=ElnrZUOHihjsTBcY2XkQ6NGn/DjmHktllDLnjShyQFTp8+q0v8pVp8tyXFNxraK4a
	 fxVA35wDO8NlUKcynO/W75NRIzpFOlagvbCwvIa8dc8oDdwDbsj5p56DLMG7Uko0MD
	 bcw5Tz0Ta8KJ0Nzjm7afvDBCA6oQjtkl6djnBoVY=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B650F3857C67
X-Authority-Analysis: v=2.4 cv=Z5JSoFdA c=1 sm=1 tr=0 ts=5f826eb8
 a=95A0EdhkF1LMGt25d7h1IQ==:117 a=95A0EdhkF1LMGt25d7h1IQ==:17
 a=IkcTkHD0fZMA:10 a=SMorJkV_YP8A:10 a=afefHYAZSVUA:10
 a=VlcbR86_sxKHgt_W16sA:9 a=QEXdDO2ut3YA:10 a=Z5ABNNGmrOfJ6cZ5bIyy:22
 a=jd6J4Gguk5HxikPWLKER:22
To: Cygwin <cygwin@cygwin.com>
Subject: Build spends a long time in "mkimport".
X-PHP-Originating-Script: 501:rcmail.php
MIME-Version: 1.0
Date: Sat, 10 Oct 2020 19:32:22 -0700
Message-ID: <af9f360a0a782f3c4db698e9f4584d16@mail.kylheku.com>
X-Sender: 743-406-3965@kylheku.com
User-Agent: Roundcube Webmail/0.9.2
X-CMAE-Envelope: MS4xfKvlP+2NjQs+GLCJ9yrx3Pc9FE437b3moRKicJLdQBE/HjS904O2NhAIsUJQlKV8z/NpnZVOJ5YljSvP03MaERwcViLfOxfOsvIu4FKk99BHsMnCZDHZ
 /txgV0jEMZFg7uhw2H715lsskIjUu82ofrAeyu7awISoa1YmxginWkSG7CXZTD2Nzqvcsi0lUx72Ow==
X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,
 FROM_STARTS_WITH_NUMS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,
 SPF_PASS, TXREP autolearn=ham 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@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: "Kaz Kylheku \(Cygwin\) via Cygwin" <cygwin@cygwin.com>
Reply-To: "Kaz Kylheku \(Cygwin\)" <743-406-3965@kylheku.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Hi All,

When building the Cygwin DLL, this single step takes almost ten minutes:

   ../../.././winsup/cygwin/mkimport --cpu=i686 --ar=ar --as=as --nm=nm 
--objcopy=objcopy \
   --replace=atexit= --replace=timezone= --replace=uname=uname_x 
--replace=__xdrrec_getrec=

   [ .. SNIP ... ]

   --replace=truncate=_truncate64 libcygwin.a cygdll.a 
_cygwin_crt0_common.o \
   atexit.o cygwin_attach_dll.o cygwin_crt0.o dll_entry.o dll_main.o 
dso_handle.o \
   libcmain.o premain0.o premain1.o premain2.o premain3.o 
pseudo-reloc-dummy.o

What's puzzling is that there is very CPU activity during this time. 
It's launching
some objcopy commands.

Is there some documentation that provides an overview of what exactly 
this does,
other than studying its perl source code?

Maybe it can be sped up?

I'm going to have to cycle quite a few times on some changes, so this is 
frustrating.



--
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
