X-Loop: help-debbugs@HIDDEN Subject: bug#20622: libtool 2.4.6: incorrect linking with tcc under GNU/Linux Resent-From: Vincent Lefevre <vincent@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Thu, 21 May 2015 16:42:02 +0000 Resent-Message-ID: <handler.20622.B.14322264918692 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 20622 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 20622 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-libtool@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.14322264918692 (code B ref -1); Thu, 21 May 2015 16:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 May 2015 16:41:31 +0000 Received: from localhost ([127.0.0.1]:52330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YvTXF-0002G6-Kg for submit <at> debbugs.gnu.org; Thu, 21 May 2015 12:41:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51082) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <vincent@HIDDEN>) id 1YvTXC-0002Ft-Rd for submit <at> debbugs.gnu.org; Thu, 21 May 2015 12:41:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1YvTX6-00039M-NY for submit <at> debbugs.gnu.org; Thu, 21 May 2015 12:41:21 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1YvTX6-00039I-Ko for submit <at> debbugs.gnu.org; Thu, 21 May 2015 12:41:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1YvTX5-0008W1-Jt for bug-libtool@HIDDEN; Thu, 21 May 2015 12:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1YvTX2-00038n-2g for bug-libtool@HIDDEN; Thu, 21 May 2015 12:41:19 -0400 Received: from ioooi.vinc17.net ([92.243.22.117]:45431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1YvTX1-00033z-Tb for bug-libtool@HIDDEN; Thu, 21 May 2015 12:41:16 -0400 Received: from smtp-xvii.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by ioooi.vinc17.net (Postfix) with ESMTPSA id 9A0AD7C8; Thu, 21 May 2015 18:41:08 +0200 (CEST) Received: by xvii.vinc17.org (Postfix, from userid 1000) id 287E421A079; Thu, 21 May 2015 18:41:08 +0200 (CEST) Date: Thu, 21 May 2015 18:41:07 +0200 From: Vincent Lefevre <vincent@HIDDEN> Message-ID: <20150521164107.GA19980@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, bug-libtool@HIDDEN MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6449-vl-r76280 (2015-05-18) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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.15 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 (-----) I've installed libtool 2.4.6 on my Debian unstable machine in some non-system directory. When I build GNU MPFR with CC=3Dtcc LD=3Dtcc, I get things like: libtool: link: tcc -O2 -o tzeta_ui tzeta_ui.o -L../src/.libs ./.libs/l= ibfrtests.a -lm ../src/.libs/libmpfr.so -lgmp The problem is that the MPFR library used at run time is not ../src/.libs/libmpfr.so but the one installed on the system. When I use libtool 2.4.2 with the following patch: --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -4375,6 +4375,14 @@ _LT_TAGVAR(lt_prog_compiler_pic, $1)=3D'-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)=3D'-Bstatic' ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + # When it learns to make shared objects, it will + # presumably use -fPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=3D'-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)=3D'-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)=3D'-static' + ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) I get: libtool: link: tcc -O2 -o tzeta_ui tzeta_ui.o -L../src/.libs ./.libs/l= ibfrtests.a -lm ../src/.libs/libmpfr.a -lgmp (libmpfr.a instead of libmpfr.so) and the problem doesn't occur. So, either libtool should select libmpfr.a as before or it should make sure that the correct full path to libmpfr.so be used (something like run path setting?). --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Vincent Lefevre <vincent@HIDDEN> Subject: bug#20622: Acknowledgement (libtool 2.4.6: incorrect linking with tcc under GNU/Linux) Message-ID: <handler.20622.B.14322264918692.ack <at> debbugs.gnu.org> References: <20150521164107.GA19980@HIDDEN> X-Gnu-PR-Message: ack 20622 X-Gnu-PR-Package: libtool Reply-To: 20622 <at> debbugs.gnu.org Date: Thu, 21 May 2015 16:42: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 20622 <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 20622: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20622 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#20622: libtool 2.4.6: incorrect linking with tcc under GNU/Linux Resent-From: Vincent Lefevre <vincent@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Thu, 21 May 2015 16:55:03 +0000 Resent-Message-ID: <handler.20622.B20622.14322272429830 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20622 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 20622 <at> debbugs.gnu.org Received: via spool by 20622-submit <at> debbugs.gnu.org id=B20622.14322272429830 (code B ref 20622); Thu, 21 May 2015 16:55:03 +0000 Received: (at 20622) by debbugs.gnu.org; 21 May 2015 16:54:02 +0000 Received: from localhost ([127.0.0.1]:52336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YvTjN-0002YP-5k for submit <at> debbugs.gnu.org; Thu, 21 May 2015 12:54:01 -0400 Received: from ioooi.vinc17.net ([92.243.22.117]:38194) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <vincent@HIDDEN>) id 1YvTjL-0002YH-1J for 20622 <at> debbugs.gnu.org; Thu, 21 May 2015 12:53:59 -0400 Received: from smtp-xvii.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by ioooi.vinc17.net (Postfix) with ESMTPSA id ECC99606; Thu, 21 May 2015 18:53:57 +0200 (CEST) Received: by xvii.vinc17.org (Postfix, from userid 1000) id B124721A079; Thu, 21 May 2015 18:53:57 +0200 (CEST) Date: Thu, 21 May 2015 18:53:57 +0200 From: Vincent Lefevre <vincent@HIDDEN> Message-ID: <20150521165357.GG7702@HIDDEN> References: <20150521164107.GA19980@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150521164107.GA19980@HIDDEN> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6449-vl-r76280 (2015-05-18) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) In libtool.m4, tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes if I replace "yes" by "no", libmpfr.a is used and the problem disappears. -- Vincent Lefèvre <vincent@HIDDEN> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
X-Loop: help-debbugs@HIDDEN Subject: bug#20622: libtool 2.4.6: incorrect linking with tcc under GNU/Linux Resent-From: Vincent Lefevre <vincent@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Fri, 22 May 2015 09:31:02 +0000 Resent-Message-ID: <handler.20622.B20622.14322870262113 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20622 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 20622 <at> debbugs.gnu.org Received: via spool by 20622-submit <at> debbugs.gnu.org id=B20622.14322870262113 (code B ref 20622); Fri, 22 May 2015 09:31:02 +0000 Received: (at 20622) by debbugs.gnu.org; 22 May 2015 09:30:26 +0000 Received: from localhost ([127.0.0.1]:52564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YvjHd-0000Y1-Dw for submit <at> debbugs.gnu.org; Fri, 22 May 2015 05:30:25 -0400 Received: from ypig.lip.ens-lyon.fr ([140.77.13.48]:54089) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <vincent@HIDDEN>) id 1YvjHa-0000Xr-L1 for 20622 <at> debbugs.gnu.org; Fri, 22 May 2015 05:30:23 -0400 Received: from vlefevre by ypig.lip.ens-lyon.fr with local (Exim 4.85) (envelope-from <vincent@HIDDEN>) id 1YvjHZ-0002Mz-H7; Fri, 22 May 2015 11:30:21 +0200 Date: Fri, 22 May 2015 11:30:21 +0200 From: Vincent Lefevre <vincent@HIDDEN> Message-ID: <20150522093021.GA8981@HIDDEN> References: <20150521164107.GA19980@HIDDEN> <20150521165357.GG7702@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150521165357.GG7702@HIDDEN> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6449-vl-r76280 (2015-05-18) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) On 2015-05-21 18:53:57 +0200, Vincent Lefevre wrote: > In libtool.m4, > > tcc*) > # Fabrice Bellard et al's Tiny C Compiler > _LT_TAGVAR(ld_shlibs, $1)=yes > > if I replace "yes" by "no", libmpfr.a is used and the problem > disappears. Or better, using a run path like with gcc fixes the problem. I've just sent a patch to libtool-patches. I'm not quite sure whether both instances of _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' are necessary (but this seems to be done for other compilers). -- Vincent Lefèvre <vincent@HIDDEN> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
X-Loop: help-debbugs@HIDDEN Subject: bug#20622: libtool 2.4.6: incorrect linking with tcc under GNU/Linux Resent-From: Vincent Lefevre <vincent@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Mon, 08 Feb 2016 13:11:01 +0000 Resent-Message-ID: <handler.20622.B20622.14549370132718 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 20622 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 20622 <at> debbugs.gnu.org Received: via spool by 20622-submit <at> debbugs.gnu.org id=B20622.14549370132718 (code B ref 20622); Mon, 08 Feb 2016 13:11:01 +0000 Received: (at 20622) by debbugs.gnu.org; 8 Feb 2016 13:10:13 +0000 Received: from localhost ([127.0.0.1]:38116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1aSla1-0000hm-ED for submit <at> debbugs.gnu.org; Mon, 08 Feb 2016 08:10:13 -0500 Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:34400) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from <vincent@HIDDEN>) id 1aSlZz-0000hd-Pu for 20622 <at> debbugs.gnu.org; Mon, 08 Feb 2016 08:10:12 -0500 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.86) (envelope-from <vincent@HIDDEN>) id 1aSlZy-0007S7-NK; Mon, 08 Feb 2016 14:10:10 +0100 Date: Mon, 8 Feb 2016 14:10:10 +0100 From: Vincent Lefevre <vincent@HIDDEN> Message-ID: <20160208131010.GB2053@HIDDEN> References: <20150521164107.GA19980@HIDDEN> <20150521165357.GG7702@HIDDEN> <20150522093021.GA8981@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150522093021.GA8981@HIDDEN> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.24-6554-vl-r83103 (2016-01-26) X-Spam-Score: 0.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: 0.0 (/) On 2015-05-22 11:30:21 +0200, Vincent Lefevre wrote: > Or better, using a run path like with gcc fixes the problem. I've > just sent a patch to libtool-patches. I'm not quite sure whether > both instances of > > _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' > > are necessary (but this seems to be done for other compilers). Here's the URL of my patch: https://lists.gnu.org/archive/html/libtool-patches/2015-05/msg00000.html -- Vincent Lefèvre <vincent@HIDDEN> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.