I am trying to cross compiling homas Preud'homme's version of TinyCC by using following command
./configure --cc=arm-none-linux-gnueabi-gcc --prefix=/home/shushant/tinycc/tc
and it shows following error message after running
make: Circular Makefile <- Makefile dependency dropped. make -C lib native make: Entering directory `/home/shushant/tinycc/lib' arm-none-linux-gnueabi-gcc -c alloca86_64.S -o x86_64/alloca86_64.o -I.. -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -DTCC_TARGET_X86_64 alloca86_64.S: Assembler messages: alloca86_64.S:7: Error: expression too complex -- `pop %rdx' alloca86_64.S:11: Error: ARM register expected -- `mov %rdi,%rax' alloca86_64.S:13: Error: ARM register expected -- `add $15,%rax' alloca86_64.S:14: Error: ARM register expected -- `and $-16,%rax' alloca86_64.S:15: Error: bad instruction `jz p3' alloca86_64.S:28: Error: ARM register expected -- `sub %rax,%rsp' alloca86_64.S:29: Error: ARM register expected -- `mov %rsp,%rax' alloca86_64.S:35: Error: expression too complex -- `push %rdx' alloca86_64.S:36: Error: bad instruction `ret' alloca86_64.S:40: Error: junk at end of line, first unrecognized character is `,' make: *** [x86_64/alloca86_64.o] Error 1 make: Leaving directory `/home/shushant/tinycc/lib' make: *** [libtcc1.a] Error 2
some how binaries is successfully generated but in wrong directory (at the root of
/home/shushant/tinycc) instead of
/home/shushant/tinycc/tc and when I am trying to run on android emulator its show
file not found of course generated binaries is not supported by device. How can I fix it?