X-Loop: help-debbugs@HIDDEN Subject: bug#24768: uninstalled executable does not work when compiling for 32-bit Cygwin Resent-From: Bruno Haible <bruno@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Sat, 22 Oct 2016 22:29:02 +0000 Resent-Message-ID: <handler.24768.B.147717532914470 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 24768 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 24768 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-libtool@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.147717532914470 (code B ref -1); Sat, 22 Oct 2016 22:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Oct 2016 22:28:49 +0000 Received: from localhost ([127.0.0.1]:46655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1by4mW-0003lK-PH for submit <at> debbugs.gnu.org; Sat, 22 Oct 2016 18:28:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bruno@HIDDEN>) id 1by4mU-0003l7-Oh for submit <at> debbugs.gnu.org; Sat, 22 Oct 2016 18:28:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1by4mO-00080y-HW for submit <at> debbugs.gnu.org; Sat, 22 Oct 2016 18:28:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1by4mO-00080u-Er for submit <at> debbugs.gnu.org; Sat, 22 Oct 2016 18:28:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1by4mN-0008JW-8L for bug-libtool@HIDDEN; Sat, 22 Oct 2016 18:28:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1by4mK-00080a-4o for bug-libtool@HIDDEN; Sat, 22 Oct 2016 18:28:39 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::12]:30691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1by4mJ-00080V-Qt for bug-libtool@HIDDEN; Sat, 22 Oct 2016 18:28:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1477175313; l=2323; s=domk; d=clisp.org; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Date:Subject:To: From; bh=6EBr86alSdRvgLU5WsAvmnCvUp2Qg3TD+xD0EOhj/TY=; b=Cb8E9+0sKczslzsGvBIbj/BAjStGtFxRQ0MdHboy7BllQ/jypHyGWurhf7xYYVidDQE 1FzFBvEkkyI7O0zCsgGhvVkdzU/oEc2k6Hmopv+JH/bkLVyZnfzoairqxBwSVwjaM8aio bqUTzBQ1f5dop4DJ6AY2EWgR1jvIwzJpU9o= X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRavU45dI= X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de (dslb-088-068-033-007.088.068.pools.vodafone-ip.de [88.68.33.7]) by smtp.strato.de (RZmta 39.6 DYNA|AUTH) with ESMTPSA id g047fds9MMSXpFa (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sun, 23 Oct 2016 00:28:33 +0200 (CEST) From: Bruno Haible <bruno@HIDDEN> Date: Sun, 23 Oct 2016 00:28:24 +0200 Message-ID: <1945105.KzLkeD6sz9@HIDDEN> User-Agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) Hi, A 64-bit Cygwin environment [on Windows 10 in my case] (canonical platform triplet: x86_64-pc-cygwin) has the following cross-compilation toolchains (all installable through setup-x86_64.exe): * i686-pc-cygwin (32-bit Cygwin) * i686-w64-mingw32 (32-bit mingw) * x86_64-w64-mingw32 (64-bit mingw) and the executables built with the corresponding *-gcc compilers work out-of- the-box (since they are Windows executables). The problem ----------- When compiling for 32-bit Cygwin a package that uses GNU libtool to create a shared library and link with this shared library, uninstalled executables (i.e. the executables in the build tree before "make install") do not work. In order to make them work it is necessary to augment PATH: add the particular .libs directory(ies) that contain the library(ies) that the program is linked against. I think this is a bug because - Other platforms do not have this problem (not even 32-bit mingw or 64-bit mingw). - The .libs directory is an undocumented internal of GNU libtool. How to reproduce ---------------- The package below is a GNU libiconv snapshot with GNU libtool 2.4.6. $ wget http://www.haible.de/bruno/gnu/libiconv-20161022.tar.gz $ tar xvfz libiconv-20161022.tar.gz $ cd libiconv $ PATH=/usr/local/cygwin32/bin:/usr/i686-pc-cygwin/sys-root/usr/bin:$PATH $ ./configure --host=i686-pc-cygwin --prefix=/usr/local/cygwin32 \ CC=i686-pc-cygwin-gcc \ CXX=i686-pc-cygwin-g++ \ CPPFLAGS="-I/usr/local/cygwin32/include -Wall" \ LDFLAGS="-L/usr/local/cygwin32/lib" ... $ make ... $ src/iconv_no_i18n.exe --help $ echo $? 127 $ PATH=lib/.libs:$PATH src/iconv_no_i18n.exe --help Usage: iconv_no_i18n.exe ... ... $ echo $? 0 For comparison, it works when compiling to 32-bit mingw ------------------------------------------------------- $ PATH=/usr/local/mingw32/bin:$PATH $ ./configure --host=i686-w64-mingw32 --prefix=/usr/local/mingw32 \ CC=i686-w64-mingw32-gcc \ CXX=i686-w64-mingw32-g++ \ CPPFLAGS="-I/usr/local/mingw32/include -Wall" \ LDFLAGS="-L/usr/local/mingw32/lib" ... $ make ... $ src/iconv_no_i18n.exe --help Usage: iconv_no_i18n.exe ... ... $ echo $? 0 Best regards, Bruno -- In memoriam Nunilo and Alodia <http://en.wikipedia.org/wiki/Nunilo_and_Alodia>
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Bruno Haible <bruno@HIDDEN> Subject: bug#24768: Acknowledgement (uninstalled executable does not work when compiling for 32-bit Cygwin) Message-ID: <handler.24768.B.147717532914470.ack <at> debbugs.gnu.org> References: <1945105.KzLkeD6sz9@HIDDEN> X-Gnu-PR-Message: ack 24768 X-Gnu-PR-Package: libtool Reply-To: 24768 <at> debbugs.gnu.org Date: Sat, 22 Oct 2016 22:29:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-libtool@HIDDEN If you wish to submit further information on this problem, please send it to 24768 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 24768: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24768 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#24768: uninstalled executable does not work when compiling for 32-bit Cygwin Resent-From: Bruno Haible <bruno@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Sat, 19 Nov 2016 00:23:02 +0000 Resent-Message-ID: <handler.24768.B24768.14795149809021 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 24768 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 24768 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-libtool@HIDDEN X-Debbugs-Original-Cc: 24768 <at> debbugs.gnu.org Received: via spool by 24768-submit <at> debbugs.gnu.org id=B24768.14795149809021 (code B ref 24768); Sat, 19 Nov 2016 00:23:02 +0000 Received: (at 24768) by debbugs.gnu.org; 19 Nov 2016 00:23:00 +0000 Received: from localhost ([127.0.0.1]:34315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1c7tQp-0002LQ-PA for submit <at> debbugs.gnu.org; Fri, 18 Nov 2016 19:22:59 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.216]:15399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bruno@HIDDEN>) id 1c7tQn-0002LC-7v for 24768 <at> debbugs.gnu.org; Fri, 18 Nov 2016 19:22:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1479514976; l=359; s=domk; d=clisp.org; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Date:Subject:Cc:To:From; bh=KOqogzSWSwxNcDH5HwKksrKQnVSJvqLAV3Mff71NQ9Q=; b=BimjwNu8zlNf2GXSjFhSGvtiV8FiaPtZnYgR6M8Vt/Jn1xaQ/BMh2c+iGLeYgsSz4G SwMZatBdLFXvmg2N2eM2qVrQvP9Tdsu9e7fy3zNfKQSYmR5+ZP2RxZ4haqMT7xpvYAbA Lcz7APR0TwC+93j8Rdkuo7VB9DB8rVzRDIK3k= X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRavU44/ecdQ== X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de (dslb-088-068-033-140.088.068.pools.vodafone-ip.de [88.68.33.140]) by smtp.strato.de (RZmta 39.9 DYNA|AUTH) with ESMTPSA id 400514sAJ0Mtw4u (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 19 Nov 2016 01:22:55 +0100 (CET) From: Bruno Haible <bruno@HIDDEN> Date: Sat, 19 Nov 2016 01:22:54 +0100 Message-ID: <29601929.cEAydMiyRn@HIDDEN> User-Agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; ) In-Reply-To: <1945105.KzLkeD6sz9@HIDDEN> References: <1945105.KzLkeD6sz9@HIDDEN> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) A more detailed analysis of the problem submitted in http://lists.gnu.org/archive/html/bug-libtool/2016-10/msg00000.html has been sent to the cygwin mailing list: https://cygwin.com/ml/cygwin/2016-11/msg00242.html The workaround is to build *outside* the /home and /usr file hierarchies of Cygwin. Somewhere in /cygdrive/c/Users for example. Bruno
X-Loop: help-debbugs@HIDDEN Subject: bug#24768: uninstalled executable does not work when compiling for 32-bit Cygwin Resent-From: Bruno Haible <bruno@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Sat, 19 Nov 2016 00:27:02 +0000 Resent-Message-ID: <handler.24768.B.14795151749366 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 24768 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 24768 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-libtool@HIDDEN X-Debbugs-Original-Cc: 24768 <at> debbugs.gnu.org Received: via spool by submit <at> debbugs.gnu.org id=B.14795151749366 (code B ref -1); Sat, 19 Nov 2016 00:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Nov 2016 00:26:14 +0000 Received: from localhost ([127.0.0.1]:34321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1c7tTy-0002R0-6A for submit <at> debbugs.gnu.org; Fri, 18 Nov 2016 19:26:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bruno@HIDDEN>) id 1c7tTw-0002Ql-OV for submit <at> debbugs.gnu.org; Fri, 18 Nov 2016 19:26:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1c7tTq-0003mp-Un for submit <at> debbugs.gnu.org; Fri, 18 Nov 2016 19:26:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1c7tTq-0003ml-Ri for submit <at> debbugs.gnu.org; Fri, 18 Nov 2016 19:26:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1c7tTp-0006GY-Ly for bug-libtool@HIDDEN; Fri, 18 Nov 2016 19:26:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1c7tTm-0003lF-IA for bug-libtool@HIDDEN; Fri, 18 Nov 2016 19:26:05 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::9]:9609) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <bruno@HIDDEN>) id 1c7tTm-0003kO-99 for bug-libtool@HIDDEN; Fri, 18 Nov 2016 19:26:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1479515160; l=359; s=domk; d=clisp.org; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Date:Subject:Cc:To:From; bh=KOqogzSWSwxNcDH5HwKksrKQnVSJvqLAV3Mff71NQ9Q=; b=H4gusTDwseAOKba6u939ZAOh8jasQLE7kJSdvCnrrHytQoN7x9tlVzgfeFFXlE/+n0 Uxoq77GXjtomyBGp78ZE213blouKnmb2JUM+iiuyo74gTAhDrN2nIPko4m5+v/aWsnhP B+jkOJPmArR6CwoXnNSZVAnlQvtdHg0Vy6k00= X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRavU44/ecdQ== X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de (dslb-088-068-033-140.088.068.pools.vodafone-ip.de [88.68.33.140]) by smtp.strato.de (RZmta 39.9 DYNA|AUTH) with ESMTPSA id 400514sAJ0Mtw4u (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 19 Nov 2016 01:22:55 +0100 (CET) From: Bruno Haible <bruno@HIDDEN> Date: Sat, 19 Nov 2016 01:22:54 +0100 Message-ID: <29601929.cEAydMiyRn@HIDDEN> User-Agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; ) In-Reply-To: <1945105.KzLkeD6sz9@HIDDEN> References: <1945105.KzLkeD6sz9@HIDDEN> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) A more detailed analysis of the problem submitted in http://lists.gnu.org/archive/html/bug-libtool/2016-10/msg00000.html has been sent to the cygwin mailing list: https://cygwin.com/ml/cygwin/2016-11/msg00242.html The workaround is to build *outside* the /home and /usr file hierarchies of Cygwin. Somewhere in /cygdrive/c/Users for example. Bruno
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.