1. I can compile tcc with gcc, but failed with tcc it self (--cc=/tcc/bin/tcc), how to fix it?
debian-arm:~/tinycc# ./configure --prefix=/tcc --exec-prefix=/tcc --cpu=armv4l --cc=/tcc/bin/tcc
Binary directory /tcc/bin
TinyCC directory /tcc/lib/tcc
Library directory /tcc/lib
Include directory /tcc/include
Manual directory /tcc/share/man
Info directory /tcc/share/info
Doc directory /tcc/share/doc/tcc
Target root prefix
Source path /root/tinycc
C compiler /tcc/bin/tcc
CPU armv4l
Big Endian no
gprof enabled no
cross compilers no
use libgcc no
Creating config.mak and config.h
debian-arm:~/tinycc# make
/tcc/bin/tcc -o tcc.o -c tcc.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -DTCC_ARM_VFP -DNOTALLINONE -O2 -g -Wall
/tcc/bin/tcc -o libtcc.o -c libtcc.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -DTCC_ARM_VFP -O2 -g -Wall
ar rcs libtcc.a libtcc.o
/tcc/bin/tcc -o tcc tcc.o libtcc.a -lm -ldl
tcc: error: undefined symbol '__divdi3'
tcc: error: undefined symbol '__moddi3'
tcc: error: undefined symbol '__udivdi3'
tcc: error: undefined symbol '__umoddi3'
tcc: error: undefined symbol '__lshrdi3'
tcc: error: undefined symbol '__floatundidf'
tcc: error: undefined symbol '__fixunsdfdi'
make: *** [tcc] Error 1
debian-arm:~/tinycc#