From: Jon Turney <jon.turney@dronecode.org.uk>
Cc: cygwin-apps@cygwin.com
Subject: Re: cygport may not create debug info if top directory contains a symlink
Date: Mon, 29 Apr 2024 20:44:03 +0100 [thread overview]
Message-ID: <cf83778f-c558-451e-b3ba-09b8027980cf@dronecode.org.uk> (raw)
In-Reply-To: <86ec734a-4277-f9be-81bb-75a4bbae6e76@Shaw.ca>
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...)
prev parent reply other threads:[~2024-04-29 19:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9bc07a5f-86d9-76ee-f45d-e1956c9035f8@t-online.de>
2023-09-17 14:01 ` Jon Turney
2023-09-17 15:56 ` Brian Inglis
2023-09-18 10:41 ` Christian Franke
2023-09-18 10:58 ` Achim Gratz
2023-09-18 17:24 ` Brian Inglis
2023-09-20 10:58 ` Christian Franke
2023-10-29 16:05 ` Jon Turney
2023-10-30 16:37 ` Christian Franke
2024-02-11 17:01 ` Jon Turney
2024-04-29 19:44 ` Jon Turney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cf83778f-c558-451e-b3ba-09b8027980cf@dronecode.org.uk \
--to=jon.turney@dronecode.org.uk \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).