Received: (at 17750) by debbugs.gnu.org; 3 May 2019 13:55:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 03 09:55:57 2019 Received: from localhost ([127.0.0.1]:49272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hMYfN-0007Up-Hl for submit <at> debbugs.gnu.org; Fri, 03 May 2019 09:55:57 -0400 Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:40146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vincent@HIDDEN>) id 1hMYfL-0007Uh-FL for 17750 <at> debbugs.gnu.org; Fri, 03 May 2019 09:55:56 -0400 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.92) (envelope-from <vincent@HIDDEN>) id 1hMYfJ-00025o-Vq; Fri, 03 May 2019 15:55:53 +0200 Date: Fri, 3 May 2019 15:55:53 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Julian Taylor <jtaylor.debian@HIDDEN> Subject: Re: libtool strips fcilkplus and sanitizer flags Message-ID: <20190503135553.GA26493@HIDDEN> References: <53976641.3070305@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <53976641.3070305@HIDDEN> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.11.4+195 (861a7e47) vl-117499 (2019-05-02) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17750 Cc: 17750 <at> debbugs.gnu.org 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: -1.0 (-) Hi, On 2014-06-10 22:10:41 +0200, Julian Taylor wrote: > This is identical to libtools stripping of fopenmp and the fix is the > same, add -fcilkplus to the whitelist. > > Similar the new -fsanitizer= flags are stripped from LDFLAGS, they > should probably be added too. The -fsanitizer=* one was fixed in 2015, but there are still issues due to the fact that -static-* options are not passed to the linker (-static-libasan in my case). I've posted a patch for both -fcilkplus and -static-* there: http://lists.gnu.org/archive/html/libtool-patches/2019-05/msg00000.html For Debian users, it does not apply, and I've posted a specific patch there: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751161#14 -- 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)
bug-libtool@HIDDEN
:bug#17750
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 10 Jun 2014 20:22:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 10 16:22:31 2014 Received: from localhost ([127.0.0.1]:43223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1WuSYw-0003rM-EP for submit <at> debbugs.gnu.org; Tue, 10 Jun 2014 16:22:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37218) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <jtaylor.debian@HIDDEN>) id 1WuSO3-0003Z7-E8 for submit <at> debbugs.gnu.org; Tue, 10 Jun 2014 16:11:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jtaylor.debian@HIDDEN>) id 1WuSNt-00028j-0N for submit <at> debbugs.gnu.org; Tue, 10 Jun 2014 16:11:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <jtaylor.debian@HIDDEN>) id 1WuSNs-00028f-Tw for submit <at> debbugs.gnu.org; Tue, 10 Jun 2014 16:11:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <jtaylor.debian@HIDDEN>) id 1WuSNn-0003Ak-E3 for bug-libtool@HIDDEN; Tue, 10 Jun 2014 16:11:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jtaylor.debian@HIDDEN>) id 1WuSNi-00027b-08 for bug-libtool@HIDDEN; Tue, 10 Jun 2014 16:10:59 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:56427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <jtaylor.debian@HIDDEN>) id 1WuSNh-00027O-Nr for bug-libtool@HIDDEN; Tue, 10 Jun 2014 16:10:53 -0400 Received: by mail-wi0-f170.google.com with SMTP id cc10so2291859wib.1 for <bug-libtool@HIDDEN>; Tue, 10 Jun 2014 13:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=8UY6Z1grWAbM7cTF7nXD+3TtWoj6pMfniutcQGf4vvY=; b=pf8J8nX2DxdO0yHP6WBeInEPAzAUCeyJaJen9o2aLiXHwILXZfPUGq3keQ18QJt5/7 CZAeYH+70HfkpVe2QnHhCLVpG/piuPH23LULFyz4WgeSZLhRbTgw0g0JQvAfFxCdv0MW 2JmuV0PGhaZJ53JsW1jhed9rp8YGMl/QpGziYc0ipdBFm8/KTcmMk+pR5soVevE+K3UJ 62qznqtUGVSDeTln3nJ9yL2sC0VBzFB7sWILqGC+Ccrc3Xr7WF5fjR2BTWGuxWbgaxCD PnXaCVNAN+XI8xyn3iHSD0jTJbSM1VmBTqm4j4B0mo/ZR/cO/TGugInrsN4PsAi3Gt93 lzjQ== X-Received: by 10.14.194.136 with SMTP id m8mr3083293een.4.1402431052172; Tue, 10 Jun 2014 13:10:52 -0700 (PDT) Received: from [192.168.2.105] (p5B340657.dip0.t-ipconnect.de. [91.52.6.87]) by mx.google.com with ESMTPSA id e6sm51342155eem.44.2014.06.10.13.10.50 for <bug-libtool@HIDDEN> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 13:10:51 -0700 (PDT) Message-ID: <53976641.3070305@HIDDEN> Date: Tue, 10 Jun 2014 22:10:41 +0200 From: Julian Taylor <jtaylor.debian@HIDDEN> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: bug-libtool@HIDDEN Subject: libtool strips fcilkplus and sanitizer flags X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="c1UpqkEWQ8bsluxu2Gimf6cs9ojinpGoS" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 10 Jun 2014 16:22:28 -0400 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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://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: <http://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: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --c1UpqkEWQ8bsluxu2Gimf6cs9ojinpGoS Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi, gcc-4.9 now supports cilkplus with the -fcilkplus flag. libtool strips this flag from LDFLAGS leading to an wrongly linked librar= y. To reproduce choose a random libtool based project (e.g. libmatheval) and add this function in a random file (e.g. lib/node.c): #include <cilk/cilk.h> int n(char * a) { a =3D cilk_spawn atoi(a); return a; } then configure build with: =2E/configure CFLAGS=3D"-fcilkplus" LDFLAGS=3D"-fcilkplus" CC=3Dgcc-4.9 during linking -fcilkplus is not used and the library is underlinked root@ubuntu:/libmatheval-1.1.11+dfsg# ldd -r ./lib/.libs/libmatheval.so linux-vdso.so.1 (0x00007fffccdc4000) /usr/lib/libeatmydata/libeatmydata.so (0x00007eff50cfd000) /usr/lib/cowdancer/libcowdancer.so (0x00007eff50af9000) libm.so.6 =3D> /lib/x86_64-linux-gnu/libm.so.6 (0x00007eff507f3000) libc.so.6 =3D> /lib/x86_64-linux-gnu/libc.so.6 (0x00007eff5044a000) libdl.so.2 =3D> /lib/x86_64-linux-gnu/libdl.so.2 (0x00007eff50246000) /lib64/ld-linux-x86-64.so.2 (0x00007eff5110f000) undefined symbol: __cilkrts_rethrow (./lib/.libs/libmatheval.so) undefined symbol: __cilkrts_enter_frame_1 (./lib/.libs/libmatheval.so) undefined symbol: __cilkrts_save_fp_ctrl_state (./lib/.libs/libmatheval.s= o) undefined symbol: __cilkrts_sync (./lib/.libs/libmatheval.so) undefined symbol: __cilkrts_leave_frame (./lib/.libs/libmatheval.so) undefined symbol: __cilkrts_enter_frame_fast_1 (./lib/.libs/libmatheval.s= o) it needs to be linked against libcilkrts.so.5 This is identical to libtools stripping of fopenmp and the fix is the same, add -fcilkplus to the whitelist. Similar the new -fsanitizer=3D flags are stripped from LDFLAGS, they should probably be added too. Cheers, Julian Taylor --c1UpqkEWQ8bsluxu2Gimf6cs9ojinpGoS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJTl2ZJAAoJEDLMSqwCh1b/NWoP/0bHQsLrWb00B5oENtXuZC5a WYO+MC8bSCEdV7mr2F0mCrEyAN+mYuKhA6o4XJTZ7bhn3dOfOKnVFzXsiqHyYt4c cmy6Ox87McGGO7qpGT0YVWLe6k2SVY1mXXRybsfHZcigCzCrvsmb4Z4tVUb7kiVW QvcXAxHKLsx+Ytg4S0Gue5Z6k663BirwBgL/HxX6Bev77gvxmuc9402piQiIUgoJ EDihKcVnMa3pYiG2N/wF4Lg0zm85WLNR6/S8H/4Zm1U4bFTsMg53s1BKthylEBKO 67crg02bG45fZ/CGoEu/owt4G+iVtkqhrhza9i46/L1bk8uucyC4PeFByWF0NaI4 pkPdmy4ks43sILJW9UF0q5Kd/oZ2MxLYnVgo8LJ8yHaa2uKPII52U3pJpdB5PMQ/ yMdKodIEFIRY4rKkHYFsxCI+AfjuLWuuPzoRRbamG0upxKCzLLOQlMIAMX1wnIAO srY02Os0B5XMWTScyi4ZYsL6BmkaM/bXhHtVQZzevp6gpQRfwAiJXUAYFiOtBLgh B7aBWUVuYckzdo0oVOzoEVbY31UA/AwoXegxp+q6/6J0J8Rarw9z6psNjk9ZUjDA GxoE0CTMgGEBVL5dUIw/plXH2FrLslvF8igc6jp617W09NELQQ+aOUo+eRXp7b0T lie58PybpN5n8Mzc+2ti =3+cK -----END PGP SIGNATURE----- --c1UpqkEWQ8bsluxu2Gimf6cs9ojinpGoS--
Julian Taylor <jtaylor.debian@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#17750
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.