Hi;
I didn't manage to build a simple Hello world program statically.
main.c
#include <stdio.h>
int main(int argc, char* argv[]) {
printf("Hello world!\n");
return 0;
}
tcc -static main.c -o main
output:
tcc: error: undefined symbol '__rel_iplt_end'
tcc: error: undefined symbol '__rel_iplt_start'
tcc: error: undefined symbol '__gcc_personality_v0'
tcc: error: undefined symbol '_Unwind_Resume'
tcc: error: undefined symbol '_Unwind_GetIP'
tcc: error: undefined symbol '_Unwind_GetGR'
tcc: error: undefined symbol '_Unwind_GetCFA'
tcc: error: undefined symbol '_Unwind_Backtrace'
What is the issue ? i have googled and find that libgcc_eh.a is missing, but
when i like against it using :
tcc /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/libgcc_eh.a -static main.c
-o main
I get the same error.
How to resolve the issue ? If this require to build glibc using tcc than i
didn't manage because the errors from the configure script i already mentioned
in a previous message.
Thank you very much.
Best regards
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel