I have a fix for that, as does Rob Landley. In a nutshell, libc.so is a
script, and uses AS_NEEDED, which the tcc elf loader doesn't understand.

Rob has a collection of patches, and a tarball of the updated compiler
(Thanks Rob!). Since his solution is more useful, I'll hold off. If Rob
publishes the location of the tarball, snag it, and everything should
work.

Fred Weigel.

On Mon, 2006-10-30 at 13:33 +0000, Marc van Dongen wrote:
> * Fred Weigel <[EMAIL PROTECTED]> [2006-10-28 11:24:45 -0400]:
> 
> : On line 70 of /usr/include/bits/pthreadtypes.h, change
> :     };
> : to
> :     } __NOT_ANON_UNION_TCC;
> : 
> : Fred Weigel.
> 
> Thanks a Mille Fred,
> 
> That worked. I now get the following:
> 
> tcc: file 'AS_NEEDED' not found
> /usr/lib/libc.so:3: filename expected
> /usr/lib/libc.so:3: unrecognized file type
> 
> I get this both with tcc-0.9-22 and tcc-0.9.23.
> 
> If I try from the command line I get:
> 
> $ ./tcc ../tmp.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'
> 
> I couldn't find a solution for this problem on the web.
> Any suggestions?
> 
> Regards,
> 
> 
> Marc
> 
> 
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel



_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to