From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3585 invoked by alias); 5 Mar 2017 02:49:26 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3016 invoked by uid 89); 5 Mar 2017 02:48:33 -0000 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*cygwin.com, H*MI:sk:8fa02a7, HCc:U*cygwin, replied X-HELO: sasl.smtp.pobox.com Received: from pb-smtp1.pobox.com (HELO sasl.smtp.pobox.com) (64.147.108.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 05 Mar 2017 02:48:31 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id A20B5764F3; Sat, 4 Mar 2017 21:48:29 -0500 (EST) Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 9A01E764F2; Sat, 4 Mar 2017 21:48:29 -0500 (EST) Received: from [192.168.1.4] (unknown [76.215.41.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id D54E7764F1; Sat, 4 Mar 2017 21:48:28 -0500 (EST) Subject: Re: Strange errors running gcc tests on Cygwin To: Tim Prince References: <8fa02a72-e684-2ead-eacb-a5347d7594ae@pobox.com> Cc: JonY <10walls@gmail.com>, cygwin@cygwin.com From: Daniel Santos Message-ID: <82b31abc-7b7f-8f13-fc22-521c9ef84abf@pobox.com> Date: Sun, 05 Mar 2017 02:49:00 -0000 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: <8fa02a72-e684-2ead-eacb-a5347d7594ae@pobox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: 367451DA-014E-11E7-9F1B-97B1B46B9B0B-06139138!pb-smtp1.pobox.com X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00057.txt.bz2 HAH! Well I hadn't actually subscribed to the mailing list and decided to check the archive to see if anybody replied only to the list. (I'm subscribed now) > In order to test gfortran 7.1 without installing, you will need to copy > cyggfortran-4.dll into a folder which is on LD_LIBRARY_PATH. make check > uses only the dll paths associated with the active gcc (presumably your > bootstrap compiler). There should be no reason to have to install gfortran. The gcc documentation (https://gcc.gnu.org/install/prerequisites.html) states the compiler requirements to be a working ISO C++98 compiler and makes no mention of the need for an existing Fortran compiler or libraries. This has all been built in the bootstrap. $ ll $(pwd)/x86_64-pc-cygwin/libgfortran/.libs/cyggfortran-4.dll -rwxrwxr-x+ 1 daniel None 9124325 Mar 3 19:15 /d/builds/head-test-unpatched-x86_64-pc-cygwin/x86_64-pc-cygwin/libgfortran/.libs/cyggfortran-4.dll* > Why not compare your configure and test results > against gcc test results posts? Well, that's the silly thing; when I ran all of this on my patched code, I did not get these errors. I'm planning on re-running them kind-of in hopes that I *will* get these errors so that my compare will be clean, but to me this is still not good. make check should NEVER be using any native compilers or gcc libraries because that would entirely defeat the purpose of doing the tests. I would like to understand what it causing this. Perhaps it is some type of regression? Note that it claims to be setting the LD_LIBRARY_PATH with this directory as the second element: Setting LD_LIBRARY_PATH to .:/d/builds/head-test-unpatched-x86_64-pc-cygwin/x86_64-pc-cygwin/./libgfortran/.libs:/d/builds/head-test-unpatched-x86_64-pc-cygwin/x86_64-pc-cygwin/./libquadmath/.libs:/d/builds/head-test-unpatched-x86_64-pc-cygwin/gcc:.:/d/builds/head-test-unpatched-x86_64-pc-cygwin/x86_64-pc-cygwin/./libgfortran/.libs:/d/builds/head-test-unpatched-x86_64-pc-cygwin/x86_64-pc-cygwin/./libquadmath/.libs:/d/builds/head-test-unpatched-x86_64-pc-cygwin/gcc spawn [open ...] D:/builds/head-test-unpatched-x86_64-pc-cygwin/gcc/testsuite/gfortran2/sync_3.exe: error while loading shared libraries: cyggfortran-4.dll: cannot open shared object file: No such file or directory 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 -- 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