On Wed, 2026-01-28 at 21:44 +0530, Sagar Acharya wrote:
> musl.
> 
> Yes. How to resolve this?

You need to use 'configure --config-musl'...

! root on riscv64 ~/tinycc # gcc -dumpmachine
riscv64-foxkit-linux-musl

! root on riscv64 ~/tinycc # ./configure --config-musl
Binary directory    /usr/local/bin
TinyCC directory    /usr/local/lib/tcc
Library directory   /usr/local/lib
Include directory   /usr/local/include
Manual directory    /usr/local/share/man
Info directory      /usr/local/share/info
Doc directory       /usr/local/share/doc
Source path         /usr/src/tinycc
Build OS            Linux riscv64
C compiler          gcc (13.3)
Target OS           Linux
CPU                 riscv64
Config              musl
Creating config.mak and config.h

! root on riscv64 ~/tinycc # make
gcc -o tcc.o -c tcc.c -I. -DONE_SOURCE=0 -DTCC_GITHASH="\"2026-
01-18 mob@4fccaf61\"" -Wall -O2 -Wdeclaration-after-statement -
Wno-unused-result
...
ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccdbg.o tccelf.o
tccasm.o tccrun.o riscv64-gen.o riscv64-link.o riscv64-asm.o
gcc -o tcc tcc.o libtcc.a -lm -ldl -lpthread
make[1]: Entering directory '/usr/src/tinycc/lib'
../tcc -c lib-arm64.c -o lib-arm64.o -B.. -I..
../tcc -c stdatomic.c -o stdatomic.o -B.. -I..
../tcc -c atomic.S -o atomic.o -B.. -I..
../tcc -c builtin.c -o builtin.o -B.. -I..
../tcc -c alloca.S -o alloca.o -B.. -I..
../tcc -c alloca-bt.S -o alloca-bt.o -B.. -I..
../tcc -c tcov.c -o tcov.o -B.. -I..
../tcc -c dsohandle.c -o dsohandle.o -B.. -I..
../tcc -c runmain.c -o ../runmain.o -B.. -I..
../tcc -c bt-exe.c -o ../bt-exe.o -B.. -I..
../tcc -c bt-log.c -o ../bt-log.o -B.. -I..
../tcc -c bcheck.c -o ../bcheck.o -B.. -I.. -bt
../tcc -ar rcs ../libtcc1.a lib-arm64.o stdatomic.o atomic.o
builtin.o alloca.o alloca-bt.o tcov.o dsohandle.o
make[1]: Leaving directory '/usr/src/tinycc/lib'

! root on riscv64 ~/tinycc # ./tcc --version
tcc version 0.9.28rc 2026-01-18 mob@4fccaf61 (riscv64 Linux)

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to