delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/04/23:20:23

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=tayowIoiIk6lBnVP
jPbbUbkOtw50S9zvj1ludHwzTmiHRUFM9HloWcPMfsf3klkXHdiokn3GbRyga1xg
PQUPlkfrEZ3QPTx9SmDyV8UK3YKs4DCdwoDyiR3nkkN3hbVd9FaewfmK1HYLCLDa
+cVYb72lKs268FxRiKuCaIExv64=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=GhqzWhyywGEMBEOF1TVZBg
yRipg=; b=U7mN1T88Mqq8e3X/iIPn7897s/8Uj4sMKxuIcpsEGNZpgjoCwOsKne
0i1pZWTWlDQgR0JvPW5K+9auMViVj8TFIuWTzw9xlyPmmuHzBvpV7+AlWezX35/W
qSdtOFSgLxYnFd0EHDLJHMyhMWxV61uUsfgPe8XJVXvzJmDSTxr8o=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=HCc:D*aol.com, luckily, H*i:sk:8bda181, H*f:sk:8bda181
X-HELO: sasl.smtp.pobox.com
Subject: Re: Strange errors running gcc tests on Cygwin
To: JonY <10walls AT gmail DOT com>
References: <8fa02a72-e684-2ead-eacb-a5347d7594ae AT pobox DOT com> <82b31abc-7b7f-8f13-fc22-521c9ef84abf AT pobox DOT com> <8bda181f-f0bc-b0dc-2d2d-1bb17031ccee AT gmail DOT com>
Cc: Tim Prince <n8tm AT aol DOT com>, cygwin AT cygwin DOT com
From: Daniel Santos <daniel DOT santos AT pobox DOT com>
Message-ID: <bb343976-2680-3537-b517-e566a79bc914@pobox.com>
Date: Sat, 4 Mar 2017 22:24:07 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <8bda181f-f0bc-b0dc-2d2d-1bb17031ccee@gmail.com>
X-Pobox-Relay-ID: 009F6ECA-015B-11E7-B076-97B1B46B9B0B-06139138!pb-smtp1.pobox.com
X-IsSubscribed: yes

On 03/04/2017 09:46 PM, JonY wrote:

> Cygwin does NOT use LD_LIBRARY_PATH, Cygwin uses PATH like all Windows
> programs. It is one aspect that does not conform to *nix expectations.

Wonderful, this simplifies it greatly!  I was wondering why the dlls 
were under /usr/bin. :)  Anyway, I'm waiting for the gcc bugzilla 
database to come back up and I'll file the bug.

> Running tests under Cygwin is also complicated by the condition all DLLs
> do not get rebased at runtime, or a fork() can fail.
>
>> This further implies that, if it is looking in the local environment for
>> a library and not the build tree, then *all* test results could be
>> invalid due to it using compilers and libraries locally installed rather
>> than from the build tree, which would be very bad -- a regression that
>> hides other regressions!
>>
>> As much as I just want to get my own tests done, I suppose I better
>> debug this. *sigh*
>>
>> Daniel
>>
>>
> I suppose you can try to run s/LD_LIBRARY_PATH/PATH/g to see how it goes.

Well since I've gone this far I might as well come up with a patch for 
the problem as well.  Luckily, I somehow made a mistake about the 
problem *not* happening on my first run of tests because I double 
checked and it did!  I guess the compare_tests script isn't perfect.  
Also, I should make certain that this doesn't affect other tests (for 
instance, we need to be certain that we're loading the correct libgcc).

Thanks for the help!
Daniel

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019