tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Debian's tcc patches.


From: Philippe Ribet
Subject: Re: [Tinycc-devel] Debian's tcc patches.
Date: Mon, 26 Feb 2007 21:38:58 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5

Rob Landley wrote:

Ok, I'm looking at "http://packages.debian.org/unstable/devel/tcc.html"; and specifically "http://ftp.debian.org/debian/pool/main/t/tcc/tcc_0.9.23-4.diff.gz"; to see if there's anything I should include
Really? It's quite strange, I did exactely the same yesterday!

In fact, I was just looking if there was a patch for the bug I get. But there is not, and the debian package does have the very same bug. I succed in isolating the bug:
<523> address@hidden /tmp -> gcc tmp.c -Wall
<524> address@hidden /tmp -> ./a.out
Hello World
The end...
<525> address@hidden /tmp -> tcc tmp.c -Wall
/usr/lib/libc_nonshared.a: '__i686.get_pc_thunk.bx' defined twice
<526> address@hidden /tmp -> cat tmp.c
#include <stdio.h>
#include <stdlib.h>

void finish() {
 printf("The end...\n");
}
int main()
{
 atexit(finish);
 printf("Hello World\n");
 return 0;
}

Note that I get the very same error with fstat (IIRC).
I just made a new test: the very same binary tcc is working fine on an old system (sarge) and the problem occurs on a more recent one (etch). I'd like to give you the library version numbers:
Sarge system:
<504> address@hidden ~ -> dpkg -S libc_nonshared.a
libc6-dev: /usr/lib/libc_nonshared.a
<505> address@hidden ~ -> dpkg -l libc6-dev
[...]
libc6-dev 2.3.2.ds1-22sarge4 GNU C Library: Development Libraries and Header Files


Etch system:
<499> address@hidden ~ -> dpkg -S libc_nonshared.a
libc6-dev: /usr/lib/nptl/libc_nonshared.a
libc6-dev: /usr/lib/libc_nonshared.a
<500> address@hidden ~ -> dpkg -l libc6-dev
[...]
libc6-dev 2.3.6.ds1-11 GNU C Library: Development Libraries and Header Files


Any idea? Is there a problem with the more recent releases of libc6? Should tcc be fixed? Why is there the same file twice in the package? Could this be the problem origin?

Thanks for any help,

--
Philippe Ribet



                        The README file said
             "Requires Windows 95, NT 4.0, or better."
                   So... I installed it on Linux!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]