Hello, I am trying to compile tcc on a little endian armv4 host simulated by
QEMU, the detailed info about this machine could be get from
http://people.debian.org/~aurel32/qemu/arm/
And I have 2 questions about it:
1. I can compile tcc with gcc, but failed with tcc it self
(--cc=/tcc/bin/tcc), how to fix it?
the error message is listed as follow:
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#
2. I notice that the macro TCC_ARM_VFP is defined, but TCC_ARM_EABI is not,
what is the difference between arm-vfp-gcc and arm-eabi-tcc ? What to do
if I want arm-eabi-tcc ?
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel