Hi, I notice that the release_0_9_27 tag is unable to build the latest mob (I tested 9d2068c6309dc50dfdbbc30a5d6757683d3f884c). I get the following error:
$make tcc -o tcc.o -c tcc.c -DTCC_TARGET_I386 -DONE_SOURCE=0 -DTCC_GITHASH="\"2024-03-03 mob@9d2068c6\"" -Wall -O2 -I. tcc -o libtcc.o -c libtcc.c -DTCC_TARGET_I386 -DONE_SOURCE=0 -Wall -O2 -I. tcc -DC2STR conftest.c -o c2str.exe && ./c2str.exe include/tccdefs.h tccdefs_.h /usr/lib/crt1.o: error: Invalid relocation entry [16] '.rel.debug_info' @ 000004be tcc: error: file 'crt1.o' not found tcc -o tccpp.o -c tccpp.c -DTCC_TARGET_I386 -DONE_SOURCE=0 -Wall -O2 -I. tccpp.c:3747: error: identifier expected make: *** [Makefile:282: tccpp.o] Error 1 Above was an i386 Linux build using ./configure --cc=tcc The issue seems to have been introduced in 7b9f19eaab7e568a7c7a42725da812377a588f50 The following patch seems to resolve the issue (make test passes) --- a/tccpp.c +++ b/tccpp.c @@ -3742,7 +3742,7 @@ static void tok_print(const int *str, const char *msg, ...) va_list ap; int t, t0, s; CValue cval; - va_start(ap, msg), vfprintf(fp, msg, ap), va_end(ap); + va_start(ap, msg); vfprintf(fp, msg, ap); va_end(ap); s = t0 = 0; while (str) { Was the comma operator used for a reason? If not, it would be useful to apply that patch to allow the latest mob to be bootstrapped from the last offical release. Thanks Liam _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel