From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-043.btinternet.com (mailomta12-sa.btinternet.com [213.120.69.18]) by sourceware.org (Postfix) with ESMTPS id 764623858D3C for ; Mon, 29 Apr 2024 19:44:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 764623858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 764623858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=213.120.69.18 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714419850; cv=none; b=CquAU/HvifEC24pbSrPY5eT1zX2QjKq1U3+1E3/ijtQ2tjdr8zeGK3r1KBViY0uWZNIpmoqEhG2miUQe8K0m7ovElj+ZH9WPkYnJVQHImLg3oeXXW++fPXarvglG06aE7swldQqLhUDERJZH78OFHdrPPjFjblK4uP9An756WyE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714419850; c=relaxed/simple; bh=I3Fw/0Rw81aOtvZ04nYtC99WHvrxPV4DAL00cRRzbUw=; h=Message-ID:Date:MIME-Version:Subject:From; b=UeL0omSqGJrH/6BGgUdnRr100MOCrpwxNGGGfB2HW7sr0N+tZDdDeKGvyBFLCSCbaDwUm8R1jKtlVHRiRjFf7LIqr96LmVcW0JMS227GGhikH2qVnEmaUgIG0F+dNe7tMttem3jC6we8+UZI0l6ec3TPjCH0gGpHNhZFVqAl6jE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from sa-prd-rgout-001.btmx-prd.synchronoss.net ([10.2.38.4]) by sa-prd-fep-043.btinternet.com with ESMTP id <20240429194405.KNMI1396.sa-prd-fep-043.btinternet.com@sa-prd-rgout-001.btmx-prd.synchronoss.net> for ; Mon, 29 Apr 2024 20:44:05 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 656684A0121CF506 X-Originating-IP: [86.140.112.82] X-OWM-Source-IP: 86.140.112.82 X-OWM-Env-Sender: jon.turney@dronecode.org.uk X-VadeSecure-score: verdict=clean score=30/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvledrvdduuddgudefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenuchmihhsshhinhhgucfvqfcufhhivghlugculdeftddmnecujfgurhepkfffgggfufhfhfevjggtgfesthekredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepueetjeekledvudeludffuedvleeutdefgeevveefheejvdelffevhfduudetuefhnecukfhppeekiedrudegtddrudduvddrkedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudegtddrudduvddrkedvpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepuddprhgtphhtthhopegthihgfihinhdqrghpphhssegthihgfihinhdrtghomhdprhgvvhfkrfephhhoshhtkeeiqddugedtqdduuddvqdekvddrrhgrnhhgvgekiedqudegtddrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepshgrqdhprhgu qdhrghhouhhtqddttddu X-RazorGate-Vade-Verdict: clean 30 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.109] (86.140.112.82) by sa-prd-rgout-001.btmx-prd.synchronoss.net (authenticated as jonturney@btinternet.com) id 656684A0121CF506 for cygwin-apps@cygwin.com; Mon, 29 Apr 2024 20:44:05 +0100 Message-ID: Date: Mon, 29 Apr 2024 20:44:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: cygport may not create debug info if top directory contains a symlink References: <9bc07a5f-86d9-76ee-f45d-e1956c9035f8@t-online.de> <8f480c7f-e2d0-c2b2-f6fb-24a1e54c2b19@t-online.de> <86ec734a-4277-f9be-81bb-75a4bbae6e76@Shaw.ca> From: Jon Turney Content-Language: en-US Cc: cygwin-apps@cygwin.com In-Reply-To: <86ec734a-4277-f9be-81bb-75a4bbae6e76@Shaw.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,MISSING_HEADERS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 18/09/2023 18:24, Brian Inglis via Cygwin-apps wrote: > On 2023-09-18 04:41, Christian Franke via Cygwin-apps wrote: >> Brian Inglis wrote: >>> On 2023-09-17 08:01, Jon Turney via Cygwin-apps wrote: >>>> On 16/09/2023 15:17, Christian Franke via Cygwin wrote: >>>>> Found during tests of busybox package: >>>>> If the path of the top build directory contains a symlink and the >>>>> project's build scripts normalize pathnames, no debug info is >>>>> created by cygport. >>>>> >>>>> This is because options like >>>>>   -fdebug-prefix-map=${B}=/usr/src/debug/${PF} >>>>> have no effect because ${B} contains a symlink but the compiler is >>>>> run with the real source path. >>>> [...] > >>>> Sidenote: we should probably also be using file-prefix-map, now >>>> we're on a gcc which supports it. > > ... also macro-prefix-map, although it looks like changing to > -ffile-prefix-map is equivalent to -f*-prefix-map which future proofs > the options! So I updated to using -ffile-prefix-map in cygport 0.36.8, since that seems like the "Right Thing(TM)" I discovered today that, amazingly, this breaks compiling ruby, since in one place it does: #include __FILE__ (yeah, that's pretty jaw dropping...)