From debbugs-submit-bounces@debbugs.gnu.org Fri May 22 23:22:04 2020 Received: (at submit) by debbugs.gnu.org; 23 May 2020 03:22:04 +0000 Received: from localhost ([127.0.0.1]:33197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcKjc-0001i6-2l for submit@debbugs.gnu.org; Fri, 22 May 2020 23:22:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:43740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcKii-0001gL-8O for submit@debbugs.gnu.org; Fri, 22 May 2020 23:21:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcKii-0005cn-2T for bug-libtool@gnu.org; Fri, 22 May 2020 23:21:08 -0400 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]:41808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcKih-0006Cb-C9 for bug-libtool@gnu.org; Fri, 22 May 2020 23:21:07 -0400 Received: by mail-oi1-x235.google.com with SMTP id 23so9839820oiq.8 for ; Fri, 22 May 2020 20:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HAFuWKQcTQ45FNs5taNuxKUkZs5xaG3tfzngLKrUoQg=; b=fYxVON1TZOvvycYM7nWRPztqKJci/HiRi0qaQCRNUmkYlermu+UXlkwdQaz+UzZqS8 ZJwf/JwANDzdRoeE2f1iboDCAGYcWsiThLE3vcaAJ1F2zRHbRD59Lr1wvbpEwEG5ctWH OBqXRXsuJJikCmsOVETwi+wKtshh6fe5QMu9m0cLXixMRQ2WZC+Qg89HcBNSk2FOs0Nk TmdER9xdm0XuipuNG2SFF8Spts317p34MGvNNcZSf9AZRF0Ncze5rUIZER/MHrxHeQ7S kSULYNUlIKgC05/k4N5lMkhQGqMwg6+qJZnvXdm2sxj871krVUX39QxXo3wMRvZ9HTGP +sIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HAFuWKQcTQ45FNs5taNuxKUkZs5xaG3tfzngLKrUoQg=; b=VTjfu6ZORM79boS1ezOV/DEiSPiioH7+HHq7iXpzy+gdS90tyzZ/KPyF+KpixftSdb dDdTlF0E0q/Yk4P//g2fHkckaOJlKLoGpk/TCmVgWYcz2tYW+laljeBsDhG6LfAQJJVV SIgCnGq1dZCgvac9x01duS9zQHVf9jNVH2NLckdgW8OpFPONOoCcRbf/ICQyk5w5MA0R AXw5fdHQJSEzzFz4tZlL3AChpjAS81v2Hoom6dzoq1XJEZSKREJOQkiYwX93Nik21/yC xDPrIx8Js+DJIASyyi8h7I9qdT0r3Vr2t3k8Zrcn0CNM5bcGovjM+JHMIMwkegn/HQRK 6CuA== X-Gm-Message-State: AOAM533YXuCZo02X5CRLCvWTW8En6aZ+9CMRy4fBsrmHJyILx+QIIPFt KwhpIRE+NsET2eLvRBsOyeeD/QnGaEvUE7z7yqOzbnVCbuM= X-Google-Smtp-Source: ABdhPJzfX0EzDZExwZG0HdEe/jZ41SIkdYIUYHMosJtc4sYNIkMfUW7dG1tYjgT0B1IomPLDKce0rj2lSz7rbLOyOvw= X-Received: by 2002:aca:2b04:: with SMTP id i4mr4879256oik.39.1590204065102; Fri, 22 May 2020 20:21:05 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?6Zi/5biD?= Date: Sat, 23 May 2020 13:20:53 +1000 Message-ID: Subject: Libtool "func_convert_core_msys_to_w32" Hang To: bug-libtool@gnu.org Content-Type: multipart/alternative; boundary="0000000000006bbf5005a6483c2d" Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=abucomic2015@gmail.com; helo=mail-oi1-x235.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 22 May 2020 23:22:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --0000000000006bbf5005a6483c2d Content-Type: text/plain; charset="UTF-8" Hi, I might have found a (tiny) bug when using libtool (packaged along with another project, libffi) under Cygwin on Windows 10 (64-bit) and mingw64 to compile the project: when the command ./libtool -v --tag=CC --mode=link x86_64-w64-mingw32-gcc -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -W all -fexceptions -o libffi_convenience.la src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closur es.lo src/x86/ffiw64.lo src/x86/win64.lo was executed by 'make', the process hangs. After it was re-executed in debug mode, I found out that the command which caused it to hang was sed -e 's/[ ]*$//' -e 's|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' which is in line 964 of build-aux/ltmain.in: instead of having cmd.exe to exit after the command was executed (the '/c' argument), it remains open and waiting for the user's input due to the unrecognized argument '//c'. The problem was fixed after I changed line 963 to func_convert_core_msys_to_w32_result=`( cmd */c* echo "$1" ) 2>/dev/null | Perhaps you would want to consider fixing the problem? Regards, Hongtian Yu --0000000000006bbf5005a6483c2d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi= ,

I might have found a (tiny) bug when using libto= ol (packaged along with another project, libffi) under Cygwin on Windows 10= (64-bit) and mingw64 to compile the project: when the command=C2=A0
<= div>
=C2=A0 =C2=A0=C2=A0./libtool -v --tag=3DCC=C2=A0=C2=A0 --mode=3Dlin= k x86_64-w64-mingw32-gcc=C2=A0 -O3 -fomit-frame-pointer -fstrict-aliasing -= ffast-math -W
all -fexceptions=C2=A0=C2=A0 -o libffi_convenience.la=C2=A0 src/prep_cif.lo src/types.lo= src/raw_api.lo src/java_raw_api.lo src/closur
es.lo=C2=A0=C2=A0 src/x86= /ffiw64.lo src/x86/win64.lo

was executed by 'make', the process hangs. After i= t was re-executed in debug mode, I found out that the command which caused = it to hang was
=C2=A0 =C2=A0 sed -e = 's/[ ]*$//' -e 's|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
which is in line 964 of build-aux/ltm= ain.in: instead of having cmd.exe to exit after the command was execute= d (the '/c' argument), it remains open and waiting for the user'= ;s input due to the unrecognized argument '//c'. The problem was fi= xed after I changed line 963 to
= =C2=A0 =C2=A0 func_convert_core_msys_to_w32= _result=3D`( cmd /c echo "$1&quo= t; ) 2>/dev/null |
Perh= aps you would want to consider fixing the problem?

Regards,
Hongtian Yu
--0000000000006bbf5005a6483c2d--