Bug 175827 - Missing items for tcc
Summary: Missing items for tcc
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc   
(Show other bugs)
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2005-12-15 15:47 UTC by Kim Lux
Modified: 2007-11-30 22:11 UTC (History)
0 users

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

Attachments (Terms of Use)

Description Kim Lux 2005-12-15 15:47:34 UTC
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    
$ rpm -q gcc    
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    
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 15:51:14 UTC
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 19:08:05 UTC
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.