Bug 175827 - Missing items for tcc
Missing items for tcc
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-15 10:47 EST by Kim Lux
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-12-15 10:51:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Kim Lux 2005-12-15 10:47:34 EST
Description of problem:     
     
tcc can't build projects due to libc dependencies and errors.     
     
     
Version-Release number of selected component (if applicable):     
     
tcc -v    
tcc version 0.9.23    
    
rpm -q glibc    
glibc-2.3.5-10.3    
$ rpm -q gcc    
gcc-4.0.2-8.fc4    
    
    
How reproducible:     
    
We've seen this problem on 4 fc4 machines.  I don't know of an fc4 machine    
that doesn't have this problem.     
    
     
Steps to Reproduce:     
    
1) Install fc4    
    
2) Install tcc    
   
http://fabrice.bellard.free.fr/tcc/   
./configure   
make   
     
    
3) Build a tcc example:    
    
tcc -o test ./examples/ex1.c    
       
Actual results:     
     
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: '_dl_tls_static_size' defined twice    
tcc: undefined symbol '_Unwind_Resume'    
tcc: undefined symbol '__gcc_personality_v0'    
tcc: undefined symbol '_Unwind_GetIP'    
tcc: undefined symbol '_Unwind_GetGR'    
tcc: undefined symbol '_Unwind_GetCFA'    
tcc: undefined symbol '_Unwind_Backtrace'    
    
    
Expected results:     
     
Should build and run without errors.     
    
ex1.c implements Hello World.     
  
The code in it is:  
 
#include <tcclib.h> 
 
int main()  
{ 
    printf("Hello World\n"); 
    return 0; 
} 
 
You can check out tcclib.h in the tcc installation. 
  
  
    
Additional info:
Comment 1 Jakub Jelinek 2005-12-15 10:51:14 EST
That's tcc's fault, not glibc.  libc.so is a linker script (and has been for
many years), so if tcc for some weirdo reason uses its own linker and doesn't
grok it or looks at it for whatever other reason, it is just its fault
and should be fixed there.
Comment 2 Kim Lux 2005-12-15 14:08:05 EST
You were right.  
 
Tcc does parse the linker scripts.  We fixed the parser and now it works.  
 
Thanks for your help and quick response.   

Note You need to log in before you can comment on or make changes to this bug.