X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CA5F39A2004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1628911904; bh=qmt7lJA9c+Fx88UwrC8+9kOgkywPrJs9MpLXmZ4dXcs=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=N+YhWYG1ZaB66fWb01iK1Fgs5Gr8B3zvssl79ZtdT04hgRdClY8pAGUycgke+kGt/ DZagBq6wGywOGlp/pbDK8L2QMsQeOIJ+w5cALXgpzLfyXedRurQTmcbq1LUaABrXni cBWuDq3fupsSWxmm3PfMoFDYmlN3v9Sd9jkVh0nc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 63BD33897078 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 17E3S0HO014292 X-Nifty-SrcIP: [110.4.221.123] Date: Sat, 14 Aug 2021 12:28:10 +0900 To: cygwin AT cygwin DOT com Subject: Re: Just updated cygutils and cygstart no longer works Message-Id: <20210814122810.b1b751cf842b0f145387ef66@nifty.ne.jp> In-Reply-To: <831d3b59-0205-1d13-e5a0-2af494b7180c@maxrnd.com> References: <1318f7eb-abf0-bcc9-c040-3edc71602d6c AT maxrnd DOT com> <20210814105405 DOT 50c21fe7f450ca23dc774ebe AT nifty DOT ne DOT jp> <831d3b59-0205-1d13-e5a0-2af494b7180c AT maxrnd DOT com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, TXREP, T_SPF_TEMPERROR autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 17E3VjHf006006 On Fri, 13 Aug 2021 20:17:58 -0700 Mark Geisert wrote: > Brian Inglis wrote: > > On 2021-08-13 19:54, Takashi Yano via Cygwin wrote: > >> On Fri, 13 Aug 2021 15:20:40 -0700, Mark Geisert wrote: > >>> Jay Abel via Cygwin wrote: > >>>> On Fri, Aug 13, 2021 at 10:27 AM Jay Abel wrote: > > > >>>> Sorry, more information.  I'm running Windows 10, 64-bit, AMD. > >>>> > >>>> I've reverted cygutils back to 1.4.16-2 and the problem is resolved. > > > >>>>> Run cygstart with anything and no window opens.  I've tried URLS cygstart > >>>>> http://www.cygwin.com, directories cygstart . and cygstart ./  as well as > >>>>> pdf files cygstart example.pdf. > >>>>> None of these seems to do anything anymore. > > > >>> I have the same setup as you but all seems well here.  With 1.4.16-3 installed all > >>> four of your testcases work for me.  I don't know what to suggest. > >>> When you have a chance, what does 'echo $?' say at the prompt after cygstart > >>> finishes one of your testcases?  0 means successful, 1 (or something else) means > >>> failure. > > > >> I have the same issue with cygstart in cygutils 1.4.16-3. > >> "cygstart .; echo $?" says 0. > >> This issue only happens in 64bit cygwin and cygstart in 32bit cygwin works. > >> To look into this problem, I tried to build cygutils from source, > >> however, it fails in the link stage of getclip with the error: > >> /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: > >> src/clip/getclip.o: in function `getclip': > >> /usr/src/debug/cygutils-1.4.16-3/src/clip/getclip.c:431: undefined reference to > >> `__imp_RtlUnicodeToUTF8N' > >> It seems that -lntdll flag is required to build it. Doesn't this error > >> happen in your environment? > >> So I modified Makefile.am to: > >> src_clip_getclip_LDADD              = -lpopt -lntdll > >> src_clip_putclip_LDADD              = -lpopt -lntdll > >> and tried to build again and succeeded. > >> The cygstart built locally works fine. > >> So I tried to debug cygstart using gdb and it says: > >> Thread 1 received signal SIGILL, Illegal instruction. > >> The disassembling result at $rip is: > >> => 0x0000000100401c15 <+389>:   vmovdqa 0x18c3(%rip),%xmm0        # 0x1004034e0 > >> This is a AVX instruction. > >> My CPU is Core i7-870, which does not support AVX. > >> Then I ran cygstart in another machine whose CPU is Core i7-4790 > >> and it works without the issue. > >> Conclusion: > >> cygstart in cygutils 1.4.16-3 is compiled with AVX extentions, > >> therefore it can not run in old machine. > > > > Any chance this could have been built with test gcc 11 using non-standard values > > instead of defaults -march=x86-64/i686 -mtune=generic? > > No, gcc 10.2.0 was used with those defaults. In my environment: $ objdump -d /usr/bin/cygstart |grep vmovdqa 100401c15: c5 f9 6f 05 c3 18 00 vmovdqa 0x18c3(%rip),%xmm0 # 0x1004034e0 100401c21: c5 f9 6f 0d c7 18 00 vmovdqa 0x18c7(%rip),%xmm1 # 0x1004034f0 100401c2e: c5 f9 6f 15 ca 18 00 vmovdqa 0x18ca(%rip),%xmm2 # 0x100403500 100401c3b: c5 f9 6f 1d cd 18 00 vmovdqa 0x18cd(%rip),%xmm3 # 0x100403510 $ objdump -d cygutils-1.4.16-3.src/cygutils-1.4.16-3.x86_64/inst/usr/bin/cygstart | grep vmovdqa $ -- Takashi Yano -- 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