Debian Bug report logs - #663693
tcc should support the -Wl,-rpath -Wl,<some_path> form

version graph

Package: tcc; Maintainer for tcc is Thomas Preud'homme <robotux@debian.org>; Source for tcc is src:tcc (PTS, buildd, popcon).

Reported by: Vincent Lefevre <vincent@vinc17.net>

Date: Tue, 13 Mar 2012 12:33:13 UTC

Severity: wishlist

Tags: fixed-upstream, patch, upstream

Found in version tcc/0.9.26~git20120104.83d57c0-4

Fixed in version tcc/0.9.26~git20120104.83d57c0-5

Done: Thomas Preud'homme <robotux@celest.fr>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Aurélien GÉRÔME <ag@debian.org>:
Bug#663693; Package tcc. (Tue, 13 Mar 2012 12:33:16 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Lefevre <vincent@vinc17.net>:
New Bug report received and forwarded. Copy sent to Aurélien GÉRÔME <ag@debian.org>. (Tue, 13 Mar 2012 12:33:19 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vincent Lefevre <vincent@vinc17.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tcc should support the -rpath option
Date: Tue, 13 Mar 2012 13:15:38 +0100
[Message part 1 (text/plain, inline)]
Package: tcc
Version: 0.9.26~git20120104.83d57c0-4
Severity: wishlist
Tags: upstream patch

tcc should support the -rpath option, as it is generated by libtool
(e.g. to be able to build the MPFR tests with shared libraries
enabled). The attached patch does that (please review it, as I am
not familiar with the tcc code).

The patch itself seems to work on my x86_64 machine (though running
the test is another problem...). At least its behavior is equivalent
to -Wl,-rpath.

Note that it does not free the memory explicitly when the program
ends. I don't think this is a problem in practice, except when
testing with tools like valgrind.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tcc depends on:
ii  dpkg          1.16.1.2
ii  install-info  4.13a.dfsg.1-8
ii  libc6         2.13-27

Versions of packages tcc recommends:
ii  libc6-dev [libc-dev]  2.13-27

tcc suggests no packages.

-- no debconf information
[tcc-rpath-opt.patch (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Aurélien GÉRÔME <ag@debian.org>:
Bug#663693; Package tcc. (Tue, 13 Mar 2012 19:12:08 GMT) (full text, mbox, link).


Acknowledgement sent to robotux@celest.fr:
Extra info received and forwarded to list. Copy sent to Aurélien GÉRÔME <ag@debian.org>. (Tue, 13 Mar 2012 19:12:08 GMT) (full text, mbox, link).


Message #10 received at 663693@bugs.debian.org (full text, mbox, reply):

From: "Thomas Preud'homme" <robotux@celest.fr>
To: Vincent Lefevre <vincent@vinc17.net>, 663693@bugs.debian.org
Subject: Re: Bug#663693: tcc should support the -rpath option
Date: Tue, 13 Mar 2012 20:09:56 +0100
[Message part 1 (text/plain, inline)]
Le mardi 13 mars 2012 13:15:38, vous avez écrit :
> Package: tcc
> Version: 0.9.26~git20120104.83d57c0-4
> Severity: wishlist
> Tags: upstream patch
> 
> tcc should support the -rpath option, as it is generated by libtool
> (e.g. to be able to build the MPFR tests with shared libraries
> enabled). The attached patch does that (please review it, as I am
> not familiar with the tcc code).
I don't understand. How can libtool generate -rpath when even gcc doesn't 
support it? It's a linker option, not a compiler option. Although tcc can link 
files itself, it is not advertised as a linker.

There is support for -Wl,-rpath so the code is clearly implemented. If -rpath 
option does not exist it must be for a good reason.
> 
> The patch itself seems to work on my x86_64 machine (though running
> the test is another problem...). At least its behavior is equivalent
> to -Wl,-rpath.
> 
> Note that it does not free the memory explicitly when the program
> ends. I don't think this is a problem in practice, except when
> testing with tools like valgrind.
You can free just after tcc_set_linker as tcc_set_linker does not reuse the 
string.
[signature.asc (application/pgp-signature, inline)]

Added tag(s) wontfix. Request was from "Thomas Preud'homme" <robotux@celest.fr> to control@bugs.debian.org. (Tue, 13 Mar 2012 19:18:05 GMT) (full text, mbox, link).


Information stored :
Bug#663693; Package tcc. (Tue, 13 Mar 2012 20:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to "Thomas Preud'homme" <robotux@celest.fr>:
Extra info received and filed, but not forwarded. (Tue, 13 Mar 2012 20:57:05 GMT) (full text, mbox, link).


Message #17 received at 663693-quiet@bugs.debian.org (full text, mbox, reply):

From: "Thomas Preud'homme" <robotux@celest.fr>
To: 663693-quiet@bugs.debian.org
Cc: Vincent Lefevre <vincent@vinc17.net>
Subject: Re: Bug#663693: tcc should support the -rpath option
Date: Tue, 13 Mar 2012 21:53:51 +0100
[Message part 1 (text/plain, inline)]
I'm sorry, I answered too quickly. I forgot to say thank you for the patch.

Regards.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Aurélien GÉRÔME <ag@debian.org>:
Bug#663693; Package tcc. (Wed, 14 Mar 2012 09:54:59 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Lefevre <vincent@vinc17.net>:
Extra info received and forwarded to list. Copy sent to Aurélien GÉRÔME <ag@debian.org>. (Wed, 14 Mar 2012 09:54:59 GMT) (full text, mbox, link).


Message #22 received at 663693@bugs.debian.org (full text, mbox, reply):

From: Vincent Lefevre <vincent@vinc17.net>
To: Thomas Preud'homme <robotux@celest.fr>
Cc: 663693@bugs.debian.org
Subject: Re: Bug#663693: tcc should support the -rpath option
Date: Wed, 14 Mar 2012 08:47:51 +0100
On 2012-03-13 20:09:56 +0100, Thomas Preud'homme wrote:
> I don't understand. How can libtool generate -rpath when even gcc
> doesn't support it?

AFAIK, libtool generates the -rpath option, possibly with a linker
prefix. This means in the case of gcc: -Wl,-rpath -Wl,<some_dir>
but tcc doesn't support this (only with the = form).

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Information forwarded to debian-bugs-dist@lists.debian.org, Aurélien GÉRÔME <ag@debian.org>:
Bug#663693; Package tcc. (Wed, 14 Mar 2012 10:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to robotux@celest.fr:
Extra info received and forwarded to list. Copy sent to Aurélien GÉRÔME <ag@debian.org>. (Wed, 14 Mar 2012 10:57:05 GMT) (full text, mbox, link).


Message #27 received at 663693@bugs.debian.org (full text, mbox, reply):

From: "Thomas Preud'homme" <robotux@celest.fr>
To: Vincent Lefevre <vincent@vinc17.net>, 663693@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#663693: tcc should support the -rpath option
Date: Wed, 14 Mar 2012 11:55:25 +0100
[Message part 1 (text/plain, inline)]
tags 663693 - wontfix
thanks

Le mercredi 14 mars 2012 08:47:51, Vincent Lefevre a écrit :
> On 2012-03-13 20:09:56 +0100, Thomas Preud'homme wrote:
> > I don't understand. How can libtool generate -rpath when even gcc
> > doesn't support it?
> 
> AFAIK, libtool generates the -rpath option, possibly with a linker
> prefix. This means in the case of gcc: -Wl,-rpath -Wl,<some_dir>
> but tcc doesn't support this (only with the = form).
Oh ok, I see. Then the solution is a bit different. I will definitely look into 
it but with low priority for now, because I'm quite busy.

Best regards.
[signature.asc (application/pgp-signature, inline)]

Removed tag(s) wontfix. Request was from "Thomas Preud'homme" <robotux@celest.fr> to control@bugs.debian.org. (Wed, 14 Mar 2012 10:57:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Aurélien GÉRÔME <ag@debian.org>:
Bug#663693; Package tcc. (Wed, 14 Mar 2012 11:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Lefevre <vincent@vinc17.net>:
Extra info received and forwarded to list. Copy sent to Aurélien GÉRÔME <ag@debian.org>. (Wed, 14 Mar 2012 11:33:06 GMT) (full text, mbox, link).


Message #34 received at 663693@bugs.debian.org (full text, mbox, reply):

From: Vincent Lefevre <vincent@vinc17.net>
To: Thomas Preud'homme <robotux@celest.fr>
Cc: 663693@bugs.debian.org
Subject: Re: Bug#663693: tcc should support the -rpath option
Date: Wed, 14 Mar 2012 12:29:36 +0100
On 2012-03-14 11:55:25 +0100, Thomas Preud'homme wrote:
> Le mercredi 14 mars 2012 08:47:51, Vincent Lefevre a écrit :
> > AFAIK, libtool generates the -rpath option, possibly with a linker
> > prefix. This means in the case of gcc: -Wl,-rpath -Wl,<some_dir>
> > but tcc doesn't support this (only with the = form).
> Oh ok, I see. Then the solution is a bit different. I will
> definitely look into it but with low priority for now, because I'm
> quite busy.

This will probably also need a change in libtool, but apparently
simpler than introducing another specific format for tcc to the
already bloated libtool.m4 code.

I've reported a wishlist bug against libtool for tcc support, but
there seems to be a problem with the Debian BTS, because after
several hours, it still hasn't appeared.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Changed Bug title to 'tcc should support the -Wl,-rpath -Wl,<some_path> form' from 'tcc should support the -rpath option' Request was from Vincent Lefevre <vincent@vinc17.net> to control@bugs.debian.org. (Wed, 14 Mar 2012 11:33:08 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from Thomas Preud'homme <robotux@celest.fr> to control@bugs.debian.org. (Wed, 14 Mar 2012 23:36:03 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Thomas Preud'homme <robotux@celest.fr> to control@bugs.debian.org. (Wed, 14 Mar 2012 23:51:05 GMT) (full text, mbox, link).


Reply sent to Thomas Preud'homme <robotux@celest.fr>:
You have taken responsibility. (Wed, 21 Mar 2012 13:51:42 GMT) (full text, mbox, link).


Notification sent to Vincent Lefevre <vincent@vinc17.net>:
Bug acknowledged by developer. (Wed, 21 Mar 2012 13:51:49 GMT) (full text, mbox, link).


Message #45 received at 663693-close@bugs.debian.org (full text, mbox, reply):

From: Thomas Preud'homme <robotux@celest.fr>
To: 663693-close@bugs.debian.org
Subject: Bug#663693: fixed in tcc 0.9.26~git20120104.83d57c0-5
Date: Wed, 21 Mar 2012 13:49:14 +0000
Source: tcc
Source-Version: 0.9.26~git20120104.83d57c0-5

We believe that the bug you reported is fixed in the latest version of
tcc, which is due to be installed in the Debian FTP archive:

libtcc-dev_0.9.26~git20120104.83d57c0-5_amd64.deb
  to main/t/tcc/libtcc-dev_0.9.26~git20120104.83d57c0-5_amd64.deb
tcc_0.9.26~git20120104.83d57c0-5.debian.tar.gz
  to main/t/tcc/tcc_0.9.26~git20120104.83d57c0-5.debian.tar.gz
tcc_0.9.26~git20120104.83d57c0-5.dsc
  to main/t/tcc/tcc_0.9.26~git20120104.83d57c0-5.dsc
tcc_0.9.26~git20120104.83d57c0-5_amd64.deb
  to main/t/tcc/tcc_0.9.26~git20120104.83d57c0-5_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 663693@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Preud'homme <robotux@celest.fr> (supplier of updated tcc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 15 Mar 2012 00:39:47 +0100
Source: tcc
Binary: tcc libtcc-dev
Architecture: source amd64
Version: 0.9.26~git20120104.83d57c0-5
Distribution: unstable
Urgency: low
Maintainer: Aurélien GÉRÔME <ag@debian.org>
Changed-By: Thomas Preud'homme <robotux@celest.fr>
Description: 
 libtcc-dev - Fast library for dynamic code generation
 tcc        - Small ANSI C compiler
Closes: 663692 663693 663711
Changes: 
 tcc (0.9.26~git20120104.83d57c0-5) unstable; urgency=low
 .
   * Document that -b is only available on i386 (Closes: #663692).
   * Correctly parse unsigned long constants (ex: 1UL) on amd64
     (Closes: #663711).
   * Support arguments to linker options to be passed in separate linker
     options as in -Wl,-rpath -Wl,<somedir> (Closes: #663693).
Checksums-Sha1: 
 d2487f61e66ec8700e7ab4db912f39c7d98a01e6 2127 tcc_0.9.26~git20120104.83d57c0-5.dsc
 2417870d63165e998b63763e3cc95ce25d5880af 14884 tcc_0.9.26~git20120104.83d57c0-5.debian.tar.gz
 ee65afe0ed7595795fd95445f50ba7a9e14a6b87 155748 tcc_0.9.26~git20120104.83d57c0-5_amd64.deb
 99b7bb8d81d71ba9e4d30afa642353be23674539 135052 libtcc-dev_0.9.26~git20120104.83d57c0-5_amd64.deb
Checksums-Sha256: 
 34f69018bef2e29ddb06e9e31267706661bd669f9dda7d30a449cd63b7b98c9f 2127 tcc_0.9.26~git20120104.83d57c0-5.dsc
 ef51bb7bb7ccae4ca9bddab71940f455c3ead99bb7d72fb7ea27c3698198b2d4 14884 tcc_0.9.26~git20120104.83d57c0-5.debian.tar.gz
 a1f7e89c7815711f0cfc87fb7c0419dcd65a692d3ca854fc6fecb1590e02a234 155748 tcc_0.9.26~git20120104.83d57c0-5_amd64.deb
 ec3a27f64619dadd832d4b73258203b0d8b03c7a089171cd71ee910483b26115 135052 libtcc-dev_0.9.26~git20120104.83d57c0-5_amd64.deb
Files: 
 cd44b2e1b6404f00aee4025842a367b8 2127 devel optional tcc_0.9.26~git20120104.83d57c0-5.dsc
 f813ac97ebd2f51004f1d4437ff77986 14884 devel optional tcc_0.9.26~git20120104.83d57c0-5.debian.tar.gz
 05204d7d3e38661a944f0daf5d1d0648 155748 devel optional tcc_0.9.26~git20120104.83d57c0-5_amd64.deb
 969f84195ea25e4bd39d2cff817ce86b 135052 libdevel optional libtcc-dev_0.9.26~git20120104.83d57c0-5_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJPadikAAoJENADhS+9UlKeLRcP/AjZJn/+AZIMMxvDYIJYi4or
B7jGstQ5CJYNmWbpwTrdZ0Sl5NlHff5FRkRAGTlhy9/gOT74XpSEv2Bx9ruURtIq
bUlkw2EniwizOqzgG3l35MDMALDR+qm2+2g2Y/uTzLQLt3+1GFxy2She41Zh9CUV
3LlXqdo8Vo5iXGTZeFvx+w28tVtBOa2uoqz3Dr8XNhMpYi9Wjc75vlQGPepUxyRc
V1ak2X1qWEQKUr+TZtR+PSDBiy6dmstdrF1sQg6wA9OLO1sMAQYe5AlJkPZz22wQ
4Nv6xPUUi+ywSyqk0zbysvAu9S1riHeCw9jZti7C6Wg78+CdmAcIfowMTil0lRMG
6XrH7SYq/LCDs4Op5mSdcOb6V6wR4mvcLHh7lPs+anC8DHi565m0LuKboDtW825P
+iZPMBgObig/tgCLyZCb0GGKzoT+TDN4wYmyOlAY22niTuGrIGEfDNb5dgb1gNQ1
btNQDiZYlEPPoK3dcshCuDtm+lYu0b00BS7dq8KQP5pNMGdQS6UOrLSn/U5cUJNz
19xvlonnjPcL+5TsK+a0okzikgzjg3/kzVQbUvG7YpHW0kcmvWBHfB1fpeuAQnST
kx/W4lhMY2fGQDTanSiDyGnl54kkKHMVMRFZxEUaBdW9Ile4elJwCsa1zHjhxFa6
Sp2icepT/9stv0odFtTh
=xIjg
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 29 Apr 2012 07:42:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jul 15 23:54:15 2021; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.