I'm trying to compile tcc to run on my arm based router.  Using my project (tomatoware) I've got gcc9 and llvm/clang8 working and can natively compile c/c++ code, and just for fun am looking at what other compilers I can get working. My  sysroot lives in /mmc. I'm using the latest uClibc-ng, which I'm not sure if tcc has supported this new branch of development.  I tried compiling from latest git at https://repo.or.cz/w/tinycc.git

./configure \
--sysroot=/mmc \
--prefix=/mmc \
--elfinterp=/mmc/lib/ld-uClibc.so.1 \
--config-uClibc
make
make install

#simple hello world c program
root@R7000:~# tcc hello.c -o hello
In file included from hello.c:1:
In file included from /mmc/usr/include/stdio.h:71:
In file included from /mmc/usr/include/bits/uClibc_stdio.h:114:
In file included from /mmc/usr/include/bits/pthreadtypes.h:21:
In file included from /mmc/usr/include/endian.h:59:
In file included from /mmc/usr/include/byteswap.h:22:
In file included from /mmc/usr/include/bits/byteswap.h:1:
/mmc/usr/include/bits/byteswap-common.h:106: error: ';' expected (got "__bswap_64")

armv7a (soft float)
Linux 2.6.36.4
uclibc-ng 1.0.31
gcc 9.1

Looks like tcc is still seeing some active development, so I'd thought I'd give it a try.

thanks,
Lance


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

Reply via email to