Tcc fails to link executables

Bug #70854 reported by Hrvoje Nikšić
8
Affects Status Importance Assigned to Milestone
Baltix
Fix Released
Undecided
Unassigned
tcc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Tcc appears non-functional in Edgy. It is unable to compile and link any programs, even trivial ones, such as "hello world". For example:

$ cat a.c
#include <stdio.h>
int main()
{
  printf("hello world\n");
  return 0;
}

$ tcc a.c
tcc: file 'AS_NEEDED' not found
/usr/lib/libc.so:3: filename expected
/usr/lib/libc.so:3: unrecognized file type
tcc: undefined symbol '__gcc_personality_v0'
tcc: undefined symbol '_Unwind_Resume'
tcc: undefined symbol '_Unwind_Backtrace'
tcc: undefined symbol '_Unwind_GetIP'
tcc: undefined symbol '_Unwind_GetGR'
tcc: undefined symbol '_Unwind_GetCFA'

This seems to be a link-related problem, because `tcc -c a.c' produces a working a.o file, which can be (for testing purposes) linked with gcc, and which results in a correctly running executable.

Note that tcc does not exhibit this problem on Debian testing.

Note: the original reporter indicated the bug was in package 'tcc'; however, that package was not published in Baltix.

Revision history for this message
Georg Sauthoff (g-sauthoff) wrote :

Same problem here. I.e. tcc is also disfunctional in Feisty.

Revision history for this message
James McDermott (jamesmichaelmcdermott) wrote :

Yes, still failing on Feisty. The error message I get is this:

$ tcc hello.c
tcc: file 'AS_NEEDED' not found
/usr/lib/libc.so:3: filename expected
/usr/lib/libc.so:3: unrecognized file type
/usr/lib/libc.a: '_nl_category_name_idxs' defined twice
/usr/lib/libc.a: '_nl_category_name_idxs' defined twice
[... and many more identical lines...]
/usr/lib/libc.a: '_nl_category_name_idxs' defined twice
/usr/lib/libc.a: '_nl_category_name_idxs' defined twice
tcc: undefined symbol '__gcc_personality_v0'
tcc: undefined symbol '_Unwind_Resume'
tcc: undefined symbol '_Unwind_Backtrace'
tcc: undefined symbol '_Unwind_GetIP'
tcc: undefined symbol '_Unwind_GetGR'
tcc: undefined symbol '_Unwind_GetCFA'

Revision history for this message
Ralph Janke (txwikinger) wrote :

In hardy the given file is properly compiled and the a.out created.

Changed in tcc:
status: New → Fix Released
Przemek K. (azrael)
Changed in baltix:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.