delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/12/07:40:43

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 588883950C4D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1586691596;
bh=aR0SOHP5YQ4V1LcykNzqdpAMVSNOFpCH9+wkdiEKnTM=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=dn3AHBczUI7yM1cpUaQnRDIxDbNi0bDXpYaKWIJh3R+CtqpV3sQCmi+e6cZtJc8SS
HvsOSM93vMCH6dj3MQ8I2xF0Nhk5UsD2nyQOTWU6nPP93KhM0Fc/t0fkoWRztLQd0d
T4emhO/OvMvq19D36fHeSyjo/l5d+DLis9h4icmM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 22DEB3950C41
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=jVIi+1Ui9vZhAKzbOsEyqhVBDJ88Eck3JNA55iB20Lc=;
b=MaTd2Y6TRAU502QyfgcVY8aA7IBc7jWRSDu3Em7jRLzgek0aFAi1M1mSYgkHm7Clia
W/k8UFNhxfmXkj8JZmb2+irAbjKYGxvk++UNZlvfP6lMudj9QCImysNAe/n7Ez0UaVuV
nM8dW7t/nZT1T2fUijaGJbPJBeqngrQ1ronwKrXU9XHFGRuMyiwa8ybVDCPg1kDRrpnK
L255gKPuULgI+LUj1+VA08Om7kbxtFvauVEpa8XpiPDfiNi1/qHRfLfAljQR1IfwGqX6
VumgR602aKhybCVJHwiosDaP5zjL3kEhZ9ZCWoA7WmqXpD1V7JSlWtfZ/udMs0ADU4z1
3N3g==
X-Gm-Message-State: AGi0PuamhmRQxGsijU5VzFa6G34RN4XzJyjUqk2eMyf5rmEEYjmrHTF4
IX/Jfj4bXT9Y8mFHPvlfA8ndIsiXFRAHpczC+wI=
X-Google-Smtp-Source: APiQypLYbUk+SBCPSRjY2ojlZObrOX1sZZNNl1PTj2RwLcTmBbTEGEUYQBqPB+dsZAsdH6N8HYJEMPwGRHaQqkUpCKI=
X-Received: by 2002:aa7:ca0b:: with SMTP id y11mr4121957eds.387.1586691592064;
Sun, 12 Apr 2020 04:39:52 -0700 (PDT)
MIME-Version: 1.0
References: <CAJn6YFC-brTm=nkC9_MdgZp3rj+NeMSctUYxk-8wsUThxQmRfQ AT mail DOT gmail DOT com>
<53361671-369b-0fac-039c-65150ea859ac AT gmail DOT com>
<CAJn6YFAxGLcGgWCGTo3DH13Xo2fPZL7NH+pZvpWSR0KnqhmjuA AT mail DOT gmail DOT com>
<6ab7f1ca-ec73-ee9e-4003-44bb15017eeb AT gmail DOT com>
In-Reply-To: <6ab7f1ca-ec73-ee9e-4003-44bb15017eeb@gmail.com>
Date: Sun, 12 Apr 2020 04:39:41 -0700
Message-ID: <CAJn6YFAHgQ40T+vPuQMAP9Z8Om6nrvWYoAB5LjgkUcopa0y0Dw@mail.gmail.com>
Subject: Re: g++ with -fprofile-dir flag has a bug (backslash instead of
forward-slash issue)
To: JonY <10walls AT gmail DOT com>
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT 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 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>
From: John Selbie via Cygwin <cygwin AT cygwin DOT com>
Reply-To: John Selbie <jselbie AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

I would file a bug, but that link you provided takes me to a sign-up page
that says, "Account creation restricted.  Please contact ... response
within 24 hours..."

A quick cursory glace of GCC sources would suggest the issue is in
\gcc\coverage.c. This is a snippit of a function that builds the mangled
path for the .gcda file.

          if (profile_data_prefix)
        {
#if HAVE_DOS_BASED_FILE_SYSTEM
     const char *separator = "\\";
    #else
     const char *separator = "/";
    #endif
     filename = concat (getpwd (), separator, filename, NULL);
     filename = mangle_path (filename);
     len = strlen (filename);
    }

I'm not an expert on building gcc.  I just suspect that somewhere in the
build chain  HAVE_DOS_BASED_FILE_SYSTEM is getting defined for or by cygwin.

Another cursory search of gcc sources suggest HAVE_DOS_BASED_FILE_SYSTEM is
defined by this preprocessor stuff:

#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) || defined
(__CYGWIN__)
#  ifndef HAVE_DOS_BASED_FILE_SYSTEM
#    define HAVE_DOS_BASED_FILE_SYSTEM 1
#  endif

Still a gcc bug?  I'm guessing so.




On Sun, Apr 12, 2020 at 4:26 AM JonY via Cygwin <cygwin AT cygwin DOT com> wrote:

> On 4/12/20 10:59 AM, John Selbie via Cygwin wrote:
> > Sure, but this bug is unique to cygwin.  Why would that be there bug?
> >
>
> Because Cygwin does not modify gcc to use Windows paths.
>
> --
> 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
>
--
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