From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by sourceware.org (Postfix) with ESMTPS id E1C0E3858C41 for ; Mon, 4 Mar 2024 21:20:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E1C0E3858C41 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=SystematicSw.ab.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E1C0E3858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=216.40.44.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709587253; cv=none; b=PYRstWCN3XXXxvQQF0G35xXmqUu6OiPGLj34KuJt2ELlnTWBzxzrSRlYnL92j2FabcCDJSMiJyt/PgF3LFpi+lJ12vMcAq1O9sXY5MrswzhnVs0eM8PI68Ze6DOJKeykrStZL4bl4gB4Yqtx7+sNFIxaXBL5Z6QOsaNJEuRhyZc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709587253; c=relaxed/simple; bh=yJIJvewGWixJh10y2ijGMTjhh0jwnARabUL7gYeRJPU=; h=Message-ID:Date:MIME-Version:From:Subject:To; b=Z8kFFuyanCsaxJpD5Fxp2U5gTfKXO4etgklo2/bscV8GcFcSKU3g6srAqST2aCEY/yd3223cWBAHJ+qgd1l7keHkoykdLkWdI0SLRovWlMk2zc6vi+F8zV5SW/UZ7GnpkRNI/ROdPdrxGxllgdLb4XchKrnE/s5gUux2e1tSF1U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from omf18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 4ED711A010B for ; Mon, 4 Mar 2024 21:20:51 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: Brian.Inglis@SystematicSW.ab.ca) by omf18.hostedemail.com (Postfix) with ESMTPA id D3A072F for ; Mon, 4 Mar 2024 21:20:49 +0000 (UTC) Message-ID: Date: Mon, 4 Mar 2024 14:20:48 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Brian Inglis Reply-To: cygwin-apps@cygwin.com Subject: Re: mingw cross tests missing DLLs - CROSS_BINDIR not in PATH Content-Language: en-CA To: cygwin-apps@cygwin.com References: <9a19c716-ad2a-49ee-8b2e-1bd343be9cb9@SystematicSW.ab.ca> <3a5f7a2d-da80-4de1-825f-b298b7cd9f77@dronecode.org.uk> <5aab37d9-db10-4af2-b6e0-b5ff74d1180d@SystematicSw.ab.ca> <91a1b888-07ad-40e4-acaf-793521302d44@dronecode.org.uk> Organization: Systematic Software In-Reply-To: <91a1b888-07ad-40e4-acaf-793521302d44@dronecode.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D3A072F X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Stat-Signature: kyn7foayp6tjgzqf5dtab73ahneiu95w X-Rspamd-Server: rspamout04 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1/dR5G4RAi6OUvPnFbnngr5Oe/vXj8R0JQ= X-HE-Tag: 1709587249-9376 X-HE-Meta: U2FsdGVkX19lx/KgfdesZDh/Do6zqdkgyW/4J03hkkzqVLq+HIIgJj2oMRPz0fHU8klcB3L+6/OxMq/3OamVKyMPyYAlFGdUW+FzqxktLuRdbXrvOtKTyOMVwo4ryU1BnhlDvvT8Bp1pBEi8CkuZzQRGY+fD/oBKRPS0dZEMcVRvnZF+ofeiBEmRNv01H4sA8DE4C3gM0CD9TYYTnJSkd4GAsYcSEZXKgsCrWzDbGkbJvv+Zos8erxa/RQgunpXXzwgw1pH8619J5XWaGNjRMw/AO7rBJxybE93wz7wMXLS07drj6Atha7Up9KZB6hUpBoXENKqye+04G8Qsp9EHB267yKa8JEPQ X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2024-03-04 13:00, Jon Turney wrote: > On 03/03/2024 22:29, Brian Inglis via Cygwin-apps wrote: >> On 2024-03-03 14:39, Jon Turney via Cygwin-apps wrote: >>> On 03/03/2024 16:48, Brian Inglis via Cygwin-apps wrote: >>>> I am finding mingw package cross tests fail with missing DLLs - CROSS_BINDIR >>>> is not in the PATH. >>>> >>>> I now have to define src_test to run cygtest adding CROSS_BINDIR in the PATH. >>>> >>>> Is this likely to be upstream (e.g. gnulib) changes or cygport changes? >> >>> This is a shortcoming of cygport, in that you cannot just write "do the >>> standard src_(compile|install|test), but do this extra thing first (like >>> modifying PATH as you need in this case). >>> >>> (One approach to this I've though about would be to have a hook function (or >>> set of functions) which are called before each phase of operation, to allow >>> this) >> >> These test failures have been only in the latest upstream releases. >> Previously no PATH fiddling was required. >> For mingw64-x86_64-nghttp2 that was 2024-01-21. >> >> Why I asked if anyone noticed any cross build changes as for example in >> autotools, gnulib, or cygport? > > I assumed that you were talking about "PATH needs to be set so that dependencies > of the built DLL can be loaded" > > But, now I look, mingw64-x86_64-nghttp2 doesn't have any dependencies. > > So, I'm not so sure. Maybe you just mean that the test harness can't locate the > just built DLL? That could well be an upstream change. > > Maybe you could show the actual error? Sorry I was not clearer. In previous release build checks there were no issues. In the latest release the test programs have a dependency on winpthreads and failed with popup dialogues: main.exe - System Error ... ALSO failmalloc.exe - System Error X The code execution cannot proceed because libwinpthread-1.dll was not found. Reinstalling the program may fix this problem. $ cygcheck -f /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll mingw64-x86_64-winpthreads-11.0.1-1 Similar result as: $ cygcheck mingw64-x86_64-nghttp2-1.60.0-1.noarch/build/tests/{main,failmalloc} cygcheck: track_down: could not find libwinpthread-1.dll C:/.../usr/src/nghttp2/mingw64-x86_64-nghttp2/mingw64-x86_64-nghttp2-1.60.0-1.noarch/build/tests/main.exe C:/WINDOWS/system32/KERNEL32.dll C:/WINDOWS/system32/ntdll.dll C:/WINDOWS/system32/KERNELBASE.dll C:/WINDOWS/system32/msvcrt.dll cygcheck: track_down: could not find libwinpthread-1.dll C:/.../usr/src/nghttp2/mingw64-x86_64-nghttp2/mingw64-x86_64-nghttp2-1.60.0-1.noarch/build/tests/failmalloc.exe C:/WINDOWS/system32/KERNEL32.dll C:/WINDOWS/system32/ntdll.dll C:/WINDOWS/system32/KERNELBASE.dll C:/WINDOWS/system32/msvcrt.dll $ PATH="/usr/x86_64-w64-mingw32/sys-root/mingw/bin/:$PATH" \ cygcheck mingw64-x86_64-nghttp2-1.60.0-1.noarch/build/tests/{main,failmalloc} C:/.../usr/src/nghttp2/mingw64-x86_64-nghttp2/mingw64-x86_64-nghttp2-1.60.0-1.noarch/build/tests/main.exe C:/WINDOWS/system32/KERNEL32.dll C:/WINDOWS/system32/ntdll.dll C:/WINDOWS/system32/KERNELBASE.dll C:/WINDOWS/system32/msvcrt.dll C:/.../usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll C:/.../usr/src/nghttp2/mingw64-x86_64-nghttp2/mingw64-x86_64-nghttp2-1.60.0-1.noarch/build/tests/failmalloc.exe C:/WINDOWS/system32/KERNEL32.dll C:/WINDOWS/system32/ntdll.dll C:/WINDOWS/system32/KERNELBASE.dll C:/WINDOWS/system32/msvcrt.dll C:/.../usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry