X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29029385829D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1707829359; bh=gHILo4TiQZnCo6tm/of2rCeqX3ByUbC5Wy6/YYniCAY=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=wQrYTB5FGMjl+TOmOdTjNxwlYPfLenjw4ZGdhrvmgE+toyz1HNpirOYnAk23s3GOL 2HthjkCZNylH0sMnurKW2uzd8sM9ZWZ5VRYxvwr3Gvr8RNfa6RBgte9GQ+YCwrbCVo 1daGw4zG0l6QoY4Ys2/tsQM/yyAupOOaNgZvRqv0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 68C503858294 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 68C503858294 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707829334; cv=none; b=e3+F38ZKQv5QvgFd9KnraV+xw6C7nrRq+XgkrA0tDzRxHfz+RZDZMVmbniWCKats3KlJS7pxm/lHX8ds3aBLkQCuwxTJHpGD+MSaTunZZu2LWzqGuVfQFp6oDuSG0IBmaUAbPxpldn9PgHxrkDeTrt1zDCbkm74OD59ktyLp95o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707829334; c=relaxed/simple; bh=SxrEKdypLI7bjbM2tyMQeqs0FPo7GeU1LY814mh+Abw=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=rWEszNywabiBs5p1OzmZ4Hecnsf5bXB2g9r8Z29j2unMsGqXLhVOtt/5b0uuYKE4ZV2sNOiz6SykIlDTyR/j5s49O79kXPkVg3ExXY6OrqHm8bQDCPOd4DBxtosZXNDslqlQYVDHCJZlzuVHCfi3Ihcyeet8UxTp6NQfxne0VQ4= ARC-Authentication-Results: i=1; server2.sourceware.org Subject: Re: cygport 0.36.8-1 To: cygwin AT cygwin DOT com References: <631b4e47-dc55-4385-85f0-a68cac5465c2 AT dronecode DOT org DOT uk> <52627581-8bcc-0f81-1706-cb5912e23641 AT t-online DOT de> <87cyt1ljam DOT fsf AT Gerda DOT invalid> <98aafc4a-18f3-4988-9d9d-6da2e8fee8a7 AT dronecode DOT org DOT uk> Message-ID: <13715df9-3883-e263-452c-40b10fea43bc@t-online.de> Date: Tue, 13 Feb 2024 14:02:09 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 SeaMonkey/2.53.16 MIME-Version: 1.0 In-Reply-To: <98aafc4a-18f3-4988-9d9d-6da2e8fee8a7@dronecode.org.uk> X-TOI-EXPURGATEID: 150726::1707829330-B880499C-0CF57D46/0/0 CLEAN NORMAL X-TOI-MSGID: 3837576a-27d3-4f5e-b403-0d7728804a00 X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_DMARC_STATUS, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Christian Franke via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Christian Franke Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Jon Turney via Cygwin wrote: > On 12/02/2024 16:49, ASSI via Cygwin wrote: >> Christian Franke via Cygwin writes: >>> This requires that always the same build directory is used. >> >> Would that be solvable by using -ffile-prefix-map or is there more to >> it? > > That should now be used in 0.36.8, so something else leaking the local > build directory into the package, perhaps A closer look shows that (only) the pathnames of the assembly (*.S) files in cygwin1.dll.dbg now contain the build path instead of the mapped path: $ strings cygwin1.dll.dbg | grep '^/.*bcopy\.S$' | uniq /tmp/build/cygwin-3.5.0-1.x86_64/src/newlib-cygwin/winsup/cygwin/x86_64/bcopy.S The paths in the released package are correct: $ strings /usr/lib/debug/usr/bin/cygwin1.dll.dbg | grep '^/.*bcopy\.S$' | uniq /usr/src/debug/cygwin-3.5.0-1/winsup/cygwin/x86_64/bcopy.S The regression was introduced by cygport commit 9e82685 in conjunction with the fact that --file-prefix-map has no effect on *.S files: Testcase: $ cygcheck -f /bin/as binutils-2.42-1 $ cygcheck -f /bin/gcc gcc-core-11.4.0-1 $ pwd /tmp/build $ echo ret > a.S $ echo > c.c $ gcc -c -g --file-prefix-map=/tmp/build=/foo/bar a.S c.c $ strings -f *.o | grep ': /' | uniq a.o: /tmp/build c.o: /foo/bar $ gcc -c -g --debug-prefix-map=/tmp/build=/foo/bar a.S c.c $ strings -f *.o | grep ': /' | uniq a.o: /foo/bar c.o: /foo/bar Also gcc builtin specs show that --file-prefix-map is not handled for asm: $ gcc -dumpspecs | fgrep -A1 '*asm_debug:' *asm_debug: %{%:debug-level-gt(0):%{gstabs*:--gstabs;:%{g*:}}} %{fdebug-prefix-map=*:--debug-prefix-map %*} -- Regards, Christian -- 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